doc-sync
Skill181 starsChanged 4 months agoApache-2.0View on GitHub
Reconcile docs with code after a change (or as a periodic audit). Use before calling any change "done", at the end of every PR, or when asked to audit doc/code drift. Enforces this repo's hard rule: code change = doc change in the same commit.
37 other projects use a version of this.
Adopted by
Most recently taken up by
- procpalee/kr-accounting-skillstheir own version, first seen Nov 29, 2026
- shurutech/goated-skills-packtheir own version, first seen Nov 29, 2026
- hams-ollo/zen-agent-skillstheir own version, first seen Nov 25, 2026
- zen-solutions-dev/zen-agent-skillstheir own version, first seen Nov 22, 2026
- procpalee/claude-skillstheir own version, first seen Nov 16, 2026
- bas1l/claude-skillstheir own version, first seen Nov 11, 2026
Used with
Projects with it also use perf-budget, api-endpoint and 9 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.
vindreshsinghSkillperf-budget
Optimizes performance by measuring first and fixing the real bottleneck. Use when something is slow, before optimizing, when setting latency or bundle targets, or reviewing changes for performance traps — not for speculative micro-tuning.
Also in 3 projects that use this
tadoEngSkillapi-endpoint
Add or change a backend API endpoint on this product, keeping Pydantic as the single contract authority and regenerating the TypeScript client. Use when asked to add an endpoint, expose data to the frontend, change a request or response shape, or wire a new backend capability into a page.
Also in 3 projects that use this
renatorozasSkillgrill
Adversarial code review. Don't let me ship until the changes pass your scrutiny.
Also in 4 projects that use this
AnasX7Skillimprove
Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on source code — never implements, fixes, or refactors anything itself. Use when asked to audit a codebase, find improvement opportunities (bugs, security, performance, test coverage, tech debt, migrations, DX), suggest features or where to take the project next (roadmap, product direction), or generate handoff plans for another agent to implement.
Also in 3 projects that use this
builtbygeoSkilldesign-review
Also in 3 projects that use this
NVIDIASkillresearch
Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.
Also in 5 projects that use this
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- JetBrains/ideavim★ 10ksame name
- taruma/SceneFlow★ 401same name
- PLC-lang/rusty★ 377same name
- chmouel/lazyworktree★ 317same name
- NVIDIA/TensorRT-Model-Connect★ 303same name
- aspenkit/aspens★ 100same name
- tykisgod/quick-question★ 12same name
- foryouself83/harness-tier★ 10same name
- Reef123/OpenVera★ 9same name
- collectifweb/claude-skills★ 4same name
27 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 repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs-site/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs-site/CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
No personal/machine refs in what this change adds (core belief #9).
“Common” is measured: kept by at least 6 in 10 of the 29 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
doc-sync — keep docs and code converged
This repo treats doc lag as an unfinished bug (see AGENTS.md § Doc-sync discipline). This skill is the executable procedure; the canonical mapping table (which change owes which doc) lives in AGENTS.md — read it there, do not copy it here.
This file is canonical at
.agents/skills/doc-sync/SKILL.md(.claude/skills/doc-syncis a symlink). The skill itself iterates: when a run shows an instruction here is wrong or misleading, fix it in the same pass, with the run's evidence in the commit message.
Mode 1 — per-change sync (run at the end of every change)
- Determine the change surface.
git diff --stat origin/main...HEAD(or the staged diff for uncommitted work). - Map each changed path against the AGENTS.md doc-sync table. Produce the list of
docs owed by this change. The high-traffic rows:
src/db/schema.ts→docs/generated/db-schema.md(hand-maintained snapshot — no generator script exists despite thegenerated/dir name; update the table row and any enum lists by hand; prod DB migrates viaprod:up→db:push:prod).- Routes / CLI subcommands / daemon protocol →
ARCHITECTURE.md§II codemap + §IV contracts. - Module purpose / boundary / invariant changed →
ARCHITECTURE.md§II–IV. - Feature completed or modified →
FEATURES.mdcheckbox (checkbox + a short note; long verification narratives belong in the PR, not the checklist). - TODO / known drift left behind →
docs/tech-debt-tracker.mdnew entry (next free ID — check the archive too so IDs are never reused). src/daemon/**shipped in the bundle → bumppackages/daemon/package.json, cut a GitHub Release, and add the version'sCHANGELOG.mdentry. Merged ≠ shipped.
- Status single-source rule. Security/authorization item states (F*/C*/IDOR-B*) live
only in
docs/authorization.md§6. Other docs (PLANS, tech-debt I44) may point there but must never mirror per-item states — mirrored lists are how C10 stayed "remaining" for weeks after it was fixed. Detect mechanically, don't trust prose:grep -rnE '\b(C1[0-2]|C[1-9]|B[1-6]|F[0-9]|IDOR)\b' --include='*.md' docs/ *.md | grep -vE 'authorization\.md|docs/exec-plans/|docs/superpowers/'(historical plan/spec records legitimately narrate the states they shipped — the rule polices live docs). A hit naming an item's state (open/fixed/remaining) is a violation; a bare pointer to authorization.md §6 is fine. - Staleness check on every doc you touched. For each edited doc: file paths it names
exist;
tech-debt I<n>/D<n>references resolve (tracker or archive); counts/enums match code (grep,wc -l— better: drop volatile numbers entirely, per ARCHITECTURE.md's header rule). - Hygiene gates.
- No personal/machine refs in what this change adds (core belief #9). Grep the
added diff lines, not whole files:
git diff origin/main -- <files> | grep '^+' | grep -E '~/\.claude|/Users/'. A personal absolute path (/Users/<name>/…) is a violation. Two known non-violations that this grep still surfaces: a generic runtime path that is product behavior (e.g.~/.claude/skillsas Claude CLI's global skills dir), and a tech-debt entry quoting a personal path as the evidence of the debt it records. Judge, don't blind-fail — but never add a new personal path outside those two shapes. - Touched
src/daemon/prompt.ts? Grep for provider-specific tool names (Read,cat,grep, vision hints) → expect zero hits (code-quality red line).
- No personal/machine refs in what this change adds (core belief #9). Grep the
added diff lines, not whole files:
- Fail loud. In the PR/summary, list: docs updated · docs checked-and-clean · drift found but deferred (with its new tech-debt entry ID).
Mode 2 — periodic full audit (on request / doc-gardening)
Cross-check the status documents against code and each other; they drift fastest:
FEATURES.md— sample every[ ]unchecked line: is the feature actually still missing? (grep the endpoint / CLI verb / component). Unchecked-but-shipped is the most common rot.docs/PLANS.md— every referenced plan file exists; Active items are still active; completed plans moved todocs/exec-plans/completed/with their status line updated (a moved plan still saying "merge pending<date>" is half-finished rot).docs/tech-debt-tracker.md— no duplicate IDs (incl. vs the archive); ⬜/🟡 entries spot-checked against code; newly-✅ entries: move the full row to the archive. The tracker keeps no stub — it holds open items only; cross-references resolve by grepping both files.docs/authorization.md§6 vs any doc that mentions security items — pointers only, no mirrored states (run the Mode 1 step-3 grep).ARCHITECTURE.md§II — new substantive modules (>50 lines) present in the codemap. Recipe:git log --since=<last audit> --name-only --diff-filter=A --pretty=format: -- 'src/*' 'web/src/*', then check each surviving non-test file's basename appears in the codemap. Named files exist;CHANGELOG.md's newest version heading (the[Unreleased]section doesn't count) matchespackages/daemon/package.json.- Size / density audit — docs must stay maps, not manuals. Line counts hide bloat
(long table rows); rank by bytes:
git ls-files '*.md' | xargs wc -c | sort -rn | head. For each fat doc, check it against its own stated form rule (FEATURES' "checkbox + short note" header, ARCHITECTURE's "write only what doesn't change often" header) — self-rule violations are the strongest trim mandate. Cut change-history narrative ("the former X was removed…", "before this fix…") and verification evidence — git log and PRs own those. Frozen plan/spec archives of shipped work are deletable (git history retains them); before deleting, grep for inbound references incl. fromsrc/. README.zh-CN.mdparity — diff section structure + bullet counts againstREADME.md; the zh mirror silently misses EN feature edits (drift is one-directional). Small deltas: translate in the same pass. A backlog: open a tech-debt entry.
Report findings with file:line evidence; fix mechanically-safe drift in the same pass, open tech-debt entries for anything needing a decision.
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.

