Buildforce uses slash commands inside AI assistant conversations to orchestrate a structured workflow. Unlike typical CLI tools executed in your terminal, Buildforce commands run within your AI chat to guide development phases.
┌─────────────────────┐
│ Context Repository │
└─────────────────────┘
↓ ↑
reads │ │ writes
│ │
/research ────────────────┘ │
↓ │
/spec (creates spec and plan files) |
↓ │
/build (follows the plan and builds) │
↓ │
/complete ────────────────────────────┘
/research - Gather ContextSearches .buildforce/context/ for accumulated knowledge, explores codebase patterns, and searches web if needed.
Output:
Purpose: Load context before defining requirements.
/spec - Define RequirementsMaterializes user intent into structured requirements saved as spec.yaml and actionable plan saved as plan.yaml.
Output:
spec.yaml - Functional requirements, acceptance criteria, scope boundariesplan.yaml - Architecture decisions, phases, tasksPurpose: Capture WHAT needs to be built and HOW to build it.
/build - Execute ImplementationExecutes plan phases sequentially, updates progress, logs deviations from the plan on multiple iterations.
Output:
Purpose: Build the feature with full transparency.
/complete - Finalize and ValidateValidates all requirements met, generates context files from spec+plan+implementation, updates context repository.
Output:
.buildforce/context/Purpose: Save knowledge for future work.
/document - Create Context FilesStandalone utility for documenting existing code without full spec-driven cycle.
Output:
Purpose: Manual context contribution.
/spec → /build
When to use:
Skip /research when you don't need existing context.
Skip /complete when the change doesn't add significant knowledge.
/research → /spec → /build → /complete
When to use:
Recommended for most feature development.
/research [topic] → /document [module]
When to use:
No spec or build - just exploring and documenting.
The key insight: Commands feed context forward.
This orchestration prevents context loss and creates knowledge that compounds over time.
/research multiple times. Iterate on /spec to refine requirements. The structure is there when you need it, invisible when you don't.project-root/
├── .buildforce/
│ ├── context/ # Context repository
│ │ ├── _index.yaml # Context catalog
│ │ ├── auth-module.yaml # Module contexts
│ │ └── api-patterns.yaml # Pattern contexts
│ ├── specs/ # Feature specs and plans
│ │ └── add-auth-jwt-20250105120000/
│ │ ├── spec.yaml # Requirements
│ │ ├── plan.yaml # Implementation plan
│ │ └── research.yaml # Research findings (optional)
│ └── buildforce.json # Configuration
└── [your code]