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
- Doc Co-authoring — Guide users through structured workflow for co-authoring documentation 94.1k ★
- 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 ★
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
Explain Plan
Convert a plan doc into a self-contained interactive HTML explanation (Mermaid diagrams, blast-radius map, ste
Docs Drift
Use to catch documentation that has silently gone stale — it spawns ONE fresh sibling session via CCC that ext
Generate Changelog
Generate CHANGELOG.md from git commit history: $ARGUMENTS.
Changelog Gen
CHANGELOG.md update command. Generates a changelog from git history grouped by conventional commit types.
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
Docs Auditor
Audits Forge documentation for drift against the code. Checks that README counts, ARCHITECTURE hot paths, SETU