Docs drift review

From chmouel/lazyworktree · View interactive version

Docs drift review is an AI agent skill from the GitHub repository chmouel/lazyworktree. 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.

How to use this skill

Skill file

Docs Drift Review

Purpose

Use this skill when the user asks to:

Outcomes

Produce a report that:

  1. Identifies implementation drift between docs and code.
  2. Distinguishes confirmed issues from plausible-but-unverified concerns.
  3. Suggests precise improvements to wording, examples, spelling, structure, and navigation.
  4. Prioritizes findings by user impact.
  5. Recommends the smallest sensible patch set.

Non-goals

Do not:

Inputs to inspect

Prefer to inspect, in this order:

  1. AGENTS.md and nearby agent instructions
  2. top-level README*
  3. docs directories such as docs/, documentation/, guides/, examples/
  4. API specs and schemas such as OpenAPI, JSON Schema, protobuf, CRDs, GraphQL schema
  5. source code implementing the documented behavior
  6. tests covering the documented behavior
  7. config files, CLI help text, and sample manifests
  8. changelogs, migration guides, release notes

Core workflow

Step 1: Build a docs map

Create a compact inventory:

Step 2: Build an implementation map

Identify:

Prefer tests and schemas over comments when determining current behavior.

Step 3: Compare docs against implementation

Check for:

For each suspected drift item:

Step 4: Review doc quality

Inspect for:

Step 5: Produce a prioritized report

Organize findings into:

For each finding include:

Severity guide

Use:

Evidence rules

Output format

Use this structure:

Summary

Findings

For each finding:

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:

Spelling and style heuristics

Flag:

Do not overcorrect for house style unless a local convention is clear.

Reorganization heuristics

Suggest reorganization when:

When asked to edit

If the user wants changes:

  1. edit the highest-severity correctness issues first
  2. then fix stale examples and missing prerequisites
  3. then improve naming consistency and structure
  4. keep diffs minimal and reviewable
  5. preserve established terminology unless the repo clearly moved on

Suggested prompts

Examples of requests this skill should handle:

Completion criteria

The task is complete when:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.