/decision-wiki:init [optional notes about how the repo is organised]from Decision Wiki
Set 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.
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.
Bootstrap the decision ledger and wiki for this repository, then map its modules.
Run the initializer from the repository root:
node "${CLAUDE_PLUGIN_ROOT}/src/cli.ts" -C "${CLAUDE_PROJECT_DIR}" init
It writes .claude/decision-wiki.json with one placeholder module, docs/wiki/index.md,
docs/wiki/SCHEMA.md, docs/wiki/placeholder.md, an empty decisions/ directory, and a
.gitignore entry for the state directory. It refuses to overwrite an existing config; if it
does, skip to step 2 and treat the existing modules as the starting point.
Inspect the repository layout (top-level directories, package.json workspaces, src/*
subtrees, language-specific conventions) and propose a module map. Aim for 3 to 8 modules
that a reviewer would recognise as units of ownership. For each module propose:
name: lowercase kebab-case matching ^[a-z0-9]+(?:-[a-z0-9]+)*$globs: paths relative to the repo root, for example src/core/**why: one sentence on why this is a unit worth its own decision pagegate: true only where a session should be blocked from stopping until it records a
decision (core logic, public APIs, schemas). Default false.Present the proposal as a table and any arguments the user passed ($ARGUMENTS) as extra
hints. Ask for confirmation before writing.
On confirmation, edit .claude/decision-wiki.json: replace the placeholder entry with the
agreed modules. Then remove the placeholder page and regenerate:
trash docs/wiki/placeholder.md 2>/dev/null || rm docs/wiki/placeholder.md
node "${CLAUDE_PLUGIN_ROOT}/src/cli.ts" -C "${CLAUDE_PROJECT_DIR}" generate
node "${CLAUDE_PLUGIN_ROOT}/src/cli.ts" -C "${CLAUDE_PROJECT_DIR}" lint
Lint must report zero errors. A gated-empty warning is expected until the first decision
is recorded for a gated module.
Tell the user what was written and that the first Edit/Write in each module will be denied once with the module page injected, then allowed on retry.
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./decideRecord 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.npx claudepluginhub kastalien-research/decision-wiki --plugin decision-wiki