agentleFS
nrjdalalnrjdalal/zerostarter/.agents/skills/sync-docs/SKILL.md

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

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.
  • ShopifySkill

    prepare-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

  • DockerSkill

    review-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

  • SentrySkill

    commit

    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

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

  • GoogleSkill

    code-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

The file

Files
SKILL.md

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:

SurfaceDocumentsDrifts when
web/next/content/docs/**.mdxconcepts and how-to (getting-started, deployment, manage, resources)a feature, convention, API, command, script, or env var it describes changes
web/next/docs.config.tsthe docs nav and page registry, the single source the sidebar, meta.json, and MDX frontmatter all derive froma doc page is added, removed, renamed, or re-slugged
README.mdtop-level story: stack, structure, quick start, scripts, deploymentthe stack, setup, scripts, or pitch changes
.agents/skills/<name>/SKILL.mdone 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 tooa rule changes, or the skill set changes
packages/config/src/site.tsthe brand, the feature flags, and the hand-written preamble served at the top of /llms-full.txtthe 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.ts

3. 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.md skills table (generated, so run bun run sync:skills) and the resources/ai-skills.mdx catalog row. A vendored one also touches that page's count of how many skills are vendored, and skills-lock.json when 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 .mdx alone.

4. Verify with the repo's own drift gate

bun packages/scripts/src/docs.ts --strict

This 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/skills is canonical, so edit once.
  • The /llms.txt and /llms-full.txt routes mirror the docs and regenerate at build, so fix the doc, never the route.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.