Drift Doc — Documentation skill for Claude Code
Claude Code skill: audits state docs (CLAUDE.md/AGENTS.md/PLAN.md) against git history for drift.
How to install Drift Doc
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open raphabruno7/drift-doc and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Drift Doc does
Claude Code skill: audits state docs (CLAUDE.md/AGENTS.md/PLAN.md) against git history for drift.
Alternatives in Documentation
- Repo Recap — Generate a structured recap of the repository state: open PRs, open issues, recent releases, and executive sum 11.9k ★
- Documentation Sync — Check if documentation matches the current code state 5.8k ★
- L Docs Init — Initialize documentation for the Lowdefy monorepo - discover structure, create plan 3k ★
README
drift-doc
A [Claude Code](https://claude.com/claude-code) skill that audits whether a project's state documentation — `CLAUDE.md`, `AGENTS.md`, `PLAN.md`, skill/agent READMEs, and agent system-prompt files — still matches the current state of the repository.
It never rewrites docs outright and never invents what changed. A deterministic bash pre-pass (`scripts/audit.sh`) checks documented file paths against git history and flags stale header fields; Claude then applies judgment (`references/judgment.md`) to turn raw findings into a short, actionable report.
What it catches
- Renamed/deleted paths — a doc references
old/path.md, but git history shows it was renamed or deleted. - Missing handoff headers —
PLAN.md-style docs missingStatus/Owner/Last updatedfields. - Staleness pressure — the doc hasn't been touched in a while, but the code/files it describes have changed since.
What it deliberately does not do
- Never edits source code — only documentation/instruction files.
- Never rewrites a whole document — only proposes targeted diffs.
- Never commits or pushes on your behalf.
- Never flags stylistic differences or intentionally-open roadmap items — only factual mismatches with the current repo state.
Modes
- Review mode (default). Reports findings with diffs; nothing is written until you approve each one.
- Auto mode. Only when you explicitly ask for it (e.g. "auto mode", "sync the docs directly"). Even then, only findings that carry ready-made replacement text (confirmed renames) are applied without asking — everything else still requires a decision.
Requirements
git,bash,awk,grep,sed— all standard on macOS and Linux. No Python, no other runtime dependency.- A git repository. Outside a git repo, path-history and staleness checks are skipped and the report says so.
Installation
See [INSTALL.md](INSTALL.md).
Usage
Inside a Claude Code session in your project, just ask something t
Related Skills
Rectify
Auto-fix internal inconsistencies in a doc/plan against code, logs, or other docs. Asks per conflict, applies
Auto Docs
Audits the entire repo for documentation drift — commands, skills, npm scripts, env vars, tech stack, and fold
Repo Engineering Skills
Claude Code skills for repository audits and documentation: verify README and docs claims against the code, ru
Explain Plan
Convert a plan doc into a self-contained interactive HTML explanation (Mermaid diagrams, blast-radius map, ste
Upstream Polish
Audits upstream drift/listing mismatches with Upstream-Check, generates polished fixes with Wordsmith. Reconci
Docs Drift
Use to catch documentation that has silently gone stale — it spawns ONE fresh sibling session via CCC that ext
Related Agents
Doc Janitor
Use this agent to clean up stale documentation artifacts before merging a branch. Finds plan files, session su
Doc Drift Auditor
Verify documentation accuracy against implementation using git forensics and code analysis with file paths, li
Doc Gardening
Audits ZAQ documentation and supporting agent memories for drift against current source and authoritative poli