Skip to content
Docs

Spec Workflow

For non-trivial work, CodeForge is designed around a spec-first workflow.

CommandUse It For
/spec <feature>Create, refine, and approve a spec package
/build <feature>Implement from an approved spec
/specsCheck spec health across the project
  1. Start with /spec <feature>.
  2. Review the generated spec summary and decisions.
  3. Approve the spec.
  4. Run /build <feature>.
  5. Review the completion summary and any AI decisions.

Specs separate the human review surface from the AI implementation detail.

  • Humans review the short index.md summary.
  • AI agents use the full spec package, including context and group files.

That keeps the review path short without starving implementation of detail.

Specs live in .specs/ and typically include:

  • index.md for human review
  • context.md for AI-facing implementation context
  • group files in groups/ for acceptance criteria and decomposition

/build reads the Constitution and the approved spec, plans the work, implements it, verifies it, and closes the loop with a completion summary.

Use the spec workflow when the change is:

  • multi-file
  • design-sensitive
  • collaborative
  • large enough that you want explicit acceptance criteria