sync-docs
Skill4 starsChanged 2 months agoMITView on GitHub
Update a project's documentation to reflect code changes on the current branch before opening a PR. Use when the user finishes a feature/fix and is about to create a PR, or asks to "sync docs", "update the docs for these changes", or check whether documentation needs updating.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- nerymurillohnd/claude-essentialstheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- richkuo/rk-skillstheir own version, first seen Oct 4, 2026
- enerage/vibespacetheir own version, first seen Sep 28, 2026
- whchoi98/claude-code-dashboardtheir own version, first seen Sep 26, 2026
- joshzyj/open-scholar-skilltheir own version, first seen Aug 29, 2026
Used with
Projects with it also use code-review.
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 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- joshzyj/open-scholar-skill★ 166same name
- Kangentic/kangentic★ 124same name
- guess/claude_code★ 97same name
- richkuo/rk-skills★ 49same name
- jiahao-shao1/sjh-skills★ 38same name
- phj128/autoworker★ 19same name
- whchoi98/claude-code-dashboard★ 16same name
- Eipi-Tong/agentic-coding-starter-kit★ 3same name
- neuradex/sna★ 2same name
- enerage/vibespace★ 1same name
5 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 repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- delegateSkill
- finish-featureSkill
- prune-context-fileSkill
- questionsSkill
- reddit-firecrawl-supportSkill
- reference-led-websitesSkill
- say-as-meSkill
- shorts-writerSkill
- title-researchSkill
- title-scoreSkill
- tweetSkill
- wdytSkill
- website-reference-curatorSkill
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 12 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 12
Locate the docs and learn the conventions: Don't assume a layout — find it:
- Distinctive: line 25
If on the base branch or there's no diff, stop and tell the user there's nothing to sync.
“Common” is measured: kept by at least 6 in 10 of the 12 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
Sync Docs
Bring a project's documentation in line with the code changes on the current branch, so doc updates land in the same PR as the code and get reviewed together. Project-agnostic: discover the project's doc conventions first, then apply this workflow.
Workflow
- Locate the docs and learn the conventions. Don't assume a layout — find it:
Common homes: agit ls-files | grep -iE '(^|/)(docs?|documentation|content)/' | head -50docs/dir, apackages/docsorwebsite/package (Astro/Starlight, Docusaurus, VitePress, mkdocs), a top-levelREADME.md, orman/. Identify which generator (if any) by checking forastro.config.*,docusaurus.config.*,mkdocs.yml,*.vitepress, etc.- Read any docs-specific guidance first — a
CLAUDE.md/AGENTS.md/README.mdinside the docs dir, or a## Docssection in the repo's rootCLAUDE.md. Follow its house style and gotchas. - Note which files are generated (build artifacts like
dist/,llms.txt, per-page.mdexports, API reference dumps). Never hand-edit generated output — edit the source it's built from.
- Read any docs-specific guidance first — a
- Get the diff. Determine the base branch (usually
mainormaster; checkgit remote show originor the repo's default) and diff against it:
If on the base branch or there's no diff, stop and tell the user there's nothing to sync.git diff <base>...HEAD --stat git diff <base>...HEAD - Decide if docs are even in scope. Doc-relevant changes are user-facing: CLI commands/flags, public API signatures, config options, env vars, UI flows, install/build/setup steps, and behavior changes a user would notice. Pure internal refactors, tests, and CI changes usually need no doc update — say so and stop rather than inventing edits.
- Map changes to pages. For each user-facing change, find the page(s) that describe it. Grep the docs for the old name/flag/value to catch every mention:
Renamed/removed things are the highest-value catch — stale references mislead users.grep -rn "<old-flag-or-name>" <docs-dir> - Edit the source pages. Make the smallest change that makes the docs correct. Match the existing voice, structure, and any callout/aside syntax the generator uses. If you add or rename a page, update whatever the project uses for navigation (sidebar config,
_sidebar, frontmatterslug, nav YAML) and fix in-content links to it. - Flag what you can't map. If a code change clearly affects users but you can't confidently place it (or it needs a screenshot, a decision, or content you don't have), don't guess — list it for the user to handle, with the file/change and your best suggestion.
- Verify the build, if there is one. If the docs are part of a buildable site, run its build to surface broken links/nav (e.g. the docs package's
buildscript). This catches errors dev mode hides. Don't claim done until it passes. If there's no build step, re-read your edits for correctness. - Report. Summarize: pages edited (and why), pages checked but left unchanged, and anything flagged for the user. Leave committing/PR creation to the user unless they ask.
Principles
- Silence-or-flag beats fabricating. A wrong doc is worse than a missing one.
- One PR, reviewable diff: doc edits go on the current branch as normal edits the user reviews — never auto-commit or auto-merge.
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.

