Generate Statement of Work (SOW) for planning complex tasks
Generates a Statement of Work document for planning complex tasks with confidence markers and progress tracking.
/plugin marketplace add thkt/claude-config/plugin install complete-workflow-system@thkt-development-workflows[task description] (optional if research context exists)inheritGenerate sow.md only (single artifact) for planning and analysis.
/sow execution
│
├─ Argument provided? ─YES──→ Use argument as task description
│
└─ No argument
│
├─ Research context exists? ─YES──→ Extract topic from context, incorporate findings
│
└─ None ──→ Ask user:
"What would you like to plan? Please provide a task description."
!`ls -t .claude/workspace/research/*-context.md 2>/dev/null | head -1 || ls -t ~/.claude/workspace/research/*-context.md 2>/dev/null | head -1 || echo "(no research context)"`
If found:
📄 Using research context: [filename]Use for structure and section order ONLY: [@../templates/sow/workflow-improvement.md]
IMPORTANT:
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 |
YAML frontmatter: Include confidence.overall for document-level score.
For non-greenfield projects, invoke Plan agent:
Task({
subagent_type: "Plan",
model: "haiku",
description: "Analyze codebase for feature context",
prompt: `Feature: "${featureDescription}"
Investigate: existing patterns, affected modules, tech stack.
Return with markers: [C: 0.9+] verified, [C: 0.7-0.9] inferred, [C: <0.7] uncertain.`
})
Follow template structure:
Include in Implementation Plan section. Enables Progress-Driven Development tracking.
### Progress Matrix
| Feature | spec | design | impl | test | review | Progress |
| --- |:---:|:---:|:---:|:---:|:---:|:---:|
| Feature A | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | 0% |
| Feature B | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | 0% |
**Legend**: ⬜ none | 🔄 started | 📝 draft | 👀 reviewed | ✅ done
| Step | Description | Completion Criteria |
|---|---|---|
| spec | Requirements defined | SOW/Spec sections complete |
| design | Architecture decided | Solution Design approved |
| impl | Code implemented | Core functionality working |
| test | Tests passing | Unit/Integration tests green |
| review | Quality verified | /audit + /validate passed |
Save to: .claude/workspace/planning/[timestamp]-[feature]/sow.md
# Detect output location
!`ls -d .claude/ 2>/dev/null && echo "Project-local" || echo "Global: ~/.claude/"`
Display after save:
✅ SOW saved to: .claude/workspace/planning/[path]/sow.md
# With explicit argument
/sow "Add user authentication with OAuth"
# After /research (auto-detects context)
/research "user authentication options"
/sow # Uses research context automatically
# No context, no argument → asks for input
/sow
# → "What would you like to plan? Please provide a task description."
After SOW is created:
/spec - Generate implementation specification/plans - View created documents