doc-claim-validator
БесплатноЗапускает вложенные скриптыНе проверенValidate that claims in documentation match codebase reality. Extracts verifiable assertions (file paths, commands, function references, behavioral claims…
от NickCrew★ 76 звёзд на GitHubОб этом скилле
Documentation Claim Validator
Verify that what documentation says is actually true by extracting testable claims
and checking them against the codebase. Complements doc-maintenance (which handles
structural health) by handling semantic accuracy.
When to Use
- After significant code changes (refactors, renames, API changes)
- Before releases — catch docs that describe removed or changed behavior
- When onboarding devs report "the docs are wrong"
- As a periodic trust audit on project documentation
- After running
doc-maintenanceto go deeper than structural checks
Quick Reference
| Resource | Purpose | Load when |
|---|---|---|
scripts/extract_claims.py |
Deterministic claim extraction from markdown | Always (Phase 1) |
scripts/verify_claims.py |
Automated verification against codebase | Always (Phase 2) |
references/claim-taxonomy.md |
Full taxonomy of claim types with examples | Triaging unclear claims |
Workflow Overview
Phase 1: Extract → Pull verifiable claims from docs (deterministic script)
Phase 2: Verify → Check claims against codebase (automated + AI)
Phase 3: Report → Classify failures by severity and type
Phase 4: Remediate → Fix or flag broken claims
Phase 1: Extract Claims
Run the extraction script to parse all markdown files and pull out verifiable assertions:
python3 skills/doc-claim-validator/scripts/extract_claims.py [--json] [--root PATH] [--scope docs|manual|all]
The script extracts these claim types from markdown:
| Type | What it captures | Example in docs |
|---|---|---|
file_path |
Inline code matching file path patterns | `src/auth/login.ts` |
command |
Code blocks or inline code with shell commands | `npm run build` |
code_ref |
Function, class, method references in inline code | `authenticate()` |
import |
Import/require statements in code blocks | import { Router } from 'express' |
config |
Configuration keys, env vars, settings | `MAX_RETRIES=3` |
url |
External links (http/https) | [docs](https://example.com) |
architectural |
Verb-anchored prose claims about technology, integrations, or architectural patterns | "Uses Redis for caching", "follows the actor model", "delegated to Auth0" |
dependency |
Package/library name claims | "Uses Redis for caching" |
behavioral |
Assertions about what code does | "The system retries 3 times" |
The first 7 types are extracted deterministically. The script uses verb-anchored
regex for architectural (rules like uses X, built with X, follows the X pattern, delegated to X, via X, depends on X) — this catches anchorless
prose claims that previously slipped through.
The last 2 (dependency, behavioral) require AI analysis and are handled in
Phase 2. behavioral in particular is not regex-extracted because behavioral
claims are free-form prose ("the cache invalidates when the user logs out")
that doesn't pattern-match cleanly — the behavioral verifier discovers and
verifies them in one pass.
Output: A structured list of claims with source file, line number, claim type, and the literal text of the claim.
Phase 2: Verify Claims
Step 2a — Automated verification
Run the verification script on the extracted claims:
python3 skills/doc-claim-validator/scripts/verify_claims.py [--json] [--root PATH] [--claims-file PATH] [--check-staleness]
Pass --check-staleness to enable git-based drift analysis (see below).
The script checks each claim type differently:
| Claim type | Verification method | Pass condition |
|---|---|---|
file_path |
os.path.exists() |
File exists at referenced path |
command |
shutil.which() + script check |
Binary exists or script file exists |
code_ref |
grep -r for function/class name |
Symbol found in codebase |
import |
Check module exists in project or deps | Module resolvable |
config |
Grep for config key in source | Key found in config files or code |
url |
HTTP HEAD request (optional, off by default) | Returns 2xx/3xx |
Pass --check-urls to enable URL verification (slow, requires network).
Step 2b — AI-assisted verification
After the automated pass, dispatch agents to verify claims the script cannot.
Three of four verifiers run on general-purpose + sonnet — behavioral,
architectural, and code-example verification all require multi-file reasoning
that haiku's excerpt-read pattern strains under. The dependency verifier stays
on Explore + haiku because it's pure pattern matching against manifest
files.
Dispatch strategy: per-docfile batching
For behavioral and architectural verifiers, dispatch one sonnet call per markdown file containing claims of that type, with all claims from that file batched into a single prompt. This keeps each call's context budget on a small number of
Установить doc-claim-validator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл doc-claim-validator?
Validate that claims in documentation match codebase reality. Extracts verifiable assertions (file paths, commands, function references, behavioral claims, dependencies) from markdown docs and checks them against the actual project. Use after code changes, before releases, or when docs feel untrustworthy.
Как установить скилл doc-claim-validator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doc-claim-validator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic