From claude-dev-infrastructure
Scans codebase structure, tech stack, config, and architecture to verify documentation accuracy, detect drift, score trust, and generate update reports or PRs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-dev-infrastructure:document-syncThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides comprehensive documentation synchronization by analyzing your actual codebase, tech stack, configuration, and architecture to ensure all documentation remains current and accurate. It operates on a "verify, never assume" principle, performing end-to-end comparisons against real code and dependencies to detect documentation drift automatically.
This skill provides comprehensive documentation synchronization by analyzing your actual codebase, tech stack, configuration, and architecture to ensure all documentation remains current and accurate. It operates on a "verify, never assume" principle, performing end-to-end comparisons against real code and dependencies to detect documentation drift automatically.
Natural Language Commands:
Slash Commands:
/docs-sync — Runs analysis and outputs a complete report on outdated/inaccurate sections/docs-update-strict — Suggests only changes verified by found code/config evidence/docs-rewrite-missing — Fills gaps for undocumented features based on live source/docs-patch-pr — Makes all doc changes as a PR, zero surprisesExecute the system scanning script to analyze your codebase:
# Run comprehensive system scan
python3 .claude/skills/document-sync/scripts/system_scan.py
This phase automatically:
package.json, requirements.txt, pom.xml, etc. for frameworks, DBs, and build toolssrc/, lib/, app/, and config/ directories for real usageKey Outputs: system_state.json and code_features_report.md
Execute the documentation verification script:
# Verify all documentation against code
python3 .claude/skills/document-sync/scripts/verify_docs.py
This phase:
Key Outputs: doc_verification_report.md and docs_update_plan.md
Based on the verification results, choose your update approach:
# Dry run - see what would change
python3 .claude/skills/document-sync/scripts/update_docs.py --mode=dry-run
# Suggest mode - get suggestions for review
python3 .claude/skills/document-sync/scripts/update_docs.py --mode=suggest
# Auto-update with backups
python3 .claude/skills/document-sync/scripts/update_docs.py --mode=auto-update
Create .claude/document-sync-skill.yml in your project root:
mode: suggest # suggest | dry-run | auto-update
protected_docs:
- README.md
- docs/security.md
review_required_for:
- section removal
- breaking doc changes
output_reports:
- doc_verification_report.md
- docs_update_plan.md
doc_verification_report.md
| Doc Section | Status | Evidence Found | Action |
|---|---|---|---|
/docs/api.md GET /users | Current | Endpoint in code (src/routes/) | Keep |
/docs/db-setup.md PouchDB | Outdated | No mention in codebase | Remove/Update |
/README.md Feature X | Missing | Found in src/feature-x.ts | Add details |
docs_update_plan.md
/docs/db-setup.md (no longer in code)/README.md for unlisted Feature X/docs/config.md section on env vars (now using .env.local)/docs/usage.md still runThis skill includes specialized scripts and references for comprehensive document synchronization:
CRITICAL: Before claiming ANY issue, bug, or problem is "fixed", "resolved", "working", or "complete", the following verification protocol is MANDATORY:
REQUIRED: Use the AskUserQuestion tool to explicitly ask the user to verify the fix:
"I've implemented [description of fix]. Before I mark this as complete, please verify:
1. [Specific thing to check #1]
2. [Specific thing to check #2]
3. Does this fix the issue you were experiencing?
Please confirm the fix works as expected, or let me know what's still not working."
Remember: The user is the final authority on whether something is fixed. No exceptions.
Scans codebase structure, tech stack, config, and architecture to verify documentation accuracy, detect drift, score trust, and generate update reports or PRs.
Audits codebase documentation for accuracy, completeness, and freshness by comparing against code structure. Auto-fixes small discrepancies in fix mode, reports structural changes. Works with any language/framework.
Audits codebase documentation against actual behavior, producing a severity-tagged drift report (STALE, MISSING, OUTDATED, DUPLICATE). Read-only review.
npx claudepluginhub mulkerrin-sean/cc-marketplace --plugin claude-dev-infrastructure