doc-sync
Skill909 starsChanged 11 months agoMITView on GitHub
Synchronizes docs across a repository. Use when user asks to sync docs.
- Reads credentials
23 other projects use a version of this.
Adopted by
Most recently taken up by
- Univers42/claude-deal-with-the-deviltheir own version, first seen Oct 4, 2026
- NVIDIA/TensorRT-Model-Connecttheir own version, first seen Sep 28, 2026
- lldwb/lldwb-claude-skillstheir own version, first seen Sep 28, 2026
- collectifweb/claude-skillstheir own version, first seen Sep 23, 2026
- tykisgod/quick-questiontheir own version, first seen Sep 19, 2026
- hams-ollo/zen-agent-skillstheir own version, first seen Aug 31, 2026
Used with
Projects with it also use code-review and handoff.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 4 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- JetBrains/ideavim★ 10ksame name
- NVIDIA/TensorRT-Model-Connect★ 271same name
- fancyboi999/open-tag★ 200same name
- aspenkit/aspens★ 101same name
- tykisgod/quick-question★ 11same name
- Reef123/OpenVera★ 9same name
- zeon-kun/claude-skills★ 6same name
- Univers42/claude-deal-with-the-devil★ 4same name
- collectifweb/claude-skills★ 3same name
- eddieran/skillpm★ 2same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- conventions/CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
- .github/workflows/CLAUDE.mdCLAUDE.md
- skills/arxiv-to-md/CLAUDE.mdCLAUDE.md
- skills/cc-history/CLAUDE.mdCLAUDE.md
- skills/CLAUDE.mdCLAUDE.md
- skills/codebase-analysis/CLAUDE.mdCLAUDE.md
- skills/decision-critic/CLAUDE.mdCLAUDE.md
- skills/deepthink/CLAUDE.mdCLAUDE.md
- skills/doc-sync/CLAUDE.mdCLAUDE.md
- skills/doc-sync/references/CLAUDE.mdCLAUDE.md
- skills/incoherence/CLAUDE.mdCLAUDE.md
- skills/planner/CLAUDE.mdCLAUDE.md
- skills/planner/resources/CLAUDE.mdCLAUDE.md
- skills/problem-analysis/CLAUDE.mdCLAUDE.md
- skills/prompt-engineer/CLAUDE.mdCLAUDE.md
- skills/prompt-engineer/papers/CLAUDE.mdCLAUDE.md
- skills/prompt-engineer/references/CLAUDE.mdCLAUDE.md
- skills/refactor/CLAUDE.mdCLAUDE.md
- skills/scripts/tests/CLAUDE.mdCLAUDE.md
- arxiv-to-mdSkill
- cc-historySkill
- codebase-analysisSkill
- decision-criticSkill
- deepthinkSkill
- incoherenceSkill
- plannerSkill
- problem-analysisSkill
- prompt-engineerSkill
- refactorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. 0 are common, 22 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
22
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 46
If yes, does it have the required table-based index structure?
- Distinctive: line 70
Critical: If CLAUDE.md contains content that does NOT belong there, migrate it:
- Distinctive: line 89
Test commands specific to this directory
- Distinctive: line 94
Test: Ask "is this explaining WHY or telling HOW?" Explanatory content (architecture, decisions, rationale) goes to README.md.
- Distinctive: line 101
Create or update README.md with the architectural content
- Distinctive: line 103
Add README.md to the CLAUDE.md index table
- Distinctive: line 111
Use the appropriate template (ROOT or SUBDIRECTORY)
- Distinctive: line 113
Write "What" column: factual content description
- Distinctive: line 114
Write "When to read" column: action-oriented triggers
- Distinctive: line 115
If README.md exists, include it in the Files table
- Distinctive: line 119
Verify invisible knowledge exists (semantic trigger, not structural)
- Distinctive: line 120
Document architecture, design decisions, invariants, tradeoffs
- Distinctive: line 122
Keep as concise as possible while capturing all invisible knowledge
- Distinctive: line 123
Must be self-contained: do not reference external authoritative sources
- Distinctive: line 127
After all updates complete, verify:
- Distinctive: line 129
Every directory in scope has CLAUDE.md
- Distinctive: line 130
All CLAUDE.md files use table-based index format (pure navigation)
- Distinctive: line 131
No drift remains (files <-> index entries match)
- Distinctive: line 132
No misplaced content in CLAUDE.md (explanatory prose moved to README.md)
- Distinctive: line 164
DO NOT create CLAUDE.md for:
- Distinctive: line 173
DO NOT index (skip these files in CLAUDE.md):
- Distinctive: line 181
Test files and test directories
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Doc Sync
Maintains the CLAUDE.md navigation hierarchy and README.md invisible knowledge docs across a repository. This skill is self-contained and performs all documentation work directly.
Documentation Conventions
For authoritative CLAUDE.md and README.md format specification:
<file working-dir=".claude" uri="conventions/documentation.md" />The conventions/ directory contains all universal documentation standards.
Scope Resolution
Determine scope FIRST:
| User Request | Scope |
| "sync docs" / "update documentation" / no specific path | REPOSITORY-WIDE |
| "sync docs in src/validator/" | DIRECTORY: src/validator/ and descendants |
| "update CLAUDE.md for parser.py" | FILE: single file's parent directory |
For REPOSITORY-WIDE scope, perform a full audit. For narrower scopes, operate only within the specified boundary.
Workflow
Phase 1: Discovery
Map directories requiring CLAUDE.md verification:
# Find all directories (excluding .git, node_modules, __pycache__, etc.)
find . -type d \( -name .git -o -name node_modules -o -name __pycache__ -o -name .venv -o -name target -o -name dist -o -name build \) -prune -o -type d -printFor each directory in scope, record:
- Does CLAUDE.md exist?
- If yes, does it have the required table-based index structure?
- What files/subdirectories exist that need indexing?
Phase 2: Audit
For each directory, check for drift and misplaced content:
<audit_check dir="[path]">
CLAUDE.md exists: [YES/NO]
Has table-based index: [YES/NO]
Files in directory: [list]
Files in index: [list]
Missing from index: [list]
Stale in index (file deleted): [list]
Triggers are task-oriented: [YES/NO/PARTIAL]
Contains misplaced content: [YES/NO] (architecture/design docs that belong in README.md)
README.md exists: [YES/NO]
README.md warranted: [YES/NO] (invisible knowledge present?)
</audit_check>Phase 3: Content Migration
Critical: If CLAUDE.md contains content that does NOT belong there, migrate it:
Content that MUST be moved from CLAUDE.md to README.md:
- Architecture explanations or diagrams
- Design decision documentation
- Component interaction descriptions
- Overview sections with prose (beyond one sentence)
- Invariants or rules documentation
- Any "why" explanations beyond simple triggers
- Key Invariants sections
- Dependencies sections (explanatory -- index can note dependencies exist)
- Constraints sections
- Purpose sections with prose (beyond one sentence)
- Any bullet-point lists explaining rationale
Content that MAY stay in CLAUDE.md (operational sections):
- Build commands specific to this directory
- Test commands specific to this directory
- Regeneration/sync commands (e.g., protobuf regeneration)
- Deploy commands
- Other copy-pasteable procedural commands
Test: Ask "is this explaining WHY or telling HOW?" Explanatory content (architecture, decisions, rationale) goes to README.md. Operational content (commands, procedures) stays in CLAUDE.md.
Migration process:
- Identify misplaced content in CLAUDE.md
- Create or update README.md with the architectural content
- Strip CLAUDE.md down to pure index format
- Add README.md to the CLAUDE.md index table
Phase 4: Index Updates
For each directory needing work:
Creating/Updating CLAUDE.md:
- Use the appropriate template (ROOT or SUBDIRECTORY)
- Populate tables with all files and subdirectories
- Write "What" column: factual content description
- Write "When to read" column: action-oriented triggers
- If README.md exists, include it in the Files table
Creating README.md (when invisible knowledge exists):
- Verify invisible knowledge exists (semantic trigger, not structural)
- Document architecture, design decisions, invariants, tradeoffs
- Apply the content test: remove anything visible from code
- Keep as concise as possible while capturing all invisible knowledge
- Must be self-contained: do not reference external authoritative sources
Phase 5: Verification
After all updates complete, verify:
- Every directory in scope has CLAUDE.md
- All CLAUDE.md files use table-based index format (pure navigation)
- No drift remains (files <-> index entries match)
- No misplaced content in CLAUDE.md (explanatory prose moved to README.md)
- README.md files are indexed in their parent CLAUDE.md
- CLAUDE.md contains only: one-sentence overview + tabular index + operational sections
- README.md exists wherever invisible knowledge was identified
- README.md files are self-contained (no external authoritative references)
Output Format
## Doc Sync Report
### Scope: [REPOSITORY-WIDE | directory path]
### Changes Made
- CREATED: [list of new CLAUDE.md files]
- UPDATED: [list of modified CLAUDE.md files]
- MIGRATED: [list of content moved from CLAUDE.md to README.md]
- CREATED: [list of new README.md files]
- FLAGGED: [any issues requiring human decision]
### Verification
- Directories audited: [count]
- CLAUDE.md coverage: [count]/[total] (100%)
- CLAUDE.md format: [count] pure index / [count] needed migration
- Drift detected: [count] entries fixed
- Content migrations: [count] (prose moved to README.md)
- README.md files: [count] (wherever invisible knowledge exists)
- Self-contained: [YES/NO] (no external authoritative references)Exclusions
DO NOT create CLAUDE.md for:
- Generated files directories (dist/, build/, compiled outputs)
- Vendored dependencies (node_modules/, vendor/, third_party/)
- Git internals (.git/)
- IDE/editor configs (.idea/, .vscode/ unless project-specific settings)
- Stub directories (contain only
.gitkeepor no code files) - these do not require CLAUDE.md until code is added
DO NOT index (skip these files in CLAUDE.md):
- Generated files (.generated., compiled outputs)
- Vendored dependency files
DO index:
- Hidden config files that affect development (.eslintrc, .env.example, .gitignore)
- Test files and test directories
- Documentation files (including README.md)
Anti-Patterns
Index Anti-Patterns
Too vague (matches everything):
| `config/` | Configuration | Working with configuration |Content description instead of trigger:
| `cache.rs` | Contains the LRU cache implementation | - |Missing action verb:
| `parser.py` | Input parsing | Input parsing and format handling |Correct Examples
| `cache.rs` | LRU cache with O(1) get/set | Implementing caching, debugging misses, tuning eviction |
| `config/` | YAML config parsing, env overrides | Adding config options, changing defaults, debugging config loading |When NOT to Use This Skill
- Single file documentation (inline comments, docstrings) - handle directly
- Code comments - handle directly
- Function/module docstrings - handle directly
- This skill is for CLAUDE.md/README.md synchronization specifically
Reference
For additional trigger pattern examples, see references/trigger-patterns.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

