Update docs
ONLY activated by the explicit /update-docs slash command. Never auto-triggered by conversation content. The single documentation skill: inventories the pinned rimsky source, reconciles every artifact against it (documenting anything not yet covered), verifies, converges, and leaves the result uncommitted for review.From its SKILL.md
npx -y skills add rimsky-ai/rimsky-docs --skill update-docsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
11.0 KB, as published. Nobody here has run it
/update-docs — document everything in the project, as it is now
Contract: after a run, the published corpus completely and accurately describes whatever is in the pinned rimsky source — structured as progressive disclosure so a consuming agent doesn't waste context but can find anything. Not "bring the docs to the latest release": the release pin is a recorded fact stamped at the end of a run, never a routing condition consulted to decide whether work is needed. "Nothing changed" is a finding the run produces, not an assumption it starts from.
This is the only documentation skill. The former /build-docs (reconcile) and
/refine-docs (review loop) are its internal phases now — their machinery
lives in reconcile.md and review.md in this
directory, loaded at the phase that needs them. /release ships the result
and is a separate act; this skill never commits.
/update-docs → (review the diff) → /release
Phases
| # | Phase | Detail lives in |
|---|---|---|
| 0 | Acquire — resolve the latest rimsky release tag, shallow-clone read-only, export RIMSKY_REPO; open the run journal | reconcile.md § Preflight |
| 1 | Inventory — walk the source, diff against the committed ledger, mark the work | this file, below |
| 2 | Reconcile — per-unit and per-surface subagents + mechanical generators bring every artifact current; anything uncovered gets documented; the skill-packaging surface stamps reconciledAgainst before mechanical generation (the generators' version banners read it) | reconcile.md |
| 3 | Verify — go build + go test + the seven lints + the executed-walkthrough artifact gate | reconcile.md § gates |
| 4 | Review — the reviewer → fixer → converge loop, plus cold-read acceptance | review.md |
| 5 | Report — render the journal into .build-docs/report.md; leave everything uncommitted | review.md § Report |
Phase 0 also handles the RIMSKY_REPO local-override and pin-to-tag rules —
they are unchanged from the old preflight and stated once in reconcile.md.
Phase 1 — Inventory: the coverage ledger
The failure this phase exists to kill: coverage defined by our list instead of by the source. A per-surface checklist can only find drift in things already on the checklist — it is structurally incapable of finding the thing nobody listed (ten registered env vars were undocumented for multiple releases because no surface owned them). The escape is to enumerate the one complete list the project maintains for free: its file tree.
The ledger is a committed file at .build-docs/ledger.md (a gitignore
exception — run scratch stays ignored; the ledger is maintenance state and
the next run's baseline). One row per unit, where a unit is a clustered
group of source files (a Go package, a service directory, a proto dir, a
tools subtree):
| Field | Meaning |
|---|---|
| unit | source path or glob under ${RIMSKY_REPO} (e.g. lib/services/executors/http-node/) |
| status | pending → claimed:<agent> → done | excluded |
| doc target | where the corpus documents this unit — its progressive-disclosure address |
| reason | required when excluded ("test scaffolding, not consumer-facing" is a recorded decision, not an omission) |
The ledger also carries a header naming the source ref it was last verified against, and the synthesis matrix (below).
Walk mechanics:
- Enumerate:
git -C "$RIMSKY_REPO" ls-filesat the pinned ref. No judgment — completeness holds by construction. - Cluster into units. Clustering is judgment, but checkable judgment:
the invariant is mechanical — every file in exactly one unit, union of
units equals the file list. Coarse glob rules keep it affordable
(
lib/**/testdata/**is oneexcludedrow with one reason, not a thousand rows). - Diff against the baseline ledger:
- unit new in source →
pending(new coverage work); - unit gone from source → flag its doc target for removal;
- unit changed (per
git diff <last-verified-ref>..<ref>) →pending; - unit unchanged and
done→ skip; - unit unchanged and
excluded→ exclusion stands, not re-litigated.
- unit new in source →
- Bootstrap: if no ledger exists, every unit starts
pending— the first run pays full price deliberately; that is the run that retires the historical coverage debt.
Ledger discipline:
- Write-through, not write-back. An agent marks a unit
donethe moment that unit's docs are written — never batched at the end of its run. A dead agent then costs only its in-flight unit, and the orchestrator resumes by re-dispatchingpendingplus staleclaimedrows. (Subagent deaths mid-wave are a real, observed failure mode.) - Exclusion is a decision, not a default. Every unit ends the run
doneorexcluded-with-reason. Zeropendingrows is the completion criterion — a one-line check, which makes "did we cover everything?" a gate instead of a hope. - The per-unit question is open-ended: "what does an agent consuming this project need to know about what's in here?" — never "is this on a list of documentable kinds?" Judgment lives in deciding what a unit means, not in deciding whether to look at it.
- Uncovered units get an owner before they get docs. A
pendingunit whose content fits an existing surface's domain is routed to that surface (its doc target names the surface's area). When no surface fits, the orchestrator extends the ownership table inreconcile.md— widen an existing surface's scope or add a surface — and records the choice as a journaldecision. A unit must never be markeddoneby prose that no surface owns, because unowned pages have no reconcile path next run. - When a unit's answer is "this is a closed shape" (a registry, a struct
set, a route table), the finding is "this wants a generator" — record
it as a journal
flagso the generator list grows from evidence. Kinds are outputs of the walk, never inputs.
The three artifact classes
Every published artifact belongs to one class; each class has its own completeness oracle and its own verification:
| Class | Examples | Complete when | Verified by |
|---|---|---|---|
| Mirrored | concepts, decisions pages, the three catalogs | every source unit copied, orphans removed | parity lint (byte-compare) |
| Projected | template schema, REST, CLI, signal payloads, wire reference, go-packages | every closed shape in the inventory has a generator | regeneration + byte-compare (reference-parity) |
| Synthesized | cookbook, examples, walkthroughs, troubleshooting trees | the canonical set spans the task space (see the synthesis matrix) | execution — the artifact gate |
Mirrored and projected completeness fall straight out of the ledger — their domains are files and closed shapes the walk enumerates. Synthesized artifacts answer consumer tasks, which no source file demands; their domain is derived, and tracked explicitly:
The synthesis matrix (a section of the ledger): one row per upstream
story (rimsky's user-visible-capability catalog — the natural spine of
the task space), mapping it to the synthesized artifact(s) that exercise it,
or to a recorded exclusion with reason. A new story at a new release lands as
a pending matrix row; the run cannot close with it unanswered. Merges and
drops in the canonical recipe set are journal decision entries, per the
cookbook surface's coverage → parsimony method (reconcile.md).
The story catalog is upstream's self-report, and the matrix must not inherit
it as an unquestioned oracle (the same trap as trusting any registry): the
inventory walk is the backstop. A unit exposing a user-visible capability
that no story names is a journal flag — an upstream design-log gap,
candidate for filing — and the capability still gets its synthesized
coverage; the matrix row cites the unit instead of a story slug until
upstream catches up.
Synthesized pages are executable claims: templates must register, examples must run, walkthroughs must produce their stated outputs against the published images (the artifact gate). Prose that cannot be exercised carries a status note saying so — a recorded fact, not a silent hope.
The progressive-disclosure contract
The corpus is structured so an agent can decide whether something exists at the cheapest layer and pays for detail only in proportion to need:
| Layer | Cost | Contract |
|---|---|---|
Router (SKILL.md / llms.txt) | one read, always loaded | the mental model + the map of what kinds of things are knowable and where |
| Catalogs (glossary, stories, decisions, …) | one read each | complete over their domain, one line per entry, each line a full assertion |
| Per-slug pages | one read per thing | everything about one thing, self-contained |
@source: anchors | escape hatch | the pointer to ground truth |
The load-bearing word is complete: a complete catalog makes absence meaningful (not-listed ⇒ does-not-exist), which is what licenses an agent to stop early. An incomplete layer poisons the scheme — cheap answers stop being trustworthy and the agent rationally re-reads everything.
Two rules the review phase checks (see review.md):
- Reachability. Every ledger unit's doc target is reachable from the
two entry roots (
rimsky/skills/rimsky/SKILL.mdanddocs/agents/llms.txt) through the layers. An orphan page is undiscoverable, which equals undocumented. - One canonical depth per fact, referenced elsewhere rather than restated — what keeps an update single-site. ("Do not restate wire shapes; link the reference" is this law's oldest instance.)
Layer size is a testable property: catalogs are cheap because they are a single read (~80–250 lines today). A catalog outgrowing its budget is split by domain, never truncated — truncation breaks the completeness contract.
Subagent model
Every subagent this skill dispatches — inventory, reconcile, reviewer,
fixer, cold-read — carries an explicit model: "opus" on the Agent
call. Never omit model (omission inherits the session model, which may
be Fable). Rationale and history: reconcile.md § Subagent model.
After a run
Report (phase 5 renders it): the ref reconciled against; the ledger delta
(units added / changed / removed / newly excluded); per-surface changes;
build/test/lint/artifact-gate results; the attention table (judgment calls ·
source-side conflicts); upstream-issue candidates, user decides filing.
The changes are uncommitted — review, then /release (which bumps the
plugin's own version, commits, tags, pushes; it never touches
reconciledAgainst — this skill stamps that in phase 2).