<prerequisites phase="0", applies="ALL">
- All Rosetta prep steps MUST be FULLY completed
- USE SKILL
load-project-context, hitl
- MUST ALWAYS use todo tasks ledger, ASAP. Phases are sequential. Independent tasks can run in parallel.
- No rush, take your time, MUST FOLLOW WORKFLOW ENTIRELY, no skipping
- Every phase MUST update
requirements-authoring-flow-state.md in FEATURE TEMP with: phase name, status, artifact produced, and open questions.
- Orchestrator and subagents MUST USE SKILL
requirements-authoring.
- If task is to reverse engineer orchestrator MUST USE SKILL
reverse-engineering.
- Keep requirement identifiers in code comments only, must not be user facing.
- If
/goal is set repeat phases 5-6 until goal is met, then continue with the rest of phases.
- This workflow MUST be used with Fable, Opus, GPT-5.5+ class models => IF NOT - DEMAND USER TO SWITCH MODEL
IMPORTANT! If the task is to reverse engineer requirements, spawn MULTIPLE subagents with each handling one unit of analysis (one screen, one page, one controller, one endpoint, etc) to effectively prevent hallucinations by narrow scoping for phases intent_capture, outline, draft, validate.
Artifact: Discovery Summary (context, existing requirements, constraints, affected files).
Done when: scope boundaries and relevant requirement files are identified.
- Complete all Rosetta prep steps
- Detect environment and project structure
- Read existing requirements, glossary, assumptions, constraints
- Identify requirement areas (FR, NFR, interfaces, data, traceability)
- Record assumptions and unknowns
- Required skills:
requirements-authoring
- Recommended skills:
reverse-engineering
Artifact: Research Notes (sources, constraints, prior art, reusable requirement patterns).
Done when: relevant references are gathered OR no additional sources are needed.
Skip when: local context is complete and no external standards are needed.
- Gather supporting docs and prior decisions
- Collect requirement patterns and quality criteria
- Capture measurable thresholds and terminology constraints
- Required skills:
requirements-authoring
Artifact: Intent Capture.
Done when: intent is restated, scope and goals confirmed, assumptions listed, and questions resolved.
- Restate intent and confirm scope and goals
- List assumptions and targeted questions
- HITL: present intent capture and get explicit approval
- Resolve blockers before outlining or drafting
- Required skills:
requirements-authoring
Artifact: Requirement Outline (areas, file mapping, ID strategy, traceability plan).
Done when: user approves structure and requirement batching strategy.
- Propose MECE structure and area abbreviations
- Map files and IDs without writing final requirement text
- HITL: get user approval on structure and scope
- Required skills:
requirements-authoring
Artifact: Draft Requirement Units (per the requirements-authoring skill's requirement-unit asset).
Done when: every in-scope requirement has schema-complete draft and explicit user decision.
- Draft in small batches using
<req> schema
- Use EARS for FRs and measurable metrics for NFRs
- Keep unresolved or deferred units as
Draft
- Modify files directly, do not show to user
- Update
<req> schema if older/missing fields
- Required skills:
requirements-authoring
- If reverse engineering - it must be possible to rewrite using requirements only completely from scratch without old code present.
Artifact: Validation Report (rubric results, conflict checks, gap checks, risks).
Done when: checklist passes and unresolved issues are either fixed or explicitly deferred.
- Run validation using the
requirements-authoring skill's validation rubric
- Run conflict checks and gap checks
- Verify traceability source -> goal -> req -> test
- HITL: review findings with user as a narrative / story /walk-through
- Required skills:
requirements-authoring
- Recommended skills:
reverse-engineering
- If reverse engineering: MUST additionally validate there are NO hallucinations or made-up requirements
- Review all drafts requirements with user by providing a clear and exact story as a narrative/walk-through of a functionality of the application that this affected, use simple words and sentences (consider human doesn't know internal implementation). If possible you can also do that from point of view of the actor that this requirements affect (user of the app, admin of the dashboard, etc)
- You should combine affected and existing requirements for the proper narrative/story
- If there are multiple stories - create todo task to review each story separately
- Review story-by-story with user for approval, provide referenced content, examples, etc
- The narrative must still be very specific so that it allows to fully approve every aspect of requirements
- Do not assume user has a context, explain like user sees this first time
- Must review all assumptions and quirks
Artifact: Final Requirements Set, Validation Pack, Traceability Matrix, Change Log.
Done when: artifacts are stored in target location and state file is complete.
- Deliver final approved requirement set
- Update index and links
- Update the change log using the
requirements-authoring skill's change-log asset
- Mark state as complete
- Required skills:
requirements-authoring
- Coding must be performed using
coding-flow (ask, recommend, switch), on switch do not load requirements-use skill, as requirements-authoring is superior already.
- Every phase produced its artifact
- No must phase skipped or merged
- Should phase skipped only with reason
- Rosetta prep steps completed before discovery
- Intent capture approved before outline and draft
- Structure approved before drafting
- Each
<req> explicitly user-approved
- Validation rubric passed or deferred explicitly
- Traceability links are complete
- State file reflects final status
- Actors are clear at each HITL gate
- Non-goals are not introduced
- Skip questioning and guess intent
- Draft before intent capture approval
- Batch too much and lose review quality
- Mark req Approved without user approval
- Mix implementation details into requirements
- Validate without checking conflicts and gaps
- Omit traceability updates
- Forget state updates and lose flow continuity
1---2name: requirements-authoring-flow-23description: Workflow for authoring requirements and specifications: drafting, review, validation, etc.4---56<requirements-flow>78<description_and_purpose>9Prevents premature drafting by enforcing HITL gates where every `<req>` unit receives explicit user approval before proceeding. Each phase produces traceable artifacts (Final Requirements Set, Validation Pack, Traceability Matrix). Input: user request for new requirements, edits, review, refactor, or validation; USE SKILL `requirements-authoring` and PROACTIVELY REQUIRE its use in all phases and subagents.10</description_and_purpose>1112<workflow_phases>1314<prerequisites phase="0", applies="ALL">15161. All Rosetta prep steps MUST be FULLY completed172. USE SKILL `load-project-context`, `hitl`183. MUST ALWAYS use todo tasks ledger, ASAP. Phases are sequential. Independent tasks can run in parallel.194. No rush, take your time, MUST FOLLOW WORKFLOW ENTIRELY, no skipping205. Every phase MUST update `requirements-authoring-flow-state.md` in FEATURE TEMP with: phase name, status, artifact produced, and open questions.216. Orchestrator and subagents MUST USE SKILL `requirements-authoring`.227. If task is to reverse engineer orchestrator MUST USE SKILL `reverse-engineering`.238. Keep requirement identifiers in code comments only, must not be user facing.249. If `/goal` is set repeat phases 5-6 until goal is met, then continue with the rest of phases.2510. This workflow MUST be used with Fable, Opus, GPT-5.5+ class models => IF NOT - DEMAND USER TO SWITCH MODEL2627IMPORTANT! If the task is to reverse engineer requirements, spawn MULTIPLE subagents with each handling one unit of analysis (one screen, one page, one controller, one endpoint, etc) to effectively prevent hallucinations by narrow scoping for phases intent_capture, outline, draft, validate.2829</prerequisites>3031<discovery phase="1" priority="must" subagent="discoverer" role="Context analyst collecting project and scope signals" subagent_required_model="gpt-5.6-terra-medium">3233Artifact: Discovery Summary (context, existing requirements, constraints, affected files).34Done when: scope boundaries and relevant requirement files are identified.35361. Complete all Rosetta prep steps372. Detect environment and project structure383. Read existing requirements, glossary, assumptions, constraints394. Identify requirement areas (FR, NFR, interfaces, data, traceability)405. Record assumptions and unknowns416. Required skills: `requirements-authoring`427. Recommended skills: `reverse-engineering`4344</discovery>4546<research phase="2" priority="should" subagent="requirements-engineer" role="Researcher collecting standards and prior decisions" subagent_required_model="gpt-5.6-sol-high">4748Artifact: Research Notes (sources, constraints, prior art, reusable requirement patterns).49Done when: relevant references are gathered OR no additional sources are needed.50Skip when: local context is complete and no external standards are needed.51521. Gather supporting docs and prior decisions532. Collect requirement patterns and quality criteria543. Capture measurable thresholds and terminology constraints554. Required skills: `requirements-authoring`5657</research>5859<intent_capture phase="3" priority="must" subagent="requirements-engineer" role="Requirements analyst capturing intent and assumptions" subagent_required_model="gpt-5.6-sol-high">6061Artifact: Intent Capture.62Done when: intent is restated, scope and goals confirmed, assumptions listed, and questions resolved.63641. Restate intent and confirm scope and goals652. List assumptions and targeted questions663. HITL: present intent capture and get explicit approval674. Resolve blockers before outlining or drafting685. Required skills: `requirements-authoring`6970</intent_capture>7172<outline phase="4" priority="must" subagent="requirements-engineer" role="Information architect proposing MECE requirement layout" subagent_required_model="gpt-5.6-sol-high">7374Artifact: Requirement Outline (areas, file mapping, ID strategy, traceability plan).75Done when: user approves structure and requirement batching strategy.76771. Propose MECE structure and area abbreviations782. Map files and IDs without writing final requirement text793. HITL: get user approval on structure and scope804. Required skills: `requirements-authoring`8182</outline>8384<draft phase="5" priority="must" subagent="requirements-engineer" role="Author drafting atomic requirement units" subagent_required_model="gpt-5.6-sol-high">8586Artifact: Draft Requirement Units (per the `requirements-authoring` skill's requirement-unit asset).87Done when: every in-scope requirement has schema-complete draft and explicit user decision.88891. Draft in small batches using `<req>` schema902. Use EARS for FRs and measurable metrics for NFRs913. Keep unresolved or deferred units as `Draft`924. Modify files directly, do not show to user935. Update `<req>` schema if older/missing fields946. Required skills: `requirements-authoring`957. If reverse engineering - it must be possible to rewrite using requirements only completely from scratch without old code present.9697</draft>9899<validate phase="6" priority="must" subagent="reviewer" role="Quality reviewer checking correctness, conflicts, and gaps" subagent_required_model="gpt-5.6-terra-medium" must-be-subagent>100101Artifact: Validation Report (rubric results, conflict checks, gap checks, risks).102Done when: checklist passes and unresolved issues are either fixed or explicitly deferred.1031041. Run validation using the `requirements-authoring` skill's validation rubric1052. Run conflict checks and gap checks1063. Verify traceability source -> goal -> req -> test1074. HITL: review findings with user as a narrative / story /walk-through1085. Required skills: `requirements-authoring`1096. Recommended skills: `reverse-engineering`1107. If reverse engineering: MUST additionally validate there are NO hallucinations or made-up requirements111112</validate>113114<user_review phase="7" priority="must" type="HITL">1151161. Review all drafts requirements with user by providing a clear and exact story as a narrative/walk-through of a functionality of the application that this affected, use simple words and sentences (consider human doesn't know internal implementation). If possible you can also do that from point of view of the actor that this requirements affect (user of the app, admin of the dashboard, etc)1172. You should combine affected and existing requirements for the proper narrative/story1183. If there are multiple stories - create todo task to review each story separately1194. Review story-by-story with user for approval, provide referenced content, examples, etc1205. The narrative must still be very specific so that it allows to fully approve every aspect of requirements1216. Do not assume user has a context, explain like user sees this first time1227. Must review all assumptions and quirks123124</user_review>125126<finalization phase="8" priority="must" subagent="requirements-engineer" role="Business analyst finalizing requirement artifacts" subagent_required_model="gpt-5.6-sol-high">127128Artifact: Final Requirements Set, Validation Pack, Traceability Matrix, Change Log.129Done when: artifacts are stored in target location and state file is complete.1301311. Deliver final approved requirement set1322. Update index and links1333. Update the change log using the `requirements-authoring` skill's change-log asset1344. Mark state as complete1355. Required skills: `requirements-authoring`1366. Coding must be performed using `coding-flow` (ask, recommend, switch), on switch do not load `requirements-use` skill, as `requirements-authoring` is superior already.137138</finalization>139140</workflow_phases>141142<validation_checklist>143144- Every phase produced its artifact145- No must phase skipped or merged146- Should phase skipped only with reason147- Rosetta prep steps completed before discovery148- Intent capture approved before outline and draft149- Structure approved before drafting150- Each `<req>` explicitly user-approved151- Validation rubric passed or deferred explicitly152- Traceability links are complete153- State file reflects final status154- Actors are clear at each HITL gate155- Non-goals are not introduced156157</validation_checklist>158159<pitfalls>160161- Skip questioning and guess intent162- Draft before intent capture approval163- Batch too much and lose review quality164- Mark req Approved without user approval165- Mix implementation details into requirements166- Validate without checking conflicts and gaps167- Omit traceability updates168- Forget state updates and lose flow continuity169170</pitfalls>171172</requirements-flow>