document-sync
БесплатноЗапускает вложенные скриптыНе проверенA robust skill that analyzes your app's actual codebase, tech stack, configuration, and architecture to ensure ALL documentation is current and accurate. It…
от ananddtyagi★ 689 звёзд на GitHubОб этом скилле
Document Sync Skill for Claude Code
Overview
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.
Core Principles
- Verify, Never Assume: Documentation is only updated after end-to-end comparison against real, current code and dependencies
- Deep System Introspection: Checks languages, frameworks, APIs, DBs, config, code patterns, and deployment targets
- Doc Trust Score: Every doc gets a trust rating based on evidence found in the codebase and config files
Quick Start
Natural Language Commands:
- "Run document sync analysis on my project"
- "Update docs so every API route matches the code"
- "Check if any doc mentions features no longer in the app"
- "List undocumented config variables"
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 surprises
Operation Workflow
Phase 1: Full System Scan
Execute the system scanning script to analyze your codebase:
# Run comprehensive system scan
python3 .claude/skills/document-sync/scripts/system_scan.py
This phase automatically:
- Tech Stack Detection - Parse
package.json,requirements.txt,pom.xml, etc. for frameworks, DBs, and build tools - Project Structure Analysis - Map
src/,lib/,app/, andconfig/directories for real usage - Architecture Detection - Identify data flows, auth methods, sync strategies, and cloud/on-prem deployment
Key Outputs: system_state.json and code_features_report.md
Phase 2: Documentation Verification
Execute the documentation verification script:
# Verify all documentation against code
python3 .claude/skills/document-sync/scripts/verify_docs.py
This phase:
- Docs Content Inventory - List all Markdown, docs/, and README files
- Technical Validation - Cross-reference each doc claim with real code/config
- Relevance & Quality Scoring - Rate every doc: current, needs update, obsolete, or missing
Key Outputs: doc_verification_report.md and docs_update_plan.md
Phase 3: Automated or Assisted Document Updating
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
Configuration
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
Safety & Controls
- Never deletes or rewrites without firm code evidence
- Always creates a diff and backup before change
- User sets conservatism level: dry-run, suggest-only, or auto-update
- All changes are traceable—committed separately with actionable summaries
Output Examples
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
- Remove obsolete DB doc:
/docs/db-setup.md(no longer in code) - Add section to
/README.mdfor unlisted Feature X - Rewrite
/docs/config.mdsection on env vars (now using.env.local) - Confirm all code-blocks in
/docs/usage.mdstill run
Resources
This skill includes specialized scripts and references for comprehensive document synchronization:
scripts/
- system_scan.py - Comprehensive codebase analysis and tech stack detection
- verify_docs.py - Documentation verification and validation against code
- update_docs.py - Automated document updating with safety controls
references/
- tech_detection_patterns.md - Patterns for identifying frameworks and technologies
- doc_validation_rules.md - Rules for validati
Установить document-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл document-sync?
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.
Как установить скилл document-sync?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл document-sync запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic