From spec-superflow
Creates or refines spec-superflow planning artifacts (proposal.md, specs/, design.md, tasks.md) after DP-0 is confirmed. Validates each artifact before proceeding to the next.
How this skill is triggered — by the user, by Claude, or both
Slash command
/spec-superflow:spec-writerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create or refine planning artifacts when the change has moved beyond exploration.
Create or refine planning artifacts when the change has moved beyond exploration.
Read .spec-superflow.yaml (especially dp_0_decisions, dp_0_confirmed) and any existing planning artifacts. If dp_0_confirmed is not true, stop and route back to workflow-start for DP-0.
Run: bash "${CLAUDE_PLUGIN_ROOT}/scripts/get-config" artifacts.order — generate in configured order (default: proposal → specs → design → tasks). Run with artifacts.skip — skip any listed artifacts.
proposal.md: why and scopespecs/: required behavior (testable)design.md: architecture decisions and trade-offs (not line-by-line)tasks.md: dependency-aware implementation stepsHonor DP-0: Read dp_0_decisions, respect confirmed constraints, don't silently expand scope. Pause on unconfirmed decisions.
Must state: problem, what changes, capabilities affected, impact areas.
Every requirement must be testable. Use SHALL or MUST. Every requirement must have at least one #### Scenario: with WHEN/THEN. Group under ADDED/MODIFIED/REMOVED Requirements headers.
Must have: Context (current state, constraints, stakeholders), Goals, Decisions (Choice + Rationale + Alternatives considered), Risks And Trade-Offs.
Must include:
Generate one at a time. Confirm each before next. This prevents scope drift — if proposal has errors, downstream artifacts are wrong.
proposal.md → present summary → wait for confirmspecs/ → present requirement list → wait for confirmdesign.md → present key decisions → wait for confirmtasks.md → present batch breakdown → wait for confirm## Why > 50 chars, ## What Changes, ## Scope (In/Out), ## Impact, ## Capabilities, no TBD/TODO#### Scenario: with WHEN/THEN per requirement, grouped under delta headers, no contradictions## Context, ## Goals, ## Decisions (≥1, with Choice+Rationale+Alternatives), ## Risks And Trade-Offs## File Structure, ## Interfaces, numbered tasks, exact file paths, TDD phases, ≤5 min steps, no placeholders, every requirement mapped, explicit dependenciesIf any artifact fails validation, fix before handing off to contract-builder.
Present summary of all 4 artifacts (2-3 sentences each). Ask user for adjustments. After approval:
node "${CLAUDE_PLUGIN_ROOT}/scripts/spec-superflow.mjs" state set <change-dir> dp_2_result "approved: <summary>"
node "${CLAUDE_PLUGIN_ROOT}/scripts/spec-superflow.mjs" state set <change-dir> dp_2_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
Do not start implementation after writing planning artifacts. Once stable, validated, and DP-2 is recorded, hand off to contract-builder.
npx claudepluginhub magebyte-zero/spec-superflow --plugin spec-superflowWrites OpenSpec design.md and tasks.md artifacts for spec-driven features. Useful when producing technical designs or task checklists from a proposal.
Enforces a spec-first development workflow that creates spec.md, todo.md, and decisions.md artifacts before implementation.
Breaks approved specs into structured implementation plans with phases, tasks, and validation criteria. Handles annotation cycles and creates plan.json output for downstream execution.