Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/gcharang-doc-sync
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
doc-sync- Description
- Synchronizes docs across a repository. Use when user asks to sync docs.
- License
- MIT
- Instructions
- 191 lines in SKILL.md · view on GitHub
Files (5)
- CLAUDE.md
- README.md
- SKILL.md
- CLAUDE.md · references/
- trigger-patterns.md · references/
SKILL.md (first lines)
# Doc Sync
Maintains the CLAUDE.md navigation hierarchy and README.md invisible knowledge
docs across a repository. The skill has no script: you do the documentation
work directly, against the format specification below.
## 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:
```bash
# Directories holding tracked or new non-ignored files, with every ancestor
git -c core.quotePath=false ls-files --cached --others --exclude-standard | awk -F/ '{p="."; for (i=1;i<NF;i++) {p=p"/"$i; print p}} END {print "."}' | sort -u
```
Outside a git repository:
```bash
find . -type d \( -name .git -o -name node_modules -o -name vendor -o -name third_party -o -name __pycache__ -o -name .venv -o -name target -o -name dist -o -name build -o -name .idea -o -name .vscode \) -prune -o -type d -print
```
For each directory in scope, record:
1. Does CLAUDE.md exist?
2. If yes, does it have the required table-based index structure?
3. Which subdirectories and entry-point files need a row (conventions/documentation.md)?
### Phase 2: Audit
For each directory, check for drift and misplaced content:
- Missing from index: subdirectories and entry-point files with no row
- Stale in index: rows that name a deleted path
- Triggers: task-oriented, or vague or descriptive (see Anti-Patterns)
- Misplaced content: architecture or design prose that belongs in README.md
- README.md: whether one exists, and whether the directory meets the README.md
Creation Criteria in conventions/documentation.md
### Phase 3: Content Migration
CLAUDE.md holds navigation and operational commands; README.md holds explanation. For each block in a CLAUDE.md, ask whether it explains WHY or tells HOW:
- Explanatory content - architecture, component interactions, design decisions, invariants and constraints, rationale, and any overview or purpose prose longer than one sentence - moves to README.md.
- Operational content - copy-pasteable build, test, regenerate or deploy commands for this directory - stays in CLAUDE.md.
Migration process:
1. Identify misplaced content in CLAUDE.md
2. Create or update README.md with the architectural content
3. Strip CLAUDE.md down to pure index format
4. Add README.md to the CLAUDE.md index table
### Phase 4: Index Updates
For each directory needing work:
**Creating/Updating CLAUDE.md:**
1. Use the appropriate template (ROOT or SUBDIRECTORY)
2. Populate tables with the subdirectories and entry-point files
3. Write "What" column: factual content description
4. Write "When to read" column: action-oriented triggers
5. If README.md exists, include it in the Files table
**Creating README.md:**
1. Confirm the directory meets the README.md Creation Criteria in conventions/documentation.md (a semantic trigger, not a structural one)
2. Document architecture, design decisions, invariants, tradeoffs
3. Apply the content test: remove anything visible from code
4. Keep as concise as possible while capturing all of that knowledge
5. Must be self-contained (conventions/documentation.md)
### Phase 5: Verification
After all updates complete, verify:
1. Every directory in scope has CLAUDE.md
2. All CLAUDE.md files use table-based index format (pure navigation)
3. No drift remains: every subdirectory and entry-point file has a row, and no row names a deleted path
4. No misplaced content in CLAUDE.md (explanatory prose moved to README.md)
5. README.md files are indexed in their parent CLAUDE.md
6. CLAUDE.md contains only: one-sentence overview + tabular index + operational sections
7. README.md exists in every directory that meets the README.md Creation Criteria
8. README.md files are self-contained (outside sources summarized, repository files pointed at)
## 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]From gcharang/claude-config, MIT.
More from gcharang/claude-config
- 0.570score
prompt-engineer
gcharang
Invoke IMMEDIATELY via script when user requests prompt optimization.
SkillAFreshness: AClaude Code +9 - 0.565score
refactor
gcharang
Invoke IMMEDIATELY via script when user requests refactoring analysis, technical debt review, or code quality improvement.
SkillAFreshness: AClaude Code +9 - 0.565score
incoherence
gcharang
Detect and resolve incoherence across documentation, code and specs.
SkillAFreshness: AClaude Code +9 - 0.560score
cc-history
gcharang
Query Claude Code conversation history (JSONL transcripts under ~/.claude/projects/) with shell and jq.
SkillAFreshness: AClaude Code +9 - 0.559score
deepthink
gcharang
Invoke IMMEDIATELY via script when user requests structured reasoning for open-ended analytical questions.
SkillAFreshness: AClaude Code +9 - 0.559score
problem-analysis
gcharang
Invoke IMMEDIATELY via script when user requests problem analysis or root cause investigation.
SkillAFreshness: AClaude Code +9 - 0.559score
codebase-analysis
gcharang
Invoke IMMEDIATELY via script when user requests codebase understanding, architecture comprehension, or repository orientation.
SkillAFreshness: AClaude Code +9 - 0.556score
decision-critic
gcharang
Invoke IMMEDIATELY via script to stress-test decisions and reasoning.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 22, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/gcharang/claude-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from gcharang
- 0.570score
prompt-engineer
gcharang
Invoke IMMEDIATELY via script when user requests prompt optimization.
SkillAFreshness: AClaude Code +9 - 0.565score
refactor
gcharang
Invoke IMMEDIATELY via script when user requests refactoring analysis, technical debt review, or code quality improvement.
SkillAFreshness: AClaude Code +9 - 0.565score
incoherence
gcharang
Detect and resolve incoherence across documentation, code and specs.
SkillAFreshness: AClaude Code +9 - 0.560score
cc-history
gcharang
Query Claude Code conversation history (JSONL transcripts under ~/.claude/projects/) with shell and jq.
SkillAFreshness: AClaude Code +9 - 0.559score
deepthink
gcharang
Invoke IMMEDIATELY via script when user requests structured reasoning for open-ended analytical questions.
SkillAFreshness: AClaude Code +9 - 0.559score
problem-analysis
gcharang
Invoke IMMEDIATELY via script when user requests problem analysis or root cause investigation.
SkillAFreshness: AClaude Code +9
Cite this page
doc-sync skill. Agent Mart. https://agentmart.dev/skills/gcharang-doc-sync (last updated 2026-10-24)