From ai-dp
Use when an active ai-dp run is at the decisions step. Autonomously resolves every hard design decision before planning and writes a decisions.md listing each decision, the options considered, and which one was selected (with rationale).
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-dp:decisionsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The **decisions** step. This pipeline is autonomous — it never asks the user. Instead of deferring hard calls to a person, you make them yourself **and write them down** so they are auditable and overridable. The output, `decisions.md`, is the contract the plan is built on.
The decisions step. This pipeline is autonomous — it never asks the user. Instead of deferring hard calls to a person, you make them yourself and write them down so they are auditable and overridable. The output, decisions.md, is the contract the plan is built on.
RUN_DIR — run directory.<RUN_DIR>/context.md — investigation output. Read in full, especially Risks & unknowns.<RUN_DIR>/state.json — for args (the original feature request).Session id: if a AIDP_SESSION_ID=<id> line is present in your conversation context, substitute it for every <AIDP_SESSION_ID> placeholder below. If absent, drop the --session "<AIDP_SESSION_ID>" argument; advance.ts falls back to process.env.AIDP_SESSION_ID.
bun ${AIDP_PLUGIN_ROOT}/scripts/cli/advance.ts set <RUN_DIR> steps.decisions.status running --session "<AIDP_SESSION_ID>"
Read context.md and the feature request. Surface every decision where a competent engineer could reasonably choose differently and the choice materially shapes the implementation. Typical categories:
Skip the obvious and trivial. Do not pad the list with decisions that have only one sensible answer.
For every decision: lay out the realistic options with a one-line pro/con each, then pick one and give a short rationale. Bias toward the thorough, maintainable choice (reuse existing code, no shortcuts, no divergent shapes) — the same discipline the plan step will apply. When a decision depends on a fact you can check in the repo, check it rather than guessing.
<RUN_DIR>/decisions.md# Decisions: <feature name>
> Autonomous run — every decision below was made by the agent, not a human. Each lists the options considered and marks the one selected. To override, edit the **SELECTED** marker (and rationale) here, then re-run from the plan step.
## 1. <the decision, as a question>
- Option A — <description> — <pro / con>
- **Option B — SELECTED** — <description> — <pro / con>
- Option C — <description> — <pro / con>
**Rationale:** <one or two sentences: why B over the others.>
## 2. <next decision>
...
Rules:
SELECTED.## None — the implementation path is unambiguous followed by one sentence saying why. Still write the file.context.md so the two documents stay consistent.bun ${AIDP_PLUGIN_ROOT}/scripts/cli/advance.ts set <RUN_DIR> steps.decisions.artifact "decisions.md" --session "<AIDP_SESSION_ID>"
bun ${AIDP_PLUGIN_ROOT}/scripts/cli/advance.ts advance <RUN_DIR> decisions --session "<AIDP_SESSION_ID>"
After advance, state.steps.plan.status === "pending". Print a one-liner referencing decisions.md as a markdown link:
Decisions recorded — see [decisions.md](${AIDP_STATE_DIR}/ai-feature-pipeline/<feature>/decisions.md). Drafting the plan now.
Your very next action MUST be a Skill-tool invocation in this same turn:
Skill(skill_name = "ai-dp:plan")
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub kostia-official/claude-ai-dev-pipeline-plugin --plugin ai-dp