agentleFS
nerymurillohndnerymurillohnd/claude-essentials/.claude/skills/sync-docs/SKILL.md

sync-docs

Skill0 starsChanged 56 days agoMITView on GitHub

Finds and fixes drift between the claude-essentials code and its documentation - pins, gate lists, script names, rule paths, links, guides, rules, ADRs, the sourcing log and CLAUDE.md Current state. Use after changing scripts, gates, tooling, workflows or rules, before a commit that touches them, or when asked to sync, update or audit the docs.

15 other projects use a version of this.

Adopted by

Most recently taken up by

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

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Mechanical: Run scripts/check_docs.py.

    line 18
  2. Very specific:

    Read documents with the Read tool: path-scoped rules in .claude/rules/ load only on Read, Write and Edit, not on cat.

    line 37
  3. Very specific:

    Never edit between BEGIN GENERATED and END GENERATED.

    line 38

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sync the documentation

The code is the source of truth; documents follow it. Mechanical drift is caught by the docs gate; meaning drift needs reading.

- [ ] 1 Mechanical   scripts/check_docs.py; fix at the source of truth
- [ ] 2 Changed      for each changed file, update the docs that describe it
- [ ] 3 Records      sourcing log, ADR, rule dates, Current state
- [ ] 4 Deep audit   /drift-audit when many docs changed or before a release
- [ ] 5 Verify       scripts/check.py
  1. Mechanical. Run scripts/check_docs.py. Each line names a file and the value it must have. Fix the copy, not the constant, unless the constant is what changed; when a pinned sentence was reworded on purpose, update PIN_SITES in scripts/check_docs.py and its test.
  2. Changed files. List them with git diff --name-only main...HEAD plus git status --short. For each, update what describes it:

    ChangedUpdate
    scripts/*.py, a gatedocs/testing.md, .claude/rules/testing/gates.md (.claude/rules/testing/drive-plugin.md for drive_plugin.py), CLAUDE.md Commands, the script's docstring
    Release flowdocs/releasing.md, .claude/skills/plugin-versioning, .claude/skills/release-plugin, .claude/rules/releasing.md
    Hooks, settings, skills, agents, workflows.claude/rules/automation.md, CLAUDE.md Where Knowledge Lives
    Repository settings, rulesets, Actions allowlist.claude/rules/ci-github.md
    A tool or template addeddocs/sourcing-log.md, THIRD_PARTY_NOTICES.md
    A decisiona new dated ADR from templates/adr/; mark the old one superseded
    A Claude Code factthe rule in .claude/rules/, with date and version
  3. Records. Rewrite CLAUDE.md "Current state" to the repository's real state (what passes, what is open, what awaits the maintainer). Run scripts/validate_adrs.py after an ADR change.
  4. Deep audit. For drift a pattern cannot catch (a guide that describes a flow the code no longer has), ask the maintainer to start the /drift-audit workflow (workflows run many agents and start only on request) and fix what it confirms.
  5. Verify. scripts/check.py must pass; report the raw summary line.

Gotchas

  • Read documents with the Read tool: path-scoped rules in .claude/rules/ load only on Read, Write and Edit, not on cat.
  • Never edit between BEGIN GENERATED and END GENERATED; run scripts/sync_readmes.py.
  • CLAUDE.md stays under 200 lines; procedures belong in skills, area facts in path-scoped rules.

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.