docs-sync
Skill4 starsChanged 9 days agoMITView on GitHub
Work out which documentation a code change made stale and update only those files, using a per-repo .claude/docs-map.yml instead of re-reading every doc. Use after changing behavior, routes, commands, environment variables, dependencies, schemas, or UI; when asked to update or check the docs; and before calling any change done in a repo that keeps its docs current.
48 other projects use a version of this.
Adopted by
Most recently taken up by
- bacsystem/skillstheir own version, first seen Nov 29, 2026
- Manshooo/astral-genesistheir own version, first seen Nov 29, 2026
- jackneil/claude-jackedtheir own version, first seen Nov 29, 2026
- kekzl/imptheir own version, first seen Nov 29, 2026
- sunholo-data/ailangtheir own version, first seen Nov 27, 2026
- raymond-van/animamatheir own version, first seen Nov 22, 2026
Used with
Projects with it also use git-workflow, code-review and 3 more.
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.
Microsoft AzureSkillgit-workflow
Squad branching model: dev-first workflow with insiders preview channel
Also in 3 projects that use this
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 6 projects that use this
GoogleSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 4 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 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 versions48 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 48
- openai/openai-agents-python★ 31ksame name
- redis/node-redis★ 18ksame name
- redis/ioredis★ 15ksame name
- fossasia/visdom★ 10ksame name
- Kiln-AI/Kiln★ 5.3ksame name
- danielmeppiel/apm★ 4.5ksame name
- microsoft/apm★ 4.5ksame name
- openai/openai-agents-js★ 4ksame name
- pnp/powershell★ 921same name
- strands-agents/box★ 650same name
38 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 repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-contractSkill
- claim-traceSkill
- llm-evalsSkill
- llm-pipelineSkill
- prose-guardSkill
- readme-brandSkill
- repo-scoutSkill
- session-handoffSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 39 edited versions we read keep these.
2
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 18
If it reports no map, set one up:
- Distinctive: line 54
Add a map entry the same day you add a doc.
“Common” is measured: kept by at least 6 in 10 of the 39 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
docs-sync
A change that leaves the docs stale is not done. The cost trap is that "check the docs" usually means re-reading every doc in the repo. The map turns it into a targeted edit.
Order of operations
python <skill>/scripts/stale_docs.pyThat prints the docs a change made stale, and the source file that triggered each one. Open only those, edit only the affected sections, and re-run to confirm.
If it reports no map, set one up:
python <skill>/scripts/stale_docs.py --initThat writes .claude/docs-map.yml from a template. Fill it in against the actual repo, then commit it.
Flags
| Flag | Effect |
--base main | Also count everything this branch changed since it forked from main. Use when reviewing a whole PR. |
--staged | Only what is staged. Use from a pre-commit hook. |
--verify | Exit nonzero if a mapped doc is stale and was not itself edited. Use in CI. |
--json | Machine readable. |
Writing the map
Keys are globs over source paths. Values are the docs that depend on them.
"app/api/**":
- README.md
- docs/API.md
"package.json":
- README.md
- docs/DEPLOYMENT.mdRules that keep the map honest:
- Map to the narrowest doc that owns the fact. If routes live in
docs/API.md, do not also list the README unless the README genuinely restates routes. - A glob that maps to five docs is usually wrong. It means one doc is repeating another, which is the real problem to fix.
- Env vars, commands, and dependencies are the three that go stale most often. Map them explicitly.
- Add a map entry the same day you add a doc. A map nobody maintains is worse than no map, because it reports clean.
Editing the stale doc
Change the smallest span that carries the fact. Do not rewrite surrounding prose, do not reorder sections, do not "improve" adjacent text. A docs-sync diff should be readable as a fact update.
Bump any Last verified or Last updated date in the files you touched.
Prose in the edit follows prose-guard's rules. Run that linter afterwards if the edit was more than a few words.
When there is no map
For a repo without one, do not fall back to reading everything. Grep for the changed identifier across *.md and open only the hits:
git grep -ln "OLD_ENV_VAR\|oldFunctionName" -- "*.md"Then offer to write the map so the next change is cheap.
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.

