Loading...
Loading...
Periodically audit a repository's docs for staleness against the implementation: run a cheap mechanical scan (dead source-path references, dead links, leftover DEPRECATED/TBD banners, doc-vs-code freshness gap, git-invisible ignored leftovers, completed-but-undeleted plan files), then dispatch parallel read-only agents to verify only the suspicious docs against source, and finally propose update / delete / migrate-to-ADR dispositions for user approval. Use on a monthly or quarterly docs review, after large refactors or renames, or when asked whether docs are stale.
npx skill4agent add nextaltair/altairs-agent-dev-kit docs-freshness-audit| Item | Example |
|---|---|
| Docs Validation Command | |
| Audit Exclusions | Bundles like ADR/design (delegated to respective management rules), generated artifacts |
| Plan/Design Output Directories | |
| Maintenance History Entry Location | |
| Deletion Operation Rules | Push rules for docs chores (whether direct push is allowed) |
git ls-files docs | grep "\.md$" | while read doc; do
grep -oE "src/[A-Za-z0-9_/.-]+\.[a-z]+" "$doc" | sort -u | while read p; do
[ -e "$p" ] || echo "$doc -> $p"
done
done](path)DEPRECATEDSupersededNeeds ConfirmationTBDUnresolvedConfirmation Itemsgit log -1 --format=%ad --date=short -- "$doc" # doc side
git log --since="$doc_date" --oneline -- "$src_area" | wc -l # code side divergence amountgit rmgit status --ignored --porcelain docs/ | grep "^!!\|^??"ghgrep -oE "#[0-9]+" "$plan" | sort -u | while read n; do
gh issue view "${n#\#}" --json state --jq .state 2>/dev/null \
|| gh pr view "${n#\#}" --json state --jq .state
doneIn <repo>, please audit the discrepancies between document <doc> (last updated <date>) and the current implementation.
Steps:
1. Read the entire <doc>
2. Verify the modules/classes/functions/widgets mentioned in the doc against the current <src candidates>
3. List discrepancies: (a) elements written in the doc that do not exist in the implementation,
(b) major elements present in the implementation but missing from the doc, (c) mismatches in names, signatures, or algorithms
4. Check for the existence of live documents (<live doc candidates>) that can cover the same area
Output: Bullet points of discrepancies (doc line number + implementation file:line). Finally, provide one judgment:
"Generally Accurate / Partial Correction Sufficient / Full Rewrite Needed / Can Be Deleted (Covered by Live Docs)" + 1-2 sentences of rationale.| Status | Disposition |
|---|---|
| Live docs/implementation already cover the same area, no unique value | Delete (git history will preserve it) |
| Describes current functionality but is outdated | Update (reflect implementation verification results) |
| Only valuable as a record of design decisions | Migrate to ADR and delete the original |
| Matches implementation | Maintain with an audit confirmation note (dated) |
| Completed plan file | Delete |