/projectstore:runbook <title>from projectstore
Creates an ops runbook with step-by-step instructions, verification, and rollback steps. Writes to the project's ops folder and updates the index.
Ships in projectstore. Installing the plugin adds it to Claude Code.
You are creating an ops runbook.
Steps:
Check config; stop if missing. 1a. Read the guide for this kind before writing anything:
node "${CLAUDE_PLUGIN_ROOT}/bin/projectstore.mjs" guide runbook --project "${CLAUDE_PROJECT_DIR}"
Write the draft to its ## Must, ## Common mistakes, ## Do not write
and ## Length: the critic checks the same ## Must items. Exit 1 means
this kind has no guide; say so and go on.
Run node "${CLAUDE_PLUGIN_ROOT}/scripts/draft.mjs" runbook "$ARGUMENTS".
Preview path + first ~20 lines. When index is non-null, print index.line too — the exact row that will appear in the folder index, unless the index step reports a failure and no row lands at all.
AskUserQuestion: Yes / Edit / No. This is the only gate: Yes covers the artifact and its index row. Disclose in the question that the folder's whole managed index table is regenerated from vault state at write time, so the update may also repair a stale row for another artifact. It may also drop, for a while, a row another session added a moment before; the next regeneration of that folder's index restores it.
Pre-write race check (Layer 1): test -e "<path>". If exists, ask: Overwrite, Use new slug (-2), or Cancel.
On Yes (path free or overwrite confirmed): Write file.
Index row, if index is non-null — apply through the core, never Write/Edit, no second gate (step 4 covers it): node "${CLAUDE_PLUGIN_ROOT}/bin/projectstore.mjs" reconcile --write --only indexes=<index.folder> (runbooks live in ops/ — always take the folder from the draft JSON, never from the kind name). The row is derived state: canonical order, atomic write, manual prose preserved. The file is already on disk, so a nonzero exit is a warning naming the folder (stderr with no JSON = rejected before any write, fix the header or restore the README; error in JSON = I/O failure, suggest /projectstore:reconcile), never a failed creation.
Suggest: "Fill Purpose, Prerequisites, numbered Steps with shell snippets, and always include Verification and Rollback."
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
25 commands in this plugin
/adrCreate a new Architecture Decision Record (ADR) in the bound vault./agents`register` — write the managed routing blockManage bundled-agent integration in this project — register/unregister the routing block in CLAUDE.md/AGENTS.md, inspect state, or configure which model each of its agents runs on and at what effort./barstatus — read-onlyThe band above the prompt — this session's epic, its progress, its story and its ProjectStore agents. Switch it on or off, pin an epic for sessions with none, or ask why it is not drawing./bindBind this project to an Obsidian vault (or any markdown directory) where projectstore will record artifacts./codemapBare `codemap` — regenerate the viewRegenerate code-map.md (epic ↔ code overview) from frontmatter code_refs, or set an artifact's code_refs. This command and a story's close write refs — planner/reviewer only propose them./conceptCreate a new concept note (definition, mental model, glossary entry).npx claudepluginhub smartandpoint/projectstore --plugin projectstoreOther plugins' commands for the same job