/refs:tightenfrom refs
Consolidate a project's canon and refs — make every truth one checkable predicate and every never a real pull with a real alternative; merge duplicates, move misfiled entries, retire dead ones, resolve answered open questions, then re-sync refs. Use on "tighten", "/refs:tighten", "consolidate the refs", "tighten the canon", "clean up truths and nevers", or after a harvest. Do NOT use to build canon from scratch (use harvest) or to add one ref (use `refs KEY VALUE`).
Ships in refs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Harvest gets the canon written. Tighten makes it worth reading: fewer entries, each one sharp enough that an agent can act on it and a check can catch it breaking. Truths and nevers get the hardest look, because they are the entries agents cite while changing code.
Formats: ../harvest/formats.md.
refs, and the six files in docs/canon/: REQUIREMENTS, TRUTHS, NEVERS, DECISIONS, INQUIRY, OPEN_QUESTIONS. Skip a file that does not exist; tighten never creates one.refs ids prints fixed or fluid.Each brief carries formats.md, the file, the rules below for its kind, and the IDs of the other five files so it can flag overlaps. Each returns proposals, one per line:
{"op":"reword|merge|split|move|retire|resolve|fix-source","ids":["TRU-03"],"to":"TRU|NEV|REQ|DEC|INQ|OQ","new":"<full new block, or null>","why":"<one line>","evidence":"<path:line, test name, commit>"}
Truths: the tightest file.
Applies to until it does, or retire it.Check: names a test that exists (grep for it), or a command with its expected output. Check: review only when no check can exist; say why.Nevers:
Seen: points at a real commit, PR, revert or doc line. No evidence → retire it as a generic warning.Temptation: is the concrete pull ("a map is two lines shorter"), not "it is easier".Instead: is a shape to take, not "don't".Requirements: product level, per harvest step 3. Caps → truths, gates → decisions, plumbing → retire.
Decisions: append-only. Check only that Anchors resolve and that Supersedes / Retired: superseded by pairs match. Never reword a decision's substance.
Inquiry: each entry is a question building this answers, not a goal or a feature. Answered when names evidence someone could gather. An answered inquiry gets Status: answered <date> by <IDs>.
Open questions: an OQ whose answer now exists (a DEC, a TRU, an answered cactus row) → resolve. An OQ nobody has touched across several sessions → list it in step 4 as stale.
Every file: Source:, Seen:, Check: and Anchors paths exist and their line still says what the entry claims (fix-source when the line moved).
Applies to, a real Check:.Retired: <date> <why>, see <new ID>) and adds a new entry with the next free ID in its file.Supersedes DEC-NN.refs ids says fluid), after the edit rule:
zg query --rg -n 'TRU-03') — docs, canon cross-references, CLAUDE.md. Commit messages and cactus records stay as they are.Post the batch to cactus before writing, one ask per file with changes, --multi, one -c per proposal (op ID: one line), -f the canon file, --refs the IDs it touches, --recommend the ones you would bet on. List stale open questions as a separate ask: keep, retire, or post to cactus as its own question. Without cactus, show the batch in chat.
Write only what was approved.
refs sync --github --cactus
Retired and resolved entries lose their refs; new IDs get theirs. Report the counts per kind before and after.
Leave committing to the human or the session's commit flow.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub eighteyes/refs --plugin refs