A robust skill that analyzes your app's actual codebase, tech stack, configuration, and architecture to ensure ALL documentation is current and accurate. It never assumes—always verifies and compares the live system with every documentation file to detect code-doc drift and generate actionable updates.
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.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer