一键导入
check-docs
Scan docs and CLAUDE.md for stale references, broken links, and drift against the codebase
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scan docs and CLAUDE.md for stale references, broken links, and drift against the codebase
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Resume work on current branch's task (infers task from branch name)
Run an epic end-to-end with agent team (analyze, design review, implement, deliver PR)
Start working on a beads task (creates worktree, updates status)
Compare macOS and Windows implementations for cross-platform parity drift
| name | check-docs |
| description | Scan docs and CLAUDE.md for stale references, broken links, and drift against the codebase |
| user_invocable | true |
You are auditing the repository's documentation for drift against the current codebase. Cross-platform apps with rapid architectural changes accumulate stale references quickly, and those drifted docs mislead future contributors (and Claude).
Scan for references to removed architecture. Use Grep across *.md, .github/, and .claude/:
\b[Rr]ust\b, UniFFI, pablo-core, cargo, \.toml\b, Cargo\.tomltranscribe_session_1on1, preprocess_pcm, CaptureRecordingResult — these were Rust/UniFFI symbolscore/ directory references (Rust was removed in commit 5f05c87)Scan for references to removed files. For each doc in docs/ and root .md files, extract backtick-quoted file paths and verify each one exists on disk (ignoring external repos like pablo-health/pablo).
Check CLAUDE.md claims against reality:
PABLO-D-* issue ID mentioned, confirm it exists in .beads/issues.jsonlCheck SECURITY.md for platform drift:
/core doesn't exist → flagwindows/ directory, etc.) → flagCheck .github/dependabot.yml: every directory: must correspond to a real directory in the repo.
Check AGENTS.md and skill docs for references to non-existent slash commands or agents.
## Doc Freshness Audit
### Critical (references to removed code)
- **path/to/doc.md:NN** — mentions `foo`; last seen in commit `abc123`, removed in `def456`
- ...
### Broken internal links
- **path/to/doc.md:NN** — references `relative/path/to/missing.md`
- ...
### Drift against code
- **CLAUDE.md:NN** — claims "X" but code says "Y" (`path/to/file.ext:NN`)
- ...
### Likely-stale docs (no fix proposed, just flagging)
- docs/foo.md — last touched 2025-XX; references removed subsystem
- ...
### Clean
- All docs free of stale refs: list them here
/check-docs
Takes no arguments. Runs against the whole repo.