A Claude Code workspace configured with specialized AI agents to help create comprehensive Statement of Work documents from project requirements.
This is a Claude Code workspace setup that orchestrates multiple AI agents to collaborate on creating professional SOW documents. The system uses:
- Custom AI Agents: Specialized personas for business analysis and system architecture
- Structured Workflows: Step-by-step processes for requirement gathering, specification writing, and work planning
- Document Generation: Automated creation of specs, work items, risks, and assumptions
Located in .claude/agents/:
-
business-analyst.md: Expert Business Analyst agent with 15+ years experience in requirements engineering. Handles:
- Requirements discovery and clarification
- Asking probing questions to uncover true needs
- Converting requirements into testable specifications
- Documentation in structured scenario format
-
system-architect.md: Experienced Software Architect with 15+ years designing production systems. Handles:
- Analyzing codebases to identify implementation gaps
- Breaking down specs into work items
- Estimating development effort
- Identifying risks and assumptions
- Prioritizing battle-tested technologies and patterns
Located in .claude/commands/:
- sow.md: Main orchestration command that guides the entire SOW creation process
-
Start the SOW Command:
Use the /sow command in Claude Code -
Provide Requirements:
- Describe your project, feature, or system requirements
- The business-analyst agent will ask clarifying questions
-
Answer Clarifying Questions:
- The BA will probe for unclear requirements
- Provide answers to help refine the specifications
-
Review Specifications:
- The BA will generate a specs document with format:
- Requirement statements (SHALL format)
- Scenarios with WHEN/THEN conditions
- File created:
YYYY-MM-DD-[project-title]-specs.md
- The BA will generate a specs document with format:
-
Add Codebase Context (if applicable):
- Use
/add-dirto add relevant codebase directories - The system-architect will analyze the code
- Use
-
Review Work Items:
- The architect will identify gaps and create work items
- Development effort estimates are provided (assumes senior dev + AI)
- Files created:
YYYY-MM-DD-[project-title]-work-items.mdYYYY-MM-DD-[project-title]-risks-and-assumptions.md
-
Get CSV Outputs:
- Automatically generates CSV files for project management:
YYYY-MM-DD-[project-title]-work-items.csvYYYY-MM-DD-[project-title]-risks.csvYYYY-MM-DD-[project-title]-assumptions.csv
- Automatically generates CSV files for project management:
The SOW command orchestrates these steps automatically:
- BA analyzes requirements and asks questions → STOP
- BA converts requirements to specs → STOP
- User adds codebase directories via
/add-dir→ STOP - Architect analyzes codebase and identifies gaps
- Architect creates work items with effort estimates
- Architect documents risks and assumptions
- Auto-generate CSV files for all outputs
All generated documents are stored in history/[project-name]/:
- Specs:
YYYY-MM-DD-[project-title]-specs.md- Testable requirements with scenarios - Work Items:
YYYY-MM-DD-[project-title]-work-items.md- Implementation tasks with estimates - Risks & Assumptions:
YYYY-MM-DD-[project-title]-risks-and-assumptions.md- Project risks and assumptions - CSVs: Spreadsheet-ready formats for project management tools
Requirements follow this structure:
### Requirement: [Feature Name]
The system SHALL [clear, testable requirement statement]
#### Scenario: [Scenario Name]
- **WHEN** [preconditions and actions]
- **THEN** [expected outcomes and system behavior]
#### Scenario: [Edge Case Name]
- **WHEN** [corner case condition]
- **THEN** [expected system response]Located in .claude/settings.local.json:
{
"permissions": {
"allow": [
"Bash(/tmp/parse_markdown.py:*)",
"Bash(python3:*)",
"Bash(wc:*)"
]
}
}- Be Thorough with Initial Requirements: The more context you provide upfront, the fewer clarification rounds needed
- Answer BA Questions Carefully: The quality of specs depends on clear answers
- Add Relevant Codebase: Only include directories relevant to the project for accurate gap analysis
- Review Each Stop Point: The workflow has built-in stops for your review and approval
- Keep Documents Organized: All outputs go into
history/[project-name]/for version control
- 5 Whys technique for root cause analysis
- User story mapping
- MoSCoW prioritization
- SMART requirements validation
- Non-functional requirements elicitation
- Proven technology patterns (3+ years production use)
- Operational complexity analysis
- Scalability and performance planning
- Security and compliance considerations
- Risk identification and mitigation strategies
When enhancing this workspace:
- Update agent prompts in
.claude/agents/for improved behavior - Modify workflow in
.claude/commands/sow.mdfor process changes - Update permissions in
.claude/settings.local.jsonas needed - Document changes in this README