Docs Drift Review
Purpose
Use this skill when the user asks to:
- compare docs with the implementation
- find stale or incorrect docs
- review README, guides, API docs, design docs, comments, or onboarding docs
- suggest documentation improvements
- identify spelling, grammar, naming consistency, or reorganization issues
- prepare a documentation cleanup plan
- verify whether a feature or interface changed without corresponding docs updates
Outcomes
Produce a report that:
- Identifies implementation drift between docs and code.
- Distinguishes confirmed issues from plausible-but-unverified concerns.
- Suggests precise improvements to wording, examples, spelling, structure, and navigation.
- Prioritizes findings by user impact.
- Recommends the smallest sensible patch set.
Non-goals
Do not:
- invent behavior not supported by code or tests
- rewrite all docs when a targeted patch is enough
- flag style preferences as defects unless they reduce clarity or conflict with repo conventions
- claim drift based only on naming differences without checking surrounding context
- modify files unless the user explicitly asks for edits
Inputs to inspect
Prefer to inspect, in this order:
AGENTS.md and nearby agent instructions
- top-level
README*
- docs directories such as
docs/, documentation/, guides/, examples/
- API specs and schemas such as OpenAPI, JSON Schema, protobuf, CRDs, GraphQL schema
- source code implementing the documented behavior
- tests covering the documented behavior
- config files, CLI help text, and sample manifests
- changelogs, migration guides, release notes
Core workflow
Step 1: Build a docs map
Create a compact inventory:
- major doc files and their purpose
- feature areas covered
- likely source-of-truth files for each area
- stale-looking sections such as versioned commands, flags, env vars, API paths, screenshots, copied outputs, or step-by-step flows
Step 2: Build an implementation map
Identify:
- entrypoints
- public interfaces
- commands, flags, config keys, env vars
- API routes, request/response shapes
- feature gates, defaults, constraints
- examples and fixtures
- relevant tests
Prefer tests and schemas over comments when determining current behavior.
Step 3: Compare docs against implementation
Check for:
- renamed or removed commands, flags, env vars, config fields, APIs
- changed defaults
- changed prerequisites or setup steps
- outdated examples or sample outputs
- undocumented new behavior
- docs claiming support that code no longer provides
- docs omitting constraints, edge cases, or failure modes that matter in practice
For each suspected drift item:
- find exact evidence in docs
- find exact evidence in code/tests/specs
- decide: confirmed drift, likely drift, or insufficient evidence
Step 4: Review doc quality
Inspect for:
- spelling and grammar errors
- inconsistent naming of products, features, commands, files, or concepts
- ambiguous wording
- duplicate content across files
- weak information architecture
- sections in the wrong place
- poor scannability
- examples without explanation
- explanation without runnable examples
- missing cross-links
- outdated references to file paths or repo layout
Step 5: Produce a prioritized report
Organize findings into:
- Critical correctness issues
- Important missing or stale content
- Clarity and usability improvements
- Copyediting issues
- Reorganization proposals
For each finding include:
- severity: critical / high / medium / low
- confidence: confirmed / likely / uncertain
- docs file(s)
- implementation file(s)
- concise explanation
- recommended fix
- optional proposed replacement text
Severity guide
Use:
- critical for setup-breaking, security-relevant, migration-breaking, or API-breaking documentation errors
- high for materially misleading docs that waste time or cause wrong usage
- medium for missing context, omissions, stale examples, or structural issues that impair success
- low for spelling, grammar, naming consistency, and polish
Evidence rules
- Prefer direct evidence from code, tests, schemas, generated help, or examples.
- If behavior is ambiguous, say so explicitly.
- Do not infer runtime behavior solely from type names or comments.
- If tests contradict prose docs, treat that as a drift signal and note the contradiction.
- If docs contradict code but code appears accidental or buggy, do not decide policy; report the mismatch neutrally.
Output format
Use this structure:
Summary
- brief statement of overall docs health
- count of findings by severity
- top 3 issues
Findings
For each finding:
- ID
- Severity
- Confidence
- Docs evidence
- Implementation evidence
- Why this matters
- Recommended fix
- Proposed text (only when helpful)
Coverage gaps
List feature areas implemented but not documented.
Reorganization suggestions
Suggest merges, splits, moves, or index pages.
Quick wins
List the smallest high-value doc fixes.
Optional patch plan
If the user asked for edits, propose a safe file-by-file sequence.
Review heuristics
Look especially for these drift patterns:
- README says one command, CLI help exposes another
- docs list flags not present in parser definitions
- docs omit required env vars or credentials now enforced by code
- examples use old API paths or field names
- docs describe defaults that changed in config code
- migration guides no longer match actual upgrade path
- docs refer to directories or files moved in the repo
- generated artifacts or CRDs changed but prose docs did not
- screenshots or output snippets no longer match current UX or logs
Spelling and style heuristics
Flag:
- repeated words
- obvious spelling mistakes
- inconsistent capitalization of product names
- inconsistent code font for commands, filenames, flags, env vars
- headings that do not match the section content
- paragraphs that should be converted into steps, tables, or bullet lists
- long pages that need a TOC or subsection split
Do not overcorrect for house style unless a local convention is clear.
Reorganization heuristics
Suggest reorganization when:
- the same concept is explained in 3 or more places
- onboarding and reference material are mixed together
- migration guidance is buried in release notes
- examples are detached from the feature they demonstrate
- the top-level README is doing too much
- there is no single source of truth for configuration or API reference
When asked to edit
If the user wants changes:
- edit the highest-severity correctness issues first
- then fix stale examples and missing prerequisites
- then improve naming consistency and structure
- keep diffs minimal and reviewable
- preserve established terminology unless the repo clearly moved on
Suggested prompts
Examples of requests this skill should handle:
- "Review the docs for implementation drift."
- "Compare README and docs/ against the current CLI and config."
- "Find stale examples and propose fixes."
- "Audit API docs versus the server implementation."
- "Suggest doc reorganization and copyediting improvements."
Completion criteria
The task is complete when:
- the main doc surfaces were checked against the current implementation
- findings are evidence-based and prioritized
- the report clearly separates confirmed issues from guesses
- suggested fixes are concrete enough to implement
1---2name: docs-drift-review3description: Analyze repository documentation for implementation drift, stale examples, missing coverage, spelling/clarity issues, and reorganization opportunities; produce a prioritized report with exact file references and proposed fixes.4---56# Docs Drift Review78## Purpose910Use this skill when the user asks to:1112- compare docs with the implementation13- find stale or incorrect docs14- review README, guides, API docs, design docs, comments, or onboarding docs15- suggest documentation improvements16- identify spelling, grammar, naming consistency, or reorganization issues17- prepare a documentation cleanup plan18- verify whether a feature or interface changed without corresponding docs updates1920## Outcomes2122Produce a report that:23241. Identifies implementation drift between docs and code.252. Distinguishes confirmed issues from plausible-but-unverified concerns.263. Suggests precise improvements to wording, examples, spelling, structure, and navigation.274. Prioritizes findings by user impact.285. Recommends the smallest sensible patch set.2930## Non-goals3132Do not:3334- invent behavior not supported by code or tests35- rewrite all docs when a targeted patch is enough36- flag style preferences as defects unless they reduce clarity or conflict with repo conventions37- claim drift based only on naming differences without checking surrounding context38- modify files unless the user explicitly asks for edits3940## Inputs to inspect4142Prefer to inspect, in this order:43441. `AGENTS.md` and nearby agent instructions452. top-level `README*`463. docs directories such as `docs/`, `documentation/`, `guides/`, `examples/`474. API specs and schemas such as OpenAPI, JSON Schema, protobuf, CRDs, GraphQL schema485. source code implementing the documented behavior496. tests covering the documented behavior507. config files, CLI help text, and sample manifests518. changelogs, migration guides, release notes5253## Core workflow5455### Step 1: Build a docs map5657Create a compact inventory:5859- major doc files and their purpose60- feature areas covered61- likely source-of-truth files for each area62- stale-looking sections such as versioned commands, flags, env vars, API paths, screenshots, copied outputs, or step-by-step flows6364### Step 2: Build an implementation map6566Identify:6768- entrypoints69- public interfaces70- commands, flags, config keys, env vars71- API routes, request/response shapes72- feature gates, defaults, constraints73- examples and fixtures74- relevant tests7576Prefer tests and schemas over comments when determining current behavior.7778### Step 3: Compare docs against implementation7980Check for:8182- renamed or removed commands, flags, env vars, config fields, APIs83- changed defaults84- changed prerequisites or setup steps85- outdated examples or sample outputs86- undocumented new behavior87- docs claiming support that code no longer provides88- docs omitting constraints, edge cases, or failure modes that matter in practice8990For each suspected drift item:9192- find exact evidence in docs93- find exact evidence in code/tests/specs94- decide: confirmed drift, likely drift, or insufficient evidence9596### Step 4: Review doc quality9798Inspect for:99100- spelling and grammar errors101- inconsistent naming of products, features, commands, files, or concepts102- ambiguous wording103- duplicate content across files104- weak information architecture105- sections in the wrong place106- poor scannability107- examples without explanation108- explanation without runnable examples109- missing cross-links110- outdated references to file paths or repo layout111112### Step 5: Produce a prioritized report113114Organize findings into:115116- Critical correctness issues117- Important missing or stale content118- Clarity and usability improvements119- Copyediting issues120- Reorganization proposals121122For each finding include:123124- severity: critical / high / medium / low125- confidence: confirmed / likely / uncertain126- docs file(s)127- implementation file(s)128- concise explanation129- recommended fix130- optional proposed replacement text131132## Severity guide133134Use:135136- **critical** for setup-breaking, security-relevant, migration-breaking, or API-breaking documentation errors137- **high** for materially misleading docs that waste time or cause wrong usage138- **medium** for missing context, omissions, stale examples, or structural issues that impair success139- **low** for spelling, grammar, naming consistency, and polish140141## Evidence rules142143- Prefer direct evidence from code, tests, schemas, generated help, or examples.144- If behavior is ambiguous, say so explicitly.145- Do not infer runtime behavior solely from type names or comments.146- If tests contradict prose docs, treat that as a drift signal and note the contradiction.147- If docs contradict code but code appears accidental or buggy, do not decide policy; report the mismatch neutrally.148149## Output format150151Use this structure:152153### Summary154155- brief statement of overall docs health156- count of findings by severity157- top 3 issues158159### Findings160161For each finding:162163- ID164- Severity165- Confidence166- Docs evidence167- Implementation evidence168- Why this matters169- Recommended fix170- Proposed text (only when helpful)171172### Coverage gaps173174List feature areas implemented but not documented.175176### Reorganization suggestions177178Suggest merges, splits, moves, or index pages.179180### Quick wins181182List the smallest high-value doc fixes.183184### Optional patch plan185186If the user asked for edits, propose a safe file-by-file sequence.187188## Review heuristics189190Look especially for these drift patterns:191192- README says one command, CLI help exposes another193- docs list flags not present in parser definitions194- docs omit required env vars or credentials now enforced by code195- examples use old API paths or field names196- docs describe defaults that changed in config code197- migration guides no longer match actual upgrade path198- docs refer to directories or files moved in the repo199- generated artifacts or CRDs changed but prose docs did not200- screenshots or output snippets no longer match current UX or logs201202## Spelling and style heuristics203204Flag:205206- repeated words207- obvious spelling mistakes208- inconsistent capitalization of product names209- inconsistent code font for commands, filenames, flags, env vars210- headings that do not match the section content211- paragraphs that should be converted into steps, tables, or bullet lists212- long pages that need a TOC or subsection split213214Do not overcorrect for house style unless a local convention is clear.215216## Reorganization heuristics217218Suggest reorganization when:219220- the same concept is explained in 3 or more places221- onboarding and reference material are mixed together222- migration guidance is buried in release notes223- examples are detached from the feature they demonstrate224- the top-level README is doing too much225- there is no single source of truth for configuration or API reference226227## When asked to edit228229If the user wants changes:2302311. edit the highest-severity correctness issues first2322. then fix stale examples and missing prerequisites2333. then improve naming consistency and structure2344. keep diffs minimal and reviewable2355. preserve established terminology unless the repo clearly moved on236237## Suggested prompts238239Examples of requests this skill should handle:240241- "Review the docs for implementation drift."242- "Compare README and docs/ against the current CLI and config."243- "Find stale examples and propose fixes."244- "Audit API docs versus the server implementation."245- "Suggest doc reorganization and copyediting improvements."246247## Completion criteria248249The task is complete when:250251- the main doc surfaces were checked against the current implementation252- findings are evidence-based and prioritized253- the report clearly separates confirmed issues from guesses254- suggested fixes are concrete enough to implement