Skip to content

Stage 6 · Docs

Stage 6 is the final stage: it produces architecture docs for the shipped feature, written from the real code so they reflect what was actually built.

Generates developer-focused architecture documentation for the finished feature, read from the ACTUAL implementation (not just the specs) — for onboarding, reference, and maintenance.

/feature-forge:forge-6-docs <feature-name>
  • The completed specs and the implemented source code
  • The backlog (used to check implementation completeness)
  • .pipeline-state.json
  • Per-feature docs under docs/architecture/<feature>/ (e.g. README.md, architecture.md, api-reference.md, plus configuration/guides as appropriate)
  • Sets the pipeline state to complete
  • Auto-commits if enabled

You review the documentation plan (minimum / standard / comprehensive) and the generated docs.

The pipeline is complete for this feature. View final status with /feature-forge:forge <feature> — see the dashboard.

  • PRD, tech spec, and specs must be complete before this runs.
  • Before generating docs, this stage checks that the implementation was verified — if impl-verify was skipped or is stale, it offers to run it first. With autoVerify enabled for forge-5-loop, that impl-verify has typically already run automatically when the loop finished.
  • If implementation is under 80% done, it warns and marks the docs PRE-IMPLEMENTATION.
  • Docs are self-contained and describe the real implementation. If the code diverged from the spec, the implementation wins.