Buildforce isn't just about individual commands—it's about how commands feed context forward to create knowledge that compounds over time.
Each command in the workflow builds on the output of previous commands:
graph LR
A[Context Repository] --> B[/research]
B --> C[/spec]
C --> D[/build]
D --> E[/complete]
E --> A
style A fill:#4ade80
style B fill:#60a5fa
style C fill:#a78bfa
style D fill:#f472b6
style E fill:#fb923c
Research Output:
Spec Input: Research findings inform requirement definitions:
Example:
# Research finds authentication uses JWT pattern
# Spec requirement references this:
functional_requirements:
- FR1: "Implement OAuth2 login following existing JWT auth pattern"
Spec Output:
Plan Input: Requirements guide implementation approach:
spec_refsExample:
# Spec defines FR1: "Add user authentication"
# Plan task references it:
tasks:
- [ ] Create authentication middleware
spec_refs: [FR1]
files: [src/middleware/auth.ts]
Plan Output:
Build Input: Plan guides systematic implementation:
Example:
# Plan defines Phase 1: Setup middleware
# Build checks off tasks:
phase_1:
tasks:
- [x] Create authentication middleware # ✓ Completed
- [x] Add JWT token validation # ✓ Completed
Build Output:
Complete Input: Build output validates completeness:
Example:
# Build logged deviation
deviations:
- phase: "phase_1"
task: "Use bcrypt for hashing"
original: "Use crypto module"
actual: "Used bcrypt library"
reason: "Better security and salt handling"
# Complete captures this as context
architectural_decisions:
- pattern: "Password Hashing with bcrypt"
rationale: "Chose bcrypt over crypto for better salt handling"
Complete Output:
Context Repository Input: Knowledge saved for future work:
Example:
# Context file created in .buildforce/context/
id: authentication-module
type: module
description: "JWT-based authentication with OAuth2 support"
key_decisions:
- "Use bcrypt for password hashing (better salt handling)"
- "JWT tokens expire after 15 minutes with refresh tokens"
related_context:
- user-management
- api-security
The magic happens when you complete multiple features:
Feature 1: Add Authentication
Feature 2: Add Authorization
Feature 3: Add User Roles
Result: Each feature builds on accumulated knowledge. By Feature 3, your context repository knows:
/research to understand patterns established by the team.Without orchestration, context evaporates:
Session 1: Build auth → Context lost
Session 2: Build authorization → Rediscover auth patterns
Session 3: Add roles → Rediscover both again
With orchestration, context persists:
Session 1: /research → /spec → /build → /complete (saves auth context)
Session 2: /research (loads auth context) → /spec → /build → /complete (saves authorization context)
Session 3: /research (loads both contexts) → /spec → /build → /complete (saves roles context)
The full workflow is recommended but not required:
Skip /research when:
Skip /complete when:
Always run /spec and /build for: