maintain-loop

Installation
SKILL.md

maintain-loop

Runs the cycle of a loop defined by make-loop: propose → review → learn → apply. The review exists to spend the user's time only on what the agent cannot know; every correction must make the next cycle's proposals better. The same correction showing up again in a later cycle means learning failed.

Personal state (zero-trace contract)

Same contract as make-loop — keep the two in sync:

  • Root: ${XDG_DATA_HOME:-$HOME/.local/share}/identity16-skills/loops/<topic>/ (<topic>: short kebab-case slug, e.g. ledger, mufi-code-review).
  • loop.md — the definition, owned by make-loop (sections listed there).
  • rules.json — {version, rules:[{id, group, kind, text, basis, state, since, origin, record:{cited, approved, corrected, streak}}]}
    • kind: lookup (deterministic: a mapping or table) | guideline (needs judgment).
    • state: tentative → confirmed → automated (items citing only automated rules may skip review).
    • basis: the items or statements the rule generalizes. origin: the cycle/item id or stated.
  • reference.json — closed vocabularies proposals must draw from (categories, accounts, labels). Optional; refreshed each cycle.
  • cycles/<YYYY-MM-DD>.json — one per cycle (written by maintain-loop): {cursor:{from,to}, source, caveats, status, items:[{id, key, src, proposal, cites, conf, why, review:{status, final, changed, note}}], applied:{at, counts, deviations}, metrics:{items, review_needed, corrected, repeat_corrections}}
    • conf: certain | inferred | ask. review.status: approved | corrected | skipped.
    • status: drafted → reviewing → reviewed → applied → closed.
Installs
1
First Seen
Oct 30, 2026