Skip to content
Metaprogramming & Lifecyclev1.2.0(schema v2.1.0)

Specflow

Strict HSM

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.

Registry Repository: Reactive-Skills/skillsView on GitHub
Ask your agent
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:

Specflow (stateDiagram-v2)
Rendering statechart...

States & Deterministic Guards

Each state is an isolated operational slice. Transitions occur only when typed signals satisfy programmatic guard conditions.

  1. INITINITIAL

    Verify the reactive runtime before any workflow work.

    Outgoing Transitions

    • RUNTIME_READYACTIVE
    • SETUP_REQUIREDERROR
  2. ACTIVE

    Owns every nonterminal process and handles cancellation and unrecoverable failure.

    Outgoing Transitions

    • CANCELCANCELLED
    • FAILEDERROR
  3. 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)
  4. ACTIVE.SDDTERMINAL

    Spec-driven development from constitution to converged implementation.

  5. 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
  6. ACTIVE.SDD.SPECIFY

    Write or revise the feature specification.

    Outgoing Transitions

    • SPEC_DRAFTEDACTIVE.SDD.CLARIFY
  7. 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
  8. 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
  9. ACTIVE.SDD.SPEC_REVIEW

    Human approval of the specification before planning.

    Outgoing Transitions

    • USER_APPROVEDACTIVE.SDD.PLAN
    • USER_REVISION_REQUESTEDACTIVE.SDD.SPECIFY
  10. ACTIVE.SDD.PLAN

    Write or revise the technical plan and design artifacts.

    Outgoing Transitions

    • PLAN_DRAFTEDACTIVE.SDD.PLAN_REVIEW
  11. ACTIVE.SDD.PLAN_REVIEW

    Human approval of the plan before tasks.

    Outgoing Transitions

    • USER_APPROVEDACTIVE.SDD.TASKS
    • USER_REVISION_REQUESTEDACTIVE.SDD.PLAN
  12. ACTIVE.SDD.TASKS

    Break the plan into ordered, traceable tasks.

    Outgoing Transitions

    • TASKS_READYACTIVE.SDD.ANALYZE
  13. 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
  14. ACTIVE.SDD.IMPLEMENT

    Execute tasks phase by phase.

    Outgoing Transitions

    • IMPLEMENTEDACTIVE.SDD.CONVERGE
    • IMPLEMENT_BLOCKEDBLOCKED
  15. 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
  16. ACTIVE.BUGFIXTERMINAL

    Assess, approve, fix, and test a reported bug.

  17. ACTIVE.BUGFIX.ASSESS

    Reproduce and diagnose the bug without code changes.

    Outgoing Transitions

    • ASSESSEDACTIVE.BUGFIX.ASSESSMENT_REVIEW
    • ASSESS_BLOCKEDBLOCKED
  18. ACTIVE.BUGFIX.ASSESSMENT_REVIEW

    Human approval of the diagnosis before any code change.

    Outgoing Transitions

    • USER_APPROVEDACTIVE.BUGFIX.FIX
    • USER_REVISION_REQUESTEDACTIVE.BUGFIX.ASSESS
  19. 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
  20. 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
  21. ACTIVE.ASSESSTERMINAL

    Decide with evidence whether an idea deserves investment.

  22. ACTIVE.ASSESS.INTAKE

    Capture the raw idea and its context.

    Outgoing Transitions

    • INTAKE_READYACTIVE.ASSESS.RESEARCH
  23. ACTIVE.ASSESS.RESEARCH

    Gather evidence about the problem and alternatives.

    Outgoing Transitions

    • RESEARCHEDACTIVE.ASSESS.DEFINE
  24. ACTIVE.ASSESS.DEFINE

    Define the problem, users, and outcomes.

    Outgoing Transitions

    • DEFINEDACTIVE.ASSESS.SHAPE
  25. ACTIVE.ASSESS.SHAPE

    Shape a bounded candidate solution.

    Outgoing Transitions

    • SHAPEDACTIVE.ASSESS.DECIDE
  26. 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)
  27. 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
  28. 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
  29. DONETERMINAL

    Report the completed process and its artifacts.

  30. BLOCKEDTERMINAL

    Report what stopped the work and the evidence the user needs.

  31. CANCELLEDTERMINAL

    Confirm the user stopped the run.

  32. ERRORTERMINAL

    Report runtime setup failure or an unrecoverable error.