sync-docs
Skill65 starsChanged 3 days agoMITView on GitHub
Sync docs and skills so they never drift from the code. Use before opening or updating a PR, or when a change touches a command, path, convention, or the skill set a doc or skill documents.
25 other projects use a version of this.
Adopted by
Most recently taken up by
- justincordova/agentstheir own version, first seen Nov 29, 2026
- Kangentic/kangentictheir own version, first seen Nov 24, 2026
- richkuo/rk-skillstheir own version, first seen Nov 21, 2026
- MichaelRyanWood/claude-skillstheir own version, first seen Nov 16, 2026
- TanKaizokuO/claude-skillstheir own version, first seen Oct 20, 2026
- blakebauman/memoturn-dbtheir own version, first seen Oct 13, 2026
Used with
Projects with it also use prepare-release, review-pr 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.
ShopifySkillprepare-release
Prepare the changeset-release/main branch for release by syncing version.ts files and running pnpm install
Also in 4 projects that use this
DockerSkillreview-pr
Review one or more incoming Docker documentation pull requests as a maintainer. Independently validate technical claims, assess editorial fit and information architecture, choose a verdict, and draft exact inline or PR-wide feedback behind a confirmation gate. Use for requests such as "review PR 123", "is this PR correct?", "does this information belong here?", "validate this PR", or "help review backlog PRs". Do not use to maintain or fix a PR you own; use maintain-pr for that.
Also in 3 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
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
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 versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- kube-hetzner/terraform-hcloud-kube-hetzner★ 3.9ksame name
- mysticaltech/terraform-hcloud-kube-hetzner★ 3.9ksame name
- onevcat/Prowl★ 682same name
- ayutaz/piper-plus★ 240same name
- joshzyj/open-scholar-skill★ 177same name
- Kangentic/kangentic★ 154same name
- guess/claude_code★ 96same name
- richkuo/rk-skills★ 50same name
- jiahao-shao1/sjh-skills★ 48same name
- phj128/autoworker★ 18same name
15 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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-packageSkill
- agent-browserSkill
- api-endpointSkill
- codebase-mapSkill
- db-migrationSkill
- delete-commentSkill
- designSkill
- devSkill
- docker-testSkill
- fontsSkill
- gh-commitSkill
- iceboxSkill
- portlessSkill
- releaseSkill
- runtime-apisSkill
- skills-managerSkill
- sync-depsSkill
- sync-ignoreSkill
- sync-shadcnSkill
- ui-verifySkill
The file
Files
Doc Sync
A change ships with its docs or it ships drift. This is the procedure that catches drift across every hand-authored surface before the PR goes up: AGENTS.md makes the sync mandatory, this makes it checkable.
Surfaces
Hand-authored, keep each in step with the code:
| Surface | Documents | Drifts when |
web/next/content/docs/**.mdx | concepts and how-to (getting-started, deployment, manage, resources) | a feature, convention, API, command, script, or env var it describes changes |
web/next/docs.config.ts | the docs nav and page registry, the single source the sidebar, meta.json, and MDX frontmatter all derive from | a doc page is added, removed, renamed, or re-slugged |
README.md | top-level story: stack, structure, quick start, scripts, deployment | the stack, setup, scripts, or pitch changes |
.agents/skills/<name>/SKILL.md | one task procedure each (canonical; .claude and .github symlink in) | a command, path, convention, or tooling a skill encodes changes, or a skill is added or removed |
AGENTS.md (CLAUDE.md symlinks in) | the rules and the skills catalog table; ships to every fork whole, so a rule must read true there too | a rule changes, or the skill set changes |
packages/config/src/site.ts | the brand, the feature flags, and the hand-written preamble served at the top of /llms-full.txt | the layout, the route groups, the packages, or the API surface it describes changes |
Generated, never hand-edit (they regenerate from the surfaces above): content/docs/meta.json (git-ignored), the /llms.txt and /llms-full.txt routes, and the fumadocs search index. The one hand-written part of those routes is the /llms-full.txt preamble, which lives in site.ts above.
1. Scope the change
List what the diff touched: paths, commands, script names, env vars, conventions, tooling, and whether the skill set changed. Start from git diff --stat and the code diff.
2. Hunt drift
Grep every surface for each changed path, command, or symbol; every hit is a candidate:
rg -n "<changed-path-or-command>" web/next/content/docs README.md AGENTS.md .agents/skills web/next/docs.config.ts3. Sync, coupled surfaces included
Fix each hit in the same change. Two couplings are easy to miss:
- Adding or removing a skill touches the
AGENTS.mdskills table (generated, so runbun run sync:skills) and theresources/ai-skills.mdxcatalog row. A vendored one also touches that page's count of how many skills are vendored, andskills-lock.jsonwhen it is a stub pinned for integrity (agent-browser); one copied in full (portless) has no lock entry. - Adding, removing, or renaming a doc page touches
web/next/docs.config.ts, not the.mdxalone.
4. Verify with the repo's own drift gate
bun packages/scripts/src/docs.ts --strictThis is the fast gate (seconds): it exits non-zero on any .mdx missing from docs.config.ts, any config entry with no file, or frontmatter drifted from docs.config.ts. To fix a failure, run it without --strict to rewrite the managed frontmatter and scaffold missing pages, then commit. Before the PR, also run cd web/next && bun run build once: it reruns this check inside the full build, and additionally catches type errors and rebuilds the search index. Done when the strict gate passes AND a fresh rg for every removed or renamed path, command, and skill name finds zero stale mentions across the surfaces.
Notes
- Skills are symlinked:
.agents/skillsis canonical, so edit once. - The
/llms.txtand/llms-full.txtroutes mirror the docs and regenerate at build, so fix the doc, never the route.
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.

