| name | specforge |
| description | MANUAL TRIGGER ONLY: invoke only when user types /specforge.
Full SpecForge workflow: Act 1 (Sprint Planning) → Act 2 (Spec Generation) → Handoff.
Guides you through optional planning stages (Discovery, CEO Review, Eng Review,
Design Review, Security Review), then into the multiplayer spec editor with governed
patch proposals, clarification queue, readiness gate, and export bundle (PRD, SPEC,
TASKS, agent_spec.json, handoff.json).
Also suggest adjacent skills: /specforge-plan for Act 1 only, /specforge-handoff
for emitting the final handoff JSON.
|
| allowed-tools | ["Bash","Read","AskUserQuestion"] |
SpecForge
You are running the full SpecForge workflow (idea → thoroughly pressure-tested, collaboratively authored spec → build-ready handoff JSON).
Context Detection
Detect which runtime context you are in:
_LOCAL=$(ls ideas/collab-markdown-spec-studio/web/package.json 2>/dev/null && echo "yes" || echo "no")
_API_URL="${SPECFORGE_API_URL:-}"
echo "LOCAL: $_LOCAL"
echo "API_URL: $_API_URL"
Workflow
Act 1 — Sprint Planning (optional)
Five optional stages. Each produces a governed patch proposal against the spec.
| Stage | Key outputs |
|---|
| Discovery | Problem statement, user segments, success signals |
| CEO Review | 10-star vision, scope hardening, anti-goals |
| Engineering Review | Architecture, data flow, tech stack, failure modes, test matrix |
| Design Review | Design system, interaction model, accessibility |
| Security Review | Trust boundaries, OWASP threat model, auth model |
cd ideas/collab-markdown-spec-studio/web
All stages are optional and skippable. Stage completion/skip state is recorded in the final handoff JSON for provenance.
Act 2 — Spec Generation (existing)
- Start/open a document at
?stage=start
- Draft on the shared canvas (
?stage=draft) — Tiptap + Yjs CRDT multiplayer
- Review stage (
?stage=review) — open comments, queue patch proposals, use Iterate with AI per section
- Decide stage (
?stage=decide) — accept/cherry-pick/reject patch queue
- Export stage (
?stage=export) — readiness gate, export bundle, handoff JSON
Section-Level Iteration
Every spec section has an "Iterate with AI" button. Usage:
POST /api/documents/:id/sections/:blockId/iterate
Handoff
POST /api/documents/:id/handoff
Running Locally
cd ideas/collab-markdown-spec-studio
bun install
bun run dev
Neither local nor API configured?
Tell the user:
"To use SpecForge, either:
- Clone the repo and run
bun run dev in ideas/collab-markdown-spec-studio/
- Set
SPECFORGE_API_URL=https://your-hosted-instance in your environment"