Stage 2 · Tech Spec
Stage 2 turns the approved PRD into a technical specification — the decisions about how the feature will actually be built.
What it does
Section titled “What it does”Decides how to build the feature, producing a technical specification grounded in the PRD. Every technical decision must trace back to a PRD requirement (REQ-XXX-NN). It also detects and confirms the project’s stack.
Command
Section titled “Command”/feature-forge:forge-2-tech <feature-name>Inputs it consumes
Section titled “Inputs it consumes”- A completed
PRD.md(prerequisite). - Codebase research — a
forge-researchersubagent explores the codebase, with a manual fallback. - Stack detection.
Artifacts it produces
Section titled “Artifacts it produces”tech-spec.md, with sections including Overview, Module Structure, Technical Decisions, Data Model, API Design, Integration Points, Error Handling, Testing, Dependencies, and Open Questions.- Updates
forge.config.jsonwithstack,typeCheckCommand, andtestCommand. - Updates
.pipeline-state.json. - Auto-commits if enabled.
What you review & approve
Section titled “What you review & approve”- The detected stack.
- Each technical-decision area.
- The full tech-spec draft.
What comes next
Section titled “What comes next”Verify the tech spec, then generate implementation specs:
/feature-forge:forge-verify <feature>/feature-forge:forge-3-specs <feature>With autoVerify: true in your config, the
verify step runs automatically after this stage — no need to invoke it by hand.
See verify or Stage 3 · Specs.
Notes & gotchas
Section titled “Notes & gotchas”forge-1-prdmust be complete first.- The tech spec answers how, not what — don’t duplicate the PRD.
- Integration points are verified against actual source code.