Specflow
Reactive spec-driven development workflow inspired by github/spec-kit with three processes: build a feature from a specification, fix a bug with an approved diagnosis, and assess whether an idea deserves investment.
Use the specflow skill to [describe your task].Install: npx skills add Reactive-Skills/skills --skill specflow
- States
- 32
- Hierarchical nodes
- Initial State
- INIT
- Bootstrap entrypoint
- Allowed Tools
- 0
- Whitelisted for safety
- Deliverables
- 1
- Automated projections
Statechart (optional)
Visual state machine topology parsed directly from the official STATECHART.md in Reactive-Skills/skills:
States & Deterministic Guards
Each state is an isolated operational slice. Transitions occur only when typed signals satisfy programmatic guard conditions.
- INITINITIAL
Verify the reactive runtime before any workflow work.
Outgoing Transitions
- RUNTIME_READYACTIVE
- SETUP_REQUIREDERROR
- ACTIVE
Owns every nonterminal process and handles cancellation and unrecoverable failure.
Outgoing Transitions
- CANCELCANCELLED
- FAILEDERROR
- ACTIVE.ROUTING
Choose the process and record the request and slug.
Outgoing Transitions
- SDD_SELECTEDACTIVE.SDDguard:
(r => Boolean(r) && typeof r.slug === 'string' && /^[a-z0-9]+(-[a-z0-9]+)*$/.test(r.slug) && typeof r.description === 'string' && r.description.trim().length > 0)((payload.contextUpdates && payload.contextUpdates.request) || context.request) - BUGFIX_SELECTEDACTIVE.BUGFIXguard:
(r => Boolean(r) && typeof r.slug === 'string' && /^[a-z0-9]+(-[a-z0-9]+)*$/.test(r.slug) && typeof r.description === 'string' && r.description.trim().length > 0)((payload.contextUpdates && payload.contextUpdates.request) || context.request) - ASSESS_SELECTEDACTIVE.ASSESSguard:
(r => Boolean(r) && typeof r.slug === 'string' && /^[a-z0-9]+(-[a-z0-9]+)*$/.test(r.slug) && typeof r.description === 'string' && r.description.trim().length > 0)((payload.contextUpdates && payload.contextUpdates.request) || context.request)
- SDD_SELECTEDACTIVE.SDDguard:
- ACTIVE.SDDTERMINAL
Spec-driven development from constitution to converged implementation.
- ACTIVE.SDD.CONSTITUTION
Create, amend, or skip the project constitution.
Outgoing Transitions
- CONSTITUTION_READYACTIVE.SDD.SPECIFY
- CONSTITUTION_SKIPPEDACTIVE.SDD.SPECIFYguard:
typeof payload.reason === 'string' && payload.reason.trim().length > 0
- ACTIVE.SDD.SPECIFY
Write or revise the feature specification.
Outgoing Transitions
- SPEC_DRAFTEDACTIVE.SDD.CLARIFY
- ACTIVE.SDD.CLARIFY
Resolve high-impact ambiguity in the specification.
Outgoing Transitions
- CLARIFIEDACTIVE.SDD.CHECKLISTguard:
(r => Boolean(r) && Boolean(r.clarify) && ['converged','diminishing_returns','user_done'].includes(r.clarify.stop_reason) && Array.isArray(r.clarify.coverage) && r.clarify.coverage.length > 0 && r.clarify.coverage.every(i => Boolean(i) && typeof i.area === 'string' && i.area.trim().length > 0 && ['high','medium','low'].includes(i.impact) && ['clear','partial','missing','deferred'].includes(i.status) && (i.impact !== 'high' || i.status === 'clear' || (i.status === 'deferred' && typeof i.reason === 'string' && i.reason.trim().length > 0))))((payload.contextUpdates && payload.contextUpdates.sdd_record) || context.sdd_record) - CLARIFY_SKIPPEDACTIVE.SDD.CHECKLISTguard:
typeof payload.reason === 'string' && payload.reason.trim().length > 0
- CLARIFIEDACTIVE.SDD.CHECKLISTguard:
- ACTIVE.SDD.CHECKLIST
Write requirement-quality checklists.
Outgoing Transitions
- CHECKLIST_READYACTIVE.SDD.SPEC_REVIEW
- CHECKLIST_SKIPPEDACTIVE.SDD.SPEC_REVIEWguard:
typeof payload.reason === 'string' && payload.reason.trim().length > 0
- ACTIVE.SDD.SPEC_REVIEW
Human approval of the specification before planning.
Outgoing Transitions
- USER_APPROVEDACTIVE.SDD.PLAN
- USER_REVISION_REQUESTEDACTIVE.SDD.SPECIFY
- ACTIVE.SDD.PLAN
Write or revise the technical plan and design artifacts.
Outgoing Transitions
- PLAN_DRAFTEDACTIVE.SDD.PLAN_REVIEW
- ACTIVE.SDD.PLAN_REVIEW
Human approval of the plan before tasks.
Outgoing Transitions
- USER_APPROVEDACTIVE.SDD.TASKS
- USER_REVISION_REQUESTEDACTIVE.SDD.PLAN
- ACTIVE.SDD.TASKS
Break the plan into ordered, traceable tasks.
Outgoing Transitions
- TASKS_READYACTIVE.SDD.ANALYZE
- ACTIVE.SDD.ANALYZE
Read-only cross-artifact consistency analysis.
Outgoing Transitions
- ANALYSIS_PASSEDACTIVE.SDD.IMPLEMENT
- ANALYZE_SKIPPEDACTIVE.SDD.IMPLEMENTguard:
typeof payload.reason === 'string' && payload.reason.trim().length > 0 - CRITICAL_ISSUESBLOCKED
- ACTIVE.SDD.IMPLEMENT
Execute tasks phase by phase.
Outgoing Transitions
- IMPLEMENTEDACTIVE.SDD.CONVERGE
- IMPLEMENT_BLOCKEDBLOCKED
- ACTIVE.SDD.CONVERGE
Compare code with the artifacts and append remaining work.
Outgoing Transitions
- CONVERGEDDONE
- CONVERGE_SKIPPEDDONEguard:
typeof payload.reason === 'string' && payload.reason.trim().length > 0 - GAPS_APPENDEDACTIVE.SDD.IMPLEMENTguard:
((prev, next) => Boolean(next) && next.converge_round === ((prev && Number(prev.converge_round)) || 0) + 1 && next.converge_round <= 3)(context.sdd_record, payload.contextUpdates && payload.contextUpdates.sdd_record) - GAPS_REMAINBLOCKEDguard:
Boolean(context.sdd_record) && Number(context.sdd_record.converge_round) >= 3
- ACTIVE.BUGFIXTERMINAL
Assess, approve, fix, and test a reported bug.
- ACTIVE.BUGFIX.ASSESS
Reproduce and diagnose the bug without code changes.
Outgoing Transitions
- ASSESSEDACTIVE.BUGFIX.ASSESSMENT_REVIEW
- ASSESS_BLOCKEDBLOCKED
- ACTIVE.BUGFIX.ASSESSMENT_REVIEW
Human approval of the diagnosis before any code change.
Outgoing Transitions
- USER_APPROVEDACTIVE.BUGFIX.FIX
- USER_REVISION_REQUESTEDACTIVE.BUGFIX.ASSESS
- ACTIVE.BUGFIX.FIX
Apply the smallest fix for the approved root cause.
Outgoing Transitions
- FIXEDACTIVE.BUGFIX.TESTguard:
((prev, next) => Boolean(next) && next.fix_attempt === ((prev && Number(prev.fix_attempt)) || 0) + 1 && next.fix_attempt <= 3)(context.bug_record, payload.contextUpdates && payload.contextUpdates.bug_record) - FIX_BLOCKEDBLOCKED
- FIXEDACTIVE.BUGFIX.TESTguard:
- ACTIVE.BUGFIX.TEST
Prove the fix with a regression test and the relevant suite.
Outgoing Transitions
- TEST_PASSEDDONE
- TEST_FAILEDACTIVE.BUGFIX.FIXguard:
Boolean(context.bug_record) && Number(context.bug_record.fix_attempt) < 3 && typeof payload.failure_evidence === 'string' && payload.failure_evidence.trim().length > 0 - FIX_LIMIT_REACHEDBLOCKEDguard:
Boolean(context.bug_record) && Number(context.bug_record.fix_attempt) >= 3
- ACTIVE.ASSESSTERMINAL
Decide with evidence whether an idea deserves investment.
- ACTIVE.ASSESS.INTAKE
Capture the raw idea and its context.
Outgoing Transitions
- INTAKE_READYACTIVE.ASSESS.RESEARCH
- ACTIVE.ASSESS.RESEARCH
Gather evidence about the problem and alternatives.
Outgoing Transitions
- RESEARCHEDACTIVE.ASSESS.DEFINE
- ACTIVE.ASSESS.DEFINE
Define the problem, users, and outcomes.
Outgoing Transitions
- DEFINEDACTIVE.ASSESS.SHAPE
- ACTIVE.ASSESS.SHAPE
Shape a bounded candidate solution.
Outgoing Transitions
- SHAPEDACTIVE.ASSESS.DECIDE
- ACTIVE.ASSESS.DECIDE
Write an evidence-backed go, clarify, or stop verdict.
Outgoing Transitions
- VERDICT_READYACTIVE.ASSESS.VERDICT_REVIEWguard:
(r => Boolean(r) && ['go','clarify','stop'].includes(r.verdict))((payload.contextUpdates && payload.contextUpdates.assess_record) || context.assess_record)
- VERDICT_READYACTIVE.ASSESS.VERDICT_REVIEWguard:
- ACTIVE.ASSESS.VERDICT_REVIEW
Human review of the verdict.
Outgoing Transitions
- GO_ACCEPTEDACTIVE.ASSESS.HANDOFF_OFFERguard:
Boolean(context.assess_record) && context.assess_record.verdict === 'go' - VERDICT_ACCEPTEDDONEguard:
Boolean(context.assess_record) && context.assess_record.verdict !== 'go' - USER_REVISION_REQUESTEDACTIVE.ASSESS.DECIDE
- GO_ACCEPTEDACTIVE.ASSESS.HANDOFF_OFFERguard:
- ACTIVE.ASSESS.HANDOFF_OFFER
Offer to continue into specification in this run.
Outgoing Transitions
- HANDOFF_ACCEPTEDACTIVE.SDD.SPECIFYguard:
(r => Boolean(r) && typeof r.slug === 'string' && /^[a-z0-9]+(-[a-z0-9]+)*$/.test(r.slug) && typeof r.description === 'string' && r.description.trim().length > 0)((payload.contextUpdates && payload.contextUpdates.request) || context.request) - HANDOFF_DECLINEDDONE
- HANDOFF_ACCEPTEDACTIVE.SDD.SPECIFYguard:
- DONETERMINAL
Report the completed process and its artifacts.
- BLOCKEDTERMINAL
Report what stopped the work and the evidence the user needs.
- CANCELLEDTERMINAL
Confirm the user stopped the run.
- ERRORTERMINAL
Report runtime setup failure or an unrecoverable error.