Document Sync logo

Document Sync

Community
ananddtyagi
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.

Overview

Publisherananddtyagi
Repositorycc-marketplace
Skill namedocument-sync
Stars
689
Forks
85
Bundled files
9
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 9 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ananddtyagi on GitHub. Read the source before you install it.

Installation

Install the Document Sync AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ananddtyagi/cc-marketplace.git /tmp/cc-marketplace
mkdir -p .claude/skills
cp -r /tmp/cc-marketplace/plugins/claude-dev-infrastructure/skills/document-sync .claude/skills/document-sync
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Document Sync in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Document Sync on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Document Sync is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:

bash
# Run comprehensive system scan
python3 .claude/skills/document-sync/scripts/system_scan.py

This phase automatically:

  1. Tech Stack Detection - Parse package.json, requirements.txt, pom.xml, etc. for frameworks, DBs, and build tools
  2. Project Structure Analysis - Map src/, lib/, app/, and config/ directories for real usage
  3. 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:

bash
# Verify all documentation against code
python3 .claude/skills/document-sync/scripts/verify_docs.py

This phase:

  1. Docs Content Inventory - List all Markdown, docs/, and README files
  2. Technical Validation - Cross-reference each doc claim with real code/config
  3. 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:

bash
# 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:

yaml
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 SectionStatusEvidence FoundAction
/docs/api.md GET /usersCurrentEndpoint in code (src/routes/)Keep
/docs/db-setup.md PouchDBOutdatedNo mention in codebaseRemove/Update
/README.md Feature XMissingFound in src/feature-x.tsAdd details

docs_update_plan.md

  • Remove obsolete DB doc: /docs/db-setup.md (no longer in code)
  • Add section to /README.md for unlisted Feature X
  • Rewrite /docs/config.md section on env vars (now using .env.local)
  • Confirm all code-blocks in /docs/usage.md still 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 validating documentation accuracy
  • update_templates.md - Templates for common documentation updates

assets/

  • report_templates/ - Markdown templates for verification and update reports
  • config_schemas/ - JSON schemas for configuration validation

Safety Checklist

  • Full project scan completed
  • All doc claims matched to real code/config
  • Backups created before overwriting docs
  • No deletions/rewrites without clear code evidence
  • All updates and removals require user review
  • All code examples in docs validated with real source

Success Metrics

  • 100% doc claims match code/config truth
  • 0 obsolete/incorrect references in doc set
  • All new features in code are documented within 2 days
  • Doc update effort reduced by >60% for every release

MANDATORY USER VERIFICATION REQUIREMENT

Policy: No Fix Claims Without User Confirmation

CRITICAL: Before claiming ANY issue, bug, or problem is "fixed", "resolved", "working", or "complete", the following verification protocol is MANDATORY:

Step 1: Technical Verification
  • Run all relevant tests (build, type-check, unit tests)
  • Verify no console errors
  • Take screenshots/evidence of the fix
Step 2: User Verification Request

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."
Step 3: Wait for User Confirmation
  • DO NOT proceed with claims of success until user responds
  • DO NOT mark tasks as "completed" without user confirmation
  • DO NOT use phrases like "fixed", "resolved", "working" without user verification
Step 4: Handle User Feedback
  • If user confirms: Document the fix and mark as complete
  • If user reports issues: Continue debugging, repeat verification cycle

Prohibited Actions (Without User Verification)

  • Claiming a bug is "fixed"
  • Stating functionality is "working"
  • Marking issues as "resolved"
  • Declaring features as "complete"
  • Any success claims about fixes

Required Evidence Before User Verification Request

  1. Technical tests passing
  2. Visual confirmation via Playwright/screenshots
  3. Specific test scenarios executed
  4. Clear description of what was changed

Remember: The user is the final authority on whether something is fixed. No exceptions.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Document Sync AI skill do?

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.

Why use Document Sync on TypingMind?

Because you install it once and use it with any model. Document Sync is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Document Sync in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ananddtyagi/cc-marketplace/tree/main/plugins/claude-dev-infrastructure/skills/document-sync. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Document Sync?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Document Sync?

As many as you like. As long as a model supports skills, you can use Document Sync with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Document Sync AI skill free?

It is published on GitHub by ananddtyagi. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇