/decision-wiki:decide [short statement of the decision]from Decision Wiki
Record a decision in the append-only ledger and regenerate the wiki. Use whenever a non-obvious choice is made while editing code (a design choice, a rejected alternative, a reversal of an earlier decision), and always before stopping a session that touched a gated module.
Ships in Decision Wiki. 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.
Append one decision record and regenerate the module pages that cite it.
Gather these before running the command. Use $ARGUMENTS as the statement if given. Do not
invent content; if a field is genuinely unknown, leave it empty rather than guessing.
| Field | Flag | Required | Guidance |
|---|---|---|---|
| Statement | --statement | yes | One sentence, present tense, the choice itself |
| Rationale | --rationale | yes | Why this and not something else; the constraints that decided it |
| Alternatives | --alternatives | no | What else was on the table and why each lost |
| Evidence | --evidence | no | Links, measurements, test names, doc URLs |
| Reversal conditions | --reversal | no | What would have to be true to revisit this |
| Modules | --module (repeatable) | yes, unless --session is given | Module names from .claude/decision-wiki.json, or "*" for global. With --session and no --module, the modules of the files this session touched are used; pass --module explicitly when the decision is narrower or wider than that |
| Supersedes | --supersedes D-NNNN | no | An earlier record this one replaces; must exist and not already be superseded |
| Provisional | --provisional | no | Mark when the decision is expected to be revisited soon |
Before writing, search the ledger for an existing record on the same question:
rg -il "<key phrase>" decisions/
If one exists and this decision changes it, pass --supersedes with its id instead of
recording a contradictory sibling.
Long text is easier to pass from files. Write each long field to a temp file and use @path:
node "${CLAUDE_PLUGIN_ROOT}/src/cli.ts" -C "${CLAUDE_PROJECT_DIR}" decide \
--statement "..." \
--rationale @/tmp/rationale.md \
--alternatives @/tmp/alternatives.md \
--evidence "..." \
--reversal "..." \
--module core \
--session "${CLAUDE_SESSION_ID}"
--session stamps the record with the files this session touched (from the session state
file the PreToolUse hook maintains), infers --module from them when none is given, and lets
the Stop hook see the record. The Stop hook is per module: a record must list every gated
module whose files changed (or "*") to clear the block for it. The command prints the new
id (for example D-0007) and regenerates the wiki.
Read the regenerated page for the primary module and show the new entry to the user:
sed -n '1,80p' docs/wiki/<module>.md
Then run node "${CLAUDE_PLUGIN_ROOT}/src/cli.ts" -C "${CLAUDE_PROJECT_DIR}" lint and fix anything it reports. If the
module's curated preamble now reads as stale, offer /decision-wiki:curate <module>.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/curateRewrite the curated preamble of a module's wiki page so its governing decisions read as one coherent story, with [[module]] links and [D-NNNN] citations, then lint. Use after several decisions have accumulated on a module or when a page still shows the placeholder preamble./initSet up decision-wiki in the current repository. Runs the CLI init, then inspects the repo layout and proposes real module globs to replace the placeholder module. Use when a repo has no .claude/decision-wiki.json yet.npx claudepluginhub kastalien-research/decision-wiki --plugin decision-wiki