doc-sync
Original:🇺🇸 English
Translated
Audit project documentation against the codebase and fix drift. Run before PRs or after major changes. Compares documented architecture, test counts, and file paths against actual state.
2installs
Sourceacedergren/agentic-tools
Added on
NPX Install
npx skill4agent add acedergren/agentic-tools doc-syncTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Documentation Sync Audit
Audit all project documentation against the actual codebase and report (or fix) any drift.
Steps
-
Identify documentation files: Find allfiles in
.md, project root, anddocs/that describe architecture, security, testing, or roadmap..claude/reference/ -
Audit architecture docs against the codebase:
- Check main entry point — does the plugin/middleware chain match the documented order?
- Check routes directory — are all route modules listed?
- Check shared packages — are all exports documented?
- Check monorepo layout — does the documented tree match actual directory structure?
-
Audit security docs:
- Check security plugins/middleware — are all documented?
- Check for new security-related commits since last doc update
- Verify permission counts match actual definitions
-
Audit test docs:
- Count actual test files
- Run test suite to get current pass counts
- Compare documented test counts to actual counts
-
Audit roadmap/changelog:
- Check git log for commits not reflected in any documented phase
- Verify completed phases are marked done
-
Audit CLAUDE.md / agent instructions:
- Check naming conventions match actual code patterns
- Verify documented file paths still exist
- Confirm anti-patterns section is current
-
Report findings:
| Doc | Section | Issue | Severity | |-----|---------|-------|----------| -
Fix drift (ifcontains "fix"):
$ARGUMENTS- Make targeted edits to fix each drift item
- Commit with
docs: sync documentation with codebase [doc-sync]
If is empty or "audit", only report — don't edit.
$ARGUMENTSArguments
- :
$ARGUMENTS(default, report only) oraudit(report and fix drift)fix
When to Run
- Before creating a pull request ()
/doc-sync audit - After completing a development phase ()
/doc-sync fix - After any structural changes (new plugins, routes, migrations)