← ClaudeAtlas

docs-relevancelisted

Check that a project's documentation still matches the code and that what should be documented is. TRIGGER when: /commit step 4 runs it, or the user asks whether the docs are stale, out of date, or missing a feature. DO NOT TRIGGER when: the task is how a document is written rather than whether it is true — that is `docs-style`.
AnotherSava/claude-code-common · ★ 1 · AI & Automation · score 74
Install: claude install-skill AnotherSava/claude-code-common
# Update Documentation Scan project documentation and comments for references that no longer match the code, and fix them. ## Context - Repo root: !`git rev-parse --show-toplevel 2>/dev/null || pwd` - Uncommitted changes: !`git status --short` - Diff summary: !`git diff --stat $(git rev-parse -q --verify HEAD || echo 4b825dc642cb6eb9a060e54bf8d69288fbee4904)` - Full diff: !`git diff $(git rev-parse -q --verify HEAD || echo 4b825dc642cb6eb9a060e54bf8d69288fbee4904)` - GH Pages index present: !`R=$(git rev-parse --show-toplevel 2>/dev/null || pwd) && test -f "$R/docs/index.md" && echo yes || echo no` - Doc image files: !`git ls-files --full-name -co --exclude-standard -- ':/docs/*.png' ':/docs/*.jpg' ':/docs/*.jpeg' ':/docs/*.gif' ':/docs/*.webp' | grep . || echo NONE` - Screenshot manifest: !`R=$(git rev-parse --show-toplevel 2>/dev/null || pwd) && cat "$R/docs/screenshots/screenshots.json" 2>/dev/null || echo MISSING` ## Working directory All file paths below (`README.md`, `docs/`, `docs/pages/`, `docs/index.md`, `docs/screenshots/`, `CLAUDE.md`) are relative to **Repo root** from Context. The current working directory may be a subdirectory (e.g. `src-tauri/`, `frontend/`), so always prefix the Repo root value when calling Read/Edit/Write/Grep/Glob. Bare paths are cwd-relative and will silently miss files that live at the actual root. ## Process **First, read the project's own guidelines, and let them override any step below.** A project `CLAUDE.md` — `.claude/CLAUDE.md