Generate Specification (spec.md) with implementation-ready details
Generates implementation-ready specification documents with traceable requirements and confidence markers.
/plugin marketplace add thkt/claude-config/plugin install complete-workflow-system@thkt-development-workflows[sow path or feature description]inheritGenerate spec.md only (single artifact) with implementation-ready details.
Use for structure and section order ONLY: [@../templates/spec/workflow-improvement.md]
IMPORTANT:
Auto-detect SOW if not specified:
!`ls -t .claude/workspace/planning/*/sow.md 2>/dev/null | head -1 || ls -t ~/.claude/workspace/planning/*/sow.md 2>/dev/null | head -1 || echo "(no SOW found)"`
If SOW found, reference it for consistency.
Use numeric format [C: X.X] throughout:
| Range | Meaning | Evidence Required |
|---|---|---|
| [C: 0.9+] | Verified | file:line, command output, logs |
| [C: 0.7-0.9] | Inferred | Reasoning basis stated |
| [C: <0.7] | Uncertain | Needs investigation |
Link all elements to SOW Acceptance Criteria:
Implements: AC-001 - Functional requirement traces to ACValidates: FR-001 - Test validates requirementValidates: AC-002 - Non-functional requirement traces to ACFollow Golden Master structure:
Auto-detect frontend features:
Keywords: component, UI, button, form, modal, dialog, card...
Exclude: api endpoint, database, CLI, migration, backend...
If frontend detected, include Component API section with:
Save to same directory as SOW:
.claude/workspace/planning/[same-dir]/spec.md
Display after save:
✅ Spec saved to: .claude/workspace/planning/[path]/spec.md
Based on: sow.md (if used)
# After /sow
/spec
# Auto-detects latest SOW, generates spec.md in same directory
# Standalone
/spec "User registration flow"
# Creates new planning directory with spec.md
After Spec is created:
/code - Implement based on spec/plans - View created documents/audit - Review will reference spec for validation