sync-docs
Installation
SKILL.md
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