From superpowers
Creates detailed design documents via parallel sub-agents that research architecture, best practices, BDD scenarios, and synthesize requirements from prior discovery phases.
npx claudepluginhub fradser/dotclaude --plugin superpowersbrainstorming/references/# Phase 3: Design Creation - Detailed Guidance ## Goal Create comprehensive design documents using parallel sub-agents for research and synthesis. ## Actions ### 1. Launch Sub-agents in Parallel Launch using the Agent tool with `subagent_type=general-purpose` to spawn sub-agents simultaneously. **CRITICAL**: Provide complete context in each sub-agent prompt. Sub-agents start with fresh context and do not see your conversation history. ## Sub-agent Strategy by Complexity Scale sub-agent usage based on the complexity assessment from Phase 1 Discovery. ### Simple Complexity No sub-ag...
/designGenerates structured phased workflows for product and engineering design documentation, with milestones, checklists, risks, and completion criteria.
/design-generateGenerates structured technical design document (design_doc.json) at project or feature level, auto-detecting from mega-plan.json or prd.json.
/planGenerates project spec and requirements backlog (no args) or feature FRD grounded in project spec (with feature arg). Tracks progress in tasks/todo.md.
/planOrchestrates multi-agent workflow across analysis and design phases to produce requirements, constraints, NFRs, data model, API contracts, and quickstart guide.
/hatch3r-feature-planDesigns feature plans for new capabilities: drafts user stories, acceptance criteria, data model, API surface, and epic todo.md with sub-issue breakdowns.
Share bugs, ideas, or general feedback.
Create comprehensive design documents using parallel sub-agents for research and synthesis.
Launch using the Agent tool with subagent_type=general-purpose to spawn sub-agents simultaneously.
CRITICAL: Provide complete context in each sub-agent prompt. Sub-agents start with fresh context and do not see your conversation history.
Scale sub-agent usage based on the complexity assessment from Phase 1 Discovery.
No sub-agents. Main agent handles all research and document creation directly — explore codebase, search for best practices, write BDD scenarios, and create design documents in a single pass.
Sub-agent 1: Architecture & Best Practices Research
Research existing patterns, architecture, libraries, security, and performance. Load superpowers:behavior-driven-development skill. Output architecture recommendations, BDD scenarios in Given-When-Then format, testing strategy, and best practices summary.
Sub-agent 2: Context & Requirements Synthesis
Synthesize Phase 1 discovery results and Phase 2 options into a unified context. Output user's original request, discovery results summary, finalized requirements list, success criteria, and rationale for the chosen approach.
Sub-agent 1: Architecture Research
Research existing patterns, architecture, and libraries in the codebase for the chosen approach. Use WebSearch to find latest best practices. Output architecture recommendations with specific files to reference, libraries/frameworks to use or avoid, and codebase patterns to follow.
Sub-agent 2: Best Practices Research
Research best practices, security considerations, and performance patterns for the feature. Load superpowers:behavior-driven-development skill. Output BDD scenarios in Given-When-Then format, testing strategy recommendations, best practices and considerations, and security/performance notes.
Sub-agent 3: Context & Requirements Synthesis
Synthesize Phase 1 discovery results and Phase 2 options into a unified context. Output user's original request, discovery results summary, finalized requirements list, success criteria, and rationale for the chosen approach.
Additional sub-agents: Launch for distinct, research-intensive aspects as needed. Each agent should have a single, clear responsibility and receive complete context.
Use TaskOutput tool to retrieve results from each sub-agent before proceeding to integration.
Review and merge the outputs from all sub-agents:
Merge Strategy:
Conflict Resolution:
File Structure:
docs/plans/YYYY-MM-DD-<topic>-design/
├── _index.md # Main design document (MANDATORY)
├── bdd-specs.md # BDD specifications (MANDATORY)
├── architecture.md # Architecture details (MANDATORY)
├── best-practices.md # Best practices and considerations (MANDATORY)
├── decisions/ # Related ADRs (optional)
│ └── 0001-*.md
└── diagrams/ # Visual artifacts (optional)
├── sequence.png
└── architecture.mmd
_index.md Content Structure:
# Design: <Feature Name>
## Context
User's original request and the Q&A history that led to this design.
## Discovery Results
What was found during the exploration phase.
## Requirements
The finalized requirements and constraints.
## Rationale
Why this design was chosen.
## Detailed Design
Component breakdown, interfaces, and implementation approach.
## Design Documents
- [BDD Specifications](./bdd-specs.md) - Behavior scenarios and testing strategy
- [Architecture](./architecture.md) - System architecture and component details
- [Best Practices](./best-practices.md) - Security, performance, and code quality guidelines
architecture.md Content Structure:
# Architecture for <Feature Name>
## System Overview
High-level architecture description.
## Components
Component breakdown with responsibilities.
## Data Structures
Data models and interfaces.
## Integration Points
How this feature integrates with existing systems.
## Technology Choices
Libraries, frameworks, and patterns chosen with rationale.
bdd-specs.md Content Structure:
# BDD Specifications for <Feature Name>
## Feature: <Feature Name>
### Scenarios
Given-When-Then scenarios covering:
- Happy path
- Edge cases
- Error conditions
## Testing Strategy
Unit, integration, and E2E testing approach.
best-practices.md Content Structure:
# Best Practices for <Feature Name>
## Security Considerations
Security patterns and vulnerabilities to avoid.
## Performance Considerations
Performance patterns and optimizations.
## Code Quality
Coding standards and patterns to follow.
## Common Pitfalls
Anti-patterns and mistakes to avoid.
CRITICAL: You MUST follow this exact folder structure
Required Folder Pattern: docs/plans/YYYY-MM-DD-<topic>-design/
Folder Naming Rules:
YYYY-MM-DD date prefix for chronological ordering2024-02-10-user-auth-design/Required Documents:
_index.md (MANDATORY)bdd-specs.md (MANDATORY)architecture.md (MANDATORY)best-practices.md (MANDATORY)docs/plans/YYYY-MM-DD-<topic>-design/Sub-agent Parallelization:
Integration Quality:
File Organization: