From agent-skills
Capture a locked decision as a numbered dNN-<name>.md file. Use when the captain has answered a load-bearing question that should outlive the conversation, or when lock-decisions / grill-me hands off a captain-locked answer for persistence. Lightweight — no review cycle.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-skills:create-decisionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Lightweight decision capture. Writes one `dNN-<name>.md` to a project's
Lightweight decision capture. Writes one dNN-<name>.md to a project's
decisions/ directory (or top-level docs/decisions/ with --global),
using the schema from the project-organization spike. Used by
/lock-decisions, by /grill-me after the captain locks an answer, or
invoked directly.
/lock-decisions routes a finding to lock with the captain's chosen answer/grill-me exits with a captain-locked branch/create-note/edit-doc (and remember
archived decisions are append-only; create a superseding decision instead)/grill-me or /lock-decisions first;
call create-decision only after the captain has actually locked an answeroauth-refresh-strategy## Decision<project-id> (default: the project context already loaded), or
--global for top-level docs/decisions/[d05]) within
the same scope that this decision replaces--global → scope is top-level docs/decisions/docs/x000-yolo-project/)
→ scope is <project>/decisions//launch-project — same fallback discipline as /create-noteDelegate numbering to the CLI (per-scope sequential — project-scope numbers
do not collide with global-scope numbers; the same dNN may exist in both):
${CLAUDE_PLUGIN_ROOT}/scripts/yolo new decision <project|--global> <name>
The CLI emits a JSON envelope on stdout. Parse filePath to learn where
the decision landed:
result=$(${CLAUDE_PLUGIN_ROOT}/scripts/yolo new decision "$scope" "$name")
file_path=$(printf '%s' "$result" | jq -r '.filePath')
Example resolved paths: docs/x000-yolo-project/decisions/d14-<name>.md
(project scope) or docs/decisions/d04-<name>.md (--global). Never
pick the number manually. On non-zero exit, surface the JSON message
field (on stderr) verbatim — the most common failure is collision
when a decision with the same <name> already exists in that scope.
Edit the scaffolded file to match the canonical decision schema:
---
status: active
blocks: []
supersedes: []
---
## Question
<one or two sentences naming what is being decided>
## Context
<why this needs deciding; cite spike chapters / prior decisions by relative path>
## Options
- **A. <name>.** <description, trade-offs>
- **B. ...**
## Recommendation
<pre-decision recommendation, if any — may be the captain's own>
## Decision
<the captain's answer body, verbatim or lightly cleaned>
Frontmatter rules:
status is active for every newly-written decision (never archived at birth)blocks lists other decisions in the same scope that are blocked by this one (rare)supersedes lists prior dNN ids in the same scope (e.g. [d05]); empty array if noneIf ## Options / ## Recommendation are not meaningful (e.g., a single-option
decision the captain dictated), keep the heading and write a one-line note
((single option — captain dictated)). Do not drop the section.
If supersedes: [dNN, ...] is set, in the same logical operation:
<scope>/decisions/dNN-*.md — glob by id prefix)status: active → status: archivedarchived, leave it; do not error,
but mention it in the captain briefA new decision and its prior(s)' status flip land together. If you cannot edit a prior (file missing, scope mismatch), stop and surface the problem; do not write a half-superseded state.
Report: scope, new path, prior decisions archived (if any), and the one-line question. Keep it terse.
dNNarchive-project promotes
them to top-levelactive — write a new
superseding decision insteadnpx claudepluginhub mikestopcontinues/agent-skills --plugin agent-skillsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.