agentsclimarketplace

Update docs

Skill rimsky-ai/rimsky-docs/.claude/skills/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

Install
npx -y skills add rimsky-ai/rimsky-docs --skill update-docs

Assembled 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

#PhaseDetail lives in
0Acquire — resolve the latest rimsky release tag, shallow-clone read-only, export RIMSKY_REPO; open the run journalreconcile.md § Preflight
1Inventory — walk the source, diff against the committed ledger, mark the workthis file, below
2Reconcile — 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
3Verify — go build + go test + the seven lints + the executed-walkthrough artifact gatereconcile.md § gates
4Review — the reviewer → fixer → converge loop, plus cold-read acceptancereview.md
5Report — render the journal into .build-docs/report.md; leave everything uncommittedreview.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):

FieldMeaning
unitsource path or glob under ${RIMSKY_REPO} (e.g. lib/services/executors/http-node/)
statuspending → claimed:<agent> → done | excluded
doc targetwhere the corpus documents this unit — its progressive-disclosure address
reasonrequired 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:

  1. Enumerate: git -C "$RIMSKY_REPO" ls-files at the pinned ref. No judgment — completeness holds by construction.
  2. 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 one excluded row with one reason, not a thousand rows).
  3. 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.
  4. 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 done the 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-dispatching pending plus stale claimed rows. (Subagent deaths mid-wave are a real, observed failure mode.)
  • Exclusion is a decision, not a default. Every unit ends the run done or excluded-with-reason. Zero pending rows 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 pending unit 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 in reconcile.md — widen an existing surface's scope or add a surface — and records the choice as a journal decision. A unit must never be marked done by 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 flag so 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:

ClassExamplesComplete whenVerified by
Mirroredconcepts, decisions pages, the three catalogsevery source unit copied, orphans removedparity lint (byte-compare)
Projectedtemplate schema, REST, CLI, signal payloads, wire reference, go-packagesevery closed shape in the inventory has a generatorregeneration + byte-compare (reference-parity)
Synthesizedcookbook, examples, walkthroughs, troubleshooting treesthe 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:

LayerCostContract
Router (SKILL.md / llms.txt)one read, always loadedthe mental model + the map of what kinds of things are knowable and where
Catalogs (glossary, stories, decisions, …)one read eachcomplete over their domain, one line per entry, each line a full assertion
Per-slug pagesone read per thingeverything about one thing, self-contained
@source: anchorsescape hatchthe 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):

  1. Reachability. Every ledger unit's doc target is reachable from the two entry roots (rimsky/skills/rimsky/SKILL.md and docs/agents/llms.txt) through the layers. An orphan page is undiscoverable, which equals undocumented.
  2. 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).

Keep looking

Skills are one crate of 607,721. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.