From spec-superflow
Converts approved planning artifacts (proposal, specs, design, tasks) into an execution contract with DP-3 approval gate. Use when moving from planning to implementation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/spec-superflow:contract-builderThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Converts planning artifacts into a single execution handshake: `execution-contract.md`. Use `templates/execution-contract.md` as the baseline structure.
Converts planning artifacts into a single execution handshake: execution-contract.md. Use templates/execution-contract.md as the baseline structure.
Read before generating: proposal.md, specs/, design.md, tasks.md, docs/artifact-contract.md.
| Source | Extract |
|---|---|
proposal.md → ## Why + ## What Changes | Intent Lock (problem + scope) |
proposal.md → ## Scope > ### Out of Scope | Scope Fence |
specs/ → each ### Requirement: | Approved Requirements, Scenarios, Test Obligations |
design.md → ## Decisions | Architecture, Interface, Dependency Constraints |
tasks.md → numbered task groups | Execution Batches, Completion Definitions, Review Timing |
Before finalizing:
specs/Must make obvious: approved behavior, out-of-scope, constraints, batches, test obligations, review gates, and conditions that force a rewind to planning. Prefer compression over repeating planning details.
After drafting: summarize handoff rules, identify ambiguity, flag unmapped requirements, ask user to approve explicitly. After approval:
node "${CLAUDE_PLUGIN_ROOT}/scripts/spec-superflow.mjs" state set <change-dir> dp_3_result "approved: <summary>"
node "${CLAUDE_PLUGIN_ROOT}/scripts/spec-superflow.mjs" state set <change-dir> dp_3_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
DP-3 is a hard gate — no implementation without this record.
Refresh if: scope changed in proposal, requirements changed in specs, constraints changed in design, batches changed materially in tasks, or the contract no longer matches intent.
Generate minimal contract: Intent Lock (one sentence), Task List (numbered), Approval Gate (DP-3). Skip Scope Fence, Build Rules, Review Gates, Test Evidence. Still requires DP-3 approval.
Run node "${CLAUDE_PLUGIN_ROOT}/scripts/spec-superflow.mjs" state init <change-dir> to create .spec-superflow.yaml with hashes.
For hotfix, after writing the minimal contract, run node "${CLAUDE_PLUGIN_ROOT}/scripts/spec-superflow.mjs" state init <change-dir> or node "${CLAUDE_PLUGIN_ROOT}/scripts/spec-superflow.mjs" state rebuild <change-dir> so contract_hash is recorded. DP-3 remains mandatory before build.
spec-writer.spec-writer.npx claudepluginhub magebyte-zero/spec-superflow --plugin spec-superflowCreates 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.
Negotiates a file-based sprint contract between generator and evaluator agents, translating product specs into testable acceptance criteria with rubric tie-ins. Triggered by /mk:sprint-contract or sprint scope negotiation.
Transforms requirements.md into an executable plan (plan.json + contracts.md) using contract-first planning. Sits between /specify and /execute for greenfield or bugfix work.