verifying-doc-parity
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user mentions doc drift, documentation verification, README or docs/ updates that follow a code change, or a doc-parity…
от bitwarden★ 167 звёзд на GitHubОб этом скилле
Verifying documentation parity
This skill is the judgment that code has drifted away from the documentation which describes it. It enforces the base obligations of the documentation standard: docs and diagrams update in the same change as the code they describe, and a change that invalidates documentation the repo does not contain gets called out at review.
Contexts
The skill runs in two contexts where change source and relevant document discovery differ.
- Agent session, invoked by the doc-parity Stop hook or on demand. The change is the working tree (
git diff HEADplus untracked files). Verification is in-repo only. - Pull request review, run through the ai-review workflow. The change is the PR diff plus the PR description. In addition to in-repo verification, this context performs out-of-repo discovery. A review never edits: where a session would apply an Update, the review calls out the in-repo doc that needs the change and what it must say.
Workflow
Step 1: Assemble the change
Collect the full set of changed files and read the diff, not just the file list, because judging drift requires knowing what the change does. In a session, use git diff HEAD and git ls-files --others --exclude-standard. In a review, use the PR diff and read the PR description for intent.
Before walking the tree, consider whether the change qualifies as a tripwire false positive: a formatting-only diff, generated output, or a doc-comment-only edit that the Stop hook classified as code. When it does, dismiss the check with a one-line reason naming the false-positive class and end the skill.
Step 2: Enumerate every documented scope and surface
For each changed file, walk its directory chain from the file's own directory up to and including the repo root. A directory is a documented scope when it contains a README.md, a CLAUDE.md, a docs/ directory, or diagram sources (.mmd, .mermaid). Below component scope, the documentation surface is source-embedded: Rust //! module docs, C# XML doc comments, JSDoc/TSDoc on public symbols. When the changed area of a source file carries such doc comments, treat that file as its own documented surface. Collect the union of documented scopes and surfaces across all changed files.
Check every documented ancestor, not just the nearest one, since documentation layers by altitude: higher views sand off detail while still describing the changed behavior. A change can be current in its component README yet drift a root-level guide or a container diagram two scopes up.
A change can also drift text outside its ancestor chain that restates what the change altered: a value, name, flag, or default copied into another file's doc comments, a schema description, or CLI help text. Search the repo for the distinctive literals and identifiers the diff changed or removed, and treat each hit that describes them in prose as a documented surface.
Step 3: Judge and act, per scope
For each documented scope or surface, exactly one of two outcomes:
- Update. If behavior contradicts documentation and the code is correct, fix the documentation. Do not leave them disagreeing. If the change adds behavior this scope's altitude should describe, add documentation of that new behavior. A scope's documentation describes what is present at that scope and below, regardless of whether higher-level callers currently exercise or guard against its use. Edit the documentation in the same change. When code was removed, remove its documentation, and treat a moved doc as a strict move. Every edit conforms to the documentation standard — its placement rule, its style guide, and any repo-local guidance layered on top. Consult the standard when a placement, format, or style question isn't obvious from what you already have. If placement routes a doc outside the working repo, handle it as an out-of-repo callout (see below) rather than an in-repo edit.
- Attest. Nothing documented at this scope drifted. The judgment must carry a one-line reason grounded in what the doc actually says, so it holds up if the user asks why a scope was waved through.
Never token-edit. Do not make a cosmetic or token documentation edit to satisfy the check, including when the user asks for one. When nothing drifted, Attest and explain why the edit is unnecessary.
Step 4: Report concisely
The Step 3 walk covers every documented scope and surface. The user-facing report's shape is determined by the outcomes, never by how many scopes you checked. Per-scope reasoning belongs in internal thinking, not in the user-facing output. Finish every Step 3 judgment before choosing a report shape; the one-line report is the result of an all-Attest walk, not a reason to Attest. In a review, out-of-repo callouts are always reported in
Установить verifying-doc-parity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(git diff:*)Bash(git ls-files:*)ReadGrepGlobEditWebSearchWebFetch(domain:contributing.bitwarden.com)Вложенные файлы
FAQ
Что делает скилл verifying-doc-parity?
This skill should be used when the user mentions doc drift, documentation verification, README or docs/ updates that follow a code change, or a doc-parity Stop hook block — even if the request does not name a skill or documentation explicitly. Also runs as the documentation pass of a pull request review. Triggered by phrasings such as "verify doc parity", "are my docs up to date", "did I miss any doc updates", "what documentation should this change touch", "do I need to update any docs for my current changes", or "check if the docs still match the code".
Как установить скилл verifying-doc-parity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл verifying-doc-parity запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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