Spec
Transform feature descriptions into formal specifications using foundation-aware templates.
Customization
Before executing, check for user customizations at:
~/.claude/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Spec/
If this directory exists, load and apply any PREFERENCES.md configurations. If not, proceed with defaults.
Prerequisites
- LifeOS must be installed. Check
~/.claude/LIFEOS/VERSION. - Foundation must exist at
/directive/foundation.md. If missing, inform user: "Run/buddy:foundationfirst."
Workflow Routing
| Workflow | Trigger | File |
|----------|---------|------|
| GenerateSpec | Any invocation with feature description | Workflows/GenerateSpec.md |
Template Selection
Based on foundation type extracted from /directive/foundation.md:
- Default:
Templates/DefaultSpec.md - JHipster:
Templates/JHipsterSpec.md - MuleSoft:
Templates/MuleSoftSpec.md
Output
Specifications are written to: specs/[YYYYMMDD-slug]/spec.md
Examples
Example 1: Generate specification
User: "/buddy:spec user authentication with JWT tokens and password reset"
-> Loads foundation, detects type (default)
-> Loads DefaultSpec.md template
-> Generates specification with requirements, user stories, acceptance criteria
-> Marks unclear areas: [NEEDS CLARIFICATION: Which roles needed?]
-> Writes to specs/20260402-user-authentication/spec.md