From superpowers
Creates executable implementation plans from design folders, decomposing specs into granular tasks via phased loop with user validation and git commit.
How this command is triggered — by the user, by Claude, or both
Slash command
/superpowers:SKILL design-folder-pathwriting-plans/Files this command reads when invoked
This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Writing Plans Create executable implementation plans that reduce ambiguity for whoever executes them using Superpower Loop for continuous iteration. ## CRITICAL: First Action - Start Superpower Loop NOW **Resolve the design path and start the loop immediately — do NOT read design files, explore the codebase, or do anything else first.** 1. Resolve the design path: - If `$ARGUMENTS` provides a path (e.g., `docs/plans/YYYY-MM-DD-topic-design/`), use it - Otherwise, search `docs/plans/` for the most recent `*-design/` folder matching `YYYY-MM-DD-*-design/` - If found without exp...
Create executable implementation plans that reduce ambiguity for whoever executes them using Superpower Loop for continuous iteration.
Resolve the design path and start the loop immediately — do NOT read design files, explore the codebase, or do anything else first.
$ARGUMENTS provides a path (e.g., docs/plans/YYYY-MM-DD-topic-design/), use itdocs/plans/ for the most recent *-design/ folder matching YYYY-MM-DD-*-design/"${CLAUDE_PLUGIN_ROOT}/scripts/setup-superpower-loop.sh" "Write an implementation plan for: <resolved-design-path>. Continue progressing through the superpowers:writing-plans skill phases: Phase 1 (Plan Structure) → Phase 2 (Task Decomposition) → Phase 3 (Validation) → Phase 4 (Plan Reflection) → Phase 5 (Git Commit) → Phase 6 (Transition)." --completion-promise "PLAN_COMPLETE" --max-iterations 50
The loop enables self-referential iteration throughout the planning process.
This skill uses Superpower Loop to enable self-referential iteration throughout the planning process.
CRITICAL: Throughout the process, you MUST output <promise>PLAN_COMPLETE</promise> only when:
Do NOT output the promise until ALL conditions are genuinely TRUE.
ABSOLUTE LAST OUTPUT RULE: The promise tag MUST be the very last text you output. Output any transition messages or instructions to the user BEFORE the promise tag. Nothing may follow <promise>PLAN_COMPLETE</promise>.
(The Superpower Loop and design path were resolved in the first action above — do NOT start the loop again)
_index.md and bdd-specs.md.bdd-specs.md completely. This is the source of truth for your tasks.The loop will continue through all phases until <promise>PLAN_COMPLETE</promise> is output.
Core Concept: Explicit over implicit, granular tasks, verification-driven, context independence. PROHIBITED: Do not generate implementation bodies — no function logic, no algorithm code. ALLOWED: Interface signatures and type definitions that define the contract.
async function improve(params: ImproveParams): Promise<Result>)..md file.Define goal, architecture, constraints, and context.
bdd-specs.md from the design folder (generated by superpowers:brainstorming)../references/plan-structure-template.md to outline the plan.## Context section in _index.md:
Break into small tasks mapped to specific BDD scenarios.
Reference Scenarios: CRITICAL: Every task must explicitly include the full BDD Scenario content in the task file using Gherkin syntax. For example:
## BDD Scenario
Scenario: [concise scenario title]
Given [context or precondition]
When [action or event occurs]
Then [expected outcome]
And [additional conditions or outcomes]
The scenario content should be self-contained in the task file, not just a reference to bdd-specs.md. This allows the executor to see the complete scenario without switching files.
Define Verification: CRITICAL: Verification steps must run the BDD specs (e.g., npm test tests/login.spec.ts).
Enforce Ordering: For each feature NNN, the test task (task-NNN-<feature>-test) must precede its paired impl task (task-NNN-<feature>-impl) via depends-on.
Declare Dependencies: MANDATORY: Each task file must include a **depends-on** field listing only true technical prerequisites — tasks whose output is required before this task can start. Rules:
depends-on only when there is a real technical reason (e.g., "implement auth middleware" must precede "implement protected route test")Create Task Files: MANDATORY: Create one .md file per task. Filename pattern: task-<NNN>-<feature>-<type>.md.
task-001-setup.md, task-002-feature-test.md, task-002-feature-impl.md<NNN>: Sequential number (001, 002, ...)<feature>: Feature identifier (e.g., auth-handler, user-profile)<type>: Type (test, impl, config, refactor)002-feature-test and 002-feature-implDescribe What, Not How: PROHIBITED: Do not generate implementation bodies. Describe what to implement (e.g., "Create a function that validates user credentials"). ALLOWED: Include interface signatures to define contracts (e.g., def validate_credentials(username: str, password: str) -> bool: ...), but never the body logic.
Verify completeness, confirm with user, and save.
docs/plans/YYYY-MM-DD-<topic>-plan/ folder.
_index.md MUST include "Execution Plan" section with inline YAML metadata (see template in ./references/plan-structure-template.md)_index.md MUST include "Task File References" section with links to full task files for detailed BDD scenarios_index.md MUST include "BDD Coverage" section confirming all scenarios are covered_index.md MUST include "Dependency Chain" section with visual dependency graph (will be populated in Phase 4)tasks:
- id: "001"
subject: "Setup project structure"
slug: "setup-project-structure"
type: "setup"
depends-on: []
- id: "002"
subject: "Whale Discovery Test"
slug: "whale-discovery-test"
type: "test"
depends-on: ["001"]
- id: "003"
subject: "Whale Discovery Impl"
slug: "whale-discovery-impl"
type: "impl"
depends-on: ["002"]
- [Task 002: Whale Discovery Test](./task-002-whale-discovery-test.md)Before committing, verify plan quality. Scale reflection based on plan size.
Small plans (up to 6 tasks): Main agent performs a single review pass — check BDD coverage, dependency graph, and task completeness sequentially. No sub-agents needed.
Medium plans (7-15 tasks, 2 sub-agents):
Sub-agent 1: BDD Coverage & Completeness Review
Sub-agent 2: Dependency Graph Review
Large plans (16+ tasks, 3+ sub-agents):
Sub-agent 1: BDD Coverage Review
Sub-agent 2: Dependency Graph Review
Sub-agent 3: Task Completeness Review
Additional sub-agents (launch as needed): Red-Green Pairing Review, File Conflict Review.
Integrate and Update:
_index.md in "Dependency Chain" sectionOutput: Updated plan with issues resolved, dependency graph included in _index.md, and user approval received.
See ./references/plan-reflection.md for sub-agent prompts and integration workflow.
Commit the plan folder using git-agent (with git fallback).
Actions:
git add docs/plans/YYYY-MM-DD-<topic>-plan/git-agent commit --no-stage --intent "add implementation plan for <topic>" --co-author "Claude <Model> <Version> <[email protected]>"--free flaggit commit -m "docs: add implementation plan for <topic> ..." with conventional formatSee ../../skills/references/git-commit.md for detailed patterns.
Prompt the user to use superpowers:executing-plans, then output the promise as the absolute last line.
Output in this exact order:
/superpowers:executing-plans."<promise>PLAN_COMPLETE</promise> — nothing after thisPROHIBITED: Do NOT offer to start implementation directly. Do NOT output any text after the promise tag.
Plan created with clear goal/constraints, decomposed tasks with file lists and verification, BDD steps, commit boundaries, no vague tasks, reflection completed, user approval.
./references/plan-structure-template.md - Template for plan structure./references/task-granularity-and-verification.md - Guide for task breakdown and verification./references/plan-reflection.md - Sub-agent prompts for plan reflection../../skills/references/git-commit.md - Git commit patterns and requirements../../skills/references/loop-patterns.md - Completion promise design, prompt patterns, and safety netsnpx claudepluginhub fradser/dotclaude --plugin superpowers/create_planCreates detailed implementation plans interactively by researching tickets, task descriptions, and codebase using specialized analysis agents.
/create_planCreates detailed implementation plans interactively by analyzing tickets, reading codebase files fully, gathering historical context, and spawning research agents.
/makeCreates structured implementation plan in docs/plans/yyyymmdd-<task-name>.md for described feature or task via interactive context gathering and focused questions.
/implementation-from-deep-researchCreates detailed implementation plans from tickets or files via deep codebase research, full file reads, and interactive analysis.
/planProduces a step-by-step technical implementation plan from an approved feature spec, identifying files, functions, and data flows without writing code.
/planOrchestrates full design planning — requirements discovery, gap analysis, and implementation planning — producing a machine-readable artifact for /implement.