---
description: "Execute SPARC methodology phases"
argument-hint: "<phase> <task description>"
allowed-tools: ["mcp__claude-flow-novice__task_orchestrate", "mcp__claude-flow-novice__agent_spawn"]
---

# SPARC Methodology Execution

Execute systematic development phases using SPARC methodology.

**Phase**: $1
**Task**: $2

**SPARC Phases**:

## Specification (spec)
- Define clear requirements and acceptance criteria
- Create user stories and use cases
- Identify constraints and assumptions
- Specify input/output requirements

## Pseudocode (pseudo)
- Break down problem into logical steps
- Write high-level algorithm pseudocode
- Define data structures and flow
- Plan error handling and edge cases

## Architecture (arch)
- Design system architecture and components
- Define interfaces and APIs
- Choose appropriate patterns and technologies
- Plan data flow and storage

## Refinement (refine)
- Review and improve the design
- Optimize algorithms and data structures
- Add comprehensive error handling
- Enhance documentation

## Completion (complete)
- Implement the final solution
- Write comprehensive tests
- Perform integration testing
- Prepare for production deployment

**Execute the specified SPARC phase for the given task with detailed analysis and recommendations.**