From spec-superflow
Convert approved planning artifacts into an execution contract. Invoke when the user wants to start building, asks to move from planning to implementation, or when execution-contract.md is missing or stale.
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`. Load the baseline with `npx --yes --package [email protected] ssf runtime asset read templates/execution-contract.md`.
Converts planning artifacts into a single execution handshake: execution-contract.md. Load the baseline with npx --yes --package [email protected] ssf runtime asset read templates/execution-contract.md.
Read before generating: proposal.md, specs/, design.md, tasks.md, then load docs/artifact-contract.md with npx --yes --package [email protected] ssf runtime asset read 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:
npx --yes --package [email protected] ssf state set <change-dir> dp_3_result "approved: <summary>"
npx --yes --package [email protected] ssf 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 npx --yes --package [email protected] ssf state init <change-dir> to create .spec-superflow.yaml with hashes.
For hotfix, after writing the minimal contract, run npx --yes --package [email protected] ssf state init <change-dir> or npx --yes --package [email protected] ssf state rebuild <change-dir> so contract_hash is recorded. DP-3 remains mandatory before build.
spec-writer.spec-writer.npx claudepluginhub haroldhuanrongliu/spec-superflow2plugins reuse this skill
First indexed Jul 18, 2026
Convert approved planning artifacts into an execution contract. Invoke when the user wants to start building, asks to move from planning to implementation, or when execution-contract.md is missing or stale.
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.