Structured development workflow for systematic task completion - explore, plan, implement, and deliver. The Workflow plugin provides a proven 4-phase development methodology for Claude Code. It guides you from initial requirements exploration through systematic planning, task execution, and final delivery. This workflow ensures thorough analysis, organized implementation, and quality delivery. Cla
Add this skill
npx mdskills install applied-artificial-intelligence/workflowComprehensive 4-phase development methodology with clear commands, state tracking, and project-local persistence
1# Workflow Plugin23Structured development workflow for systematic task completion - explore, plan, implement, and deliver.45## Overview67The Workflow plugin provides a proven 4-phase development methodology for Claude Code. It guides you from initial requirements exploration through systematic planning, task execution, and final delivery. This workflow ensures thorough analysis, organized implementation, and quality delivery.89### Relationship to Claude's Built-in Plan Mode1011Claude Code includes a built-in `EnterPlanMode` that provides enhanced reasoning for planning. **Our workflow complements it**:1213| Feature | Built-in Plan Mode | Our Workflow |14|---------|-------------------|--------------|15| **Storage** | Global `~/.claude/plans/` | Project-local `.claude/work/` |16| **Naming** | Auto-generated (`zany-cooking-wombat`) | Date-based (`2025-11-27_01_feature`) |17| **Execution** | Implements entire plan at once | Incremental via `/next` |18| **State tracking** | None | `state.json` with task progress |19| **Session resume** | Cannot resume mid-plan | Work units persist across handoffs |20| **Parallel execution** | No | `/next --parallel 3` |2122**Best practice**: Use Claude's built-in plan mode *during* `/explore` or `/plan` for enhanced reasoning, while our workflow handles project-local storage and incremental execution. The two work together—you get better planning *and* better organization.2324## The 4-Phase Workflow2526```27/explore → /plan → /next (repeat) → /ship28 ↓ ↓ ↓ ↓29Analyze Design Implement Deliver30```3132### Phase 1: Explore33Understand requirements, analyze codebase, identify constraints and opportunities.3435### Phase 2: Plan36Create detailed implementation plan with ordered tasks, dependencies, and acceptance criteria.3738### Phase 3: Execute39Implement tasks one at a time with /next, completing the plan systematically.4041### Phase 4: Deliver42Ship completed work with validation, documentation, and quality assurance.4344## Commands4546### `/explore [source] [--work-unit ID]`47Explore requirements and codebase with systematic analysis before planning. This is Anthropic's recommended first step for any significant task.4849**What it does**:50- Analyzes requirements from multiple sources (@file, #issue, description, or interactive)51- Explores relevant codebase areas to understand context52- Identifies constraints, dependencies, and risks53- Documents findings for planning phase54- Creates work unit for tracking5556**Usage**:57```bash58/explore # Interactive exploration59/explore "Add user authentication" # From description60/explore @requirements.md # From requirements doc61/explore #123 # From GitHub issue62/explore --work-unit 001 # Use existing work unit63```6465**Thoroughness Levels**:66- `quick`: Basic search and analysis (5-10 minutes)67- `medium`: Moderate exploration with multiple angles (15-25 minutes)68- `very thorough`: Comprehensive analysis across codebase (30-45 minutes)6970**Output**:71- `exploration.md`: Detailed findings and analysis72- `metadata.json`: Work unit tracking information7374**When to use**:75- ✅ Starting any non-trivial feature or bug fix76- ✅ Unclear requirements that need investigation77- ✅ Unfamiliar codebase areas78- ✅ Complex changes with many dependencies7980**When to skip**:81- ❌ Trivial changes (typo fixes, simple updates)82- ❌ Very clear requirements in familiar code83- ❌ Quick experiments or spikes8485### `/plan [--from-requirements | --from-issue #123 | description]`86Create detailed implementation plan with ordered tasks and dependencies using structured reasoning.8788**What it does**:89- Reviews exploration findings (or analyzes requirements directly)90- Breaks work into ordered, manageable tasks91- Identifies dependencies and sequencing92- Defines acceptance criteria for each task93- Creates task tracking state file9495**Usage**:96```bash97/plan # From latest /explore98/plan --from-requirements @specs.md # From requirements doc99/plan --from-issue #123 # From GitHub issue100/plan "Implement OAuth login" # From description101```102103**Plan Structure**:104- **Tasks**: Ordered list with IDs, descriptions, dependencies105- **Dependencies**: Task relationships and sequencing106- **Acceptance Criteria**: How to verify completion107- **Risks**: Potential issues and mitigation strategies108- **Estimates**: Rough time/complexity estimates109110**Output**:111- `implementation-plan.md`: Complete task breakdown112- `state.json`: Task tracking state (pending, in_progress, completed)113114**When to use**:115- ✅ After /explore for complex work116- ✅ Multi-step features requiring coordination117- ✅ Changes affecting multiple files/systems118- ✅ Work that will span multiple sessions119120**When to skip**:121- ❌ Single-file, single-function changes122- ❌ Immediate fixes that are obvious123- ❌ Exploratory work without clear endpoint124125### `/next [--task TASK-ID | --preview | --status]`126Execute the next available task from the implementation plan.127128**What it does**:129- Loads implementation plan and current state130- Identifies next task based on dependencies131- Executes the task completely132- Updates state.json automatically133- Moves to next task when ready134135**Usage**:136```bash137/next # Execute next available task138/next --preview # Show what's next without executing139/next --status # Show plan progress140/next --task TASK-005 # Execute specific task141```142143**Task Execution Flow**:1441. Load plan and check dependencies1452. Display current task details1463. Execute implementation1474. Verify completion against acceptance criteria1485. Update state.json (pending → in_progress → completed)1496. Show progress and next task150151**States**:152- `pending`: Not yet started153- `in_progress`: Currently working on154- `completed`: Finished and verified155- `blocked`: Waiting on dependencies156157**When to use**:158- ✅ Systematic implementation of planned work159- ✅ Multiple tasks that should be done in order160- ✅ Work that needs tracking across sessions161- ✅ Complex features with many steps162163**Tips**:164- Run `/next --status` frequently to see progress165- Use `/next --preview` before starting if unsure166- Tasks complete in dependency order automatically167168### `/ship [--preview | --pr | --commit | --deploy]`169Deliver completed work with validation and comprehensive documentation.170171**What it does**:172- Reviews completed implementation plan173- Validates all acceptance criteria met174- Runs tests and quality checks175- Creates comprehensive documentation176- Generates git commits or pull requests177- Produces delivery summary178179**Usage**:180```bash181/ship # Full delivery workflow182/ship --preview # Preview what will be delivered183/ship --commit # Create git commit only184/ship --pr # Create pull request185/ship --deploy # Prepare for deployment186```187188**Delivery Checklist**:189- ✅ All planned tasks completed190- ✅ Tests passing191- ✅ Code reviewed (self or automated)192- ✅ Documentation updated193- ✅ Breaking changes documented194- ✅ Migration guides (if needed)195196**Output**:197- `COMPLETION_SUMMARY.md`: What was delivered and how to use it198- Git commit or pull request (if requested)199- Test results and quality metrics200- Deployment instructions (if applicable)201202**When to use**:203- ✅ Implementation plan complete204- ✅ Feature ready for review/merge205- ✅ All acceptance criteria met206- ✅ Quality checks passed207208**Options**:209- `--preview`: See what will be shipped without doing it210- `--commit`: Create git commit with generated message211- `--pr`: Create GitHub pull request with summary212- `--deploy`: Include deployment checklist and instructions213214### `/work [subcommand] [args]`215Unified work management - list units, continue work, save checkpoints, and switch contexts.216217**What it does**:218- Lists active, paused, and completed work units219- Continues work from previous sessions220- Creates checkpoints for context switching221- Switches between parallel work streams222223**Usage**:224```bash225/work # List all work units226/work continue # Resume last active work unit227/work checkpoint "Switching to bug fix" # Save checkpoint before context switch228/work switch 002 # Switch to work unit 002229/work active # Show only active work units230/work completed # Show completed work units231```232233**When to use**:234- ✅ Managing multiple parallel work streams235- ✅ Context switching between tasks236- ✅ Resuming work after interruptions237- ✅ Tracking work unit status238239### `/spike [topic] [timebox]`240Time-boxed exploration in isolated branch for investigating uncertain approaches.241242**What it does**:243- Creates isolated git branch for experimentation244- Time-boxes exploration (default: 2 hours)245- Documents findings and recommendations246- Easy to merge or discard results247248**Usage**:249```bash250/spike "GraphQL vs REST API" 2h # 2-hour spike251/spike "Redis caching strategy" 1h # 1-hour spike252/spike "New authentication library" # Default 2-hour spike253```254255**Output**:256- Isolated git branch (`spike/topic-name`)257- Findings document with recommendations258- Code examples (if applicable)259- Decision: proceed, modify, or abandon260261**When to use**:262- ✅ High uncertainty in approach263- ✅ Need to compare multiple solutions264- ✅ Investigating new libraries or patterns265- ✅ Risk mitigation before committing to design266267**Benefits**:268- Isolated from main work (git branch)269- Time-boxed to prevent rabbit holes270- Documented findings for future reference271- Easy to discard if approach doesn't work272273## Complete Workflow Example274275### Example: Adding User Authentication276277```bash278# Phase 1: Explore279/explore "Add JWT-based authentication to API"280281# Output: exploration.md with findings:282# - Existing auth middleware283# - JWT library already in dependencies284# - 3 endpoints need protection285# - User model needs password hashing286287# Phase 2: Plan288/plan289290# Output: implementation-plan.md with 6 tasks:291# TASK-001: Add password hashing to User model292# TASK-002: Create JWT token generation utilities293# TASK-003: Implement login endpoint294# TASK-004: Create auth middleware295# TASK-005: Protect existing endpoints296# TASK-006: Add integration tests297298# Phase 3: Execute299/next --status300# Shows: TASK-001 ready, others pending301302/next303# Implements TASK-001, updates state.json304305/next306# Implements TASK-002 (dependency of TASK-001 complete)307308/next309# ... continues through all tasks310311# Phase 4: Deliver312/ship --pr313# Creates pull request with:314# - Summary of 6 completed tasks315# - Test results (all passing)316# - Breaking changes documentation317# - Migration guide for existing users318```319320## Integration with Other Plugins321322### System Plugin323- Uses `/status` to show plan progress324- Uses `/setup` for project initialization325- Uses `/audit` for framework compliance326327### Agents Plugin328- Uses `/agent` for specialized exploration and analysis329- Uses `/serena` for semantic code understanding330331### Development Plugin332- `/test` runs during /ship validation333- `/review` provides code quality feedback334- `/fix` helps resolve issues found during execution335336### Memory Plugin337- Auto-loads memory context via @imports338- Preserves decisions in `decisions.md`339- Documents lessons in `lessons_learned.md`340341### Git Plugin342- `/ship --commit` uses `/git commit`343- `/ship --pr` uses `/git pr`344- Automatic commit message generation345346## Work Unit Structure347348The workflow creates and maintains this structure:349350```351.claude/work/current/[work-unit]/352├── metadata.json # Work unit metadata353├── exploration.md # /explore findings354├── implementation-plan.md # /plan task breakdown355├── state.json # /next task tracking356└── COMPLETION_SUMMARY.md # /ship delivery summary357```358359## Configuration360361### Exploration Defaults (`.claude/config.json`)362```json363{364 "workflow": {365 "explore": {366 "defaultThoroughness": "medium",367 "autoCreateWorkUnit": true,368 "explorationAgent": "Explore"369 }370 }371}372```373374### Planning Defaults375```json376{377 "workflow": {378 "plan": {379 "useSequentialThinking": true,380 "includeTestTasks": true,381 "includeDocTasks": true382 }383 }384}385```386387### Delivery Defaults388```json389{390 "workflow": {391 "ship": {392 "requireTests": true,393 "requireDocs": true,394 "autoCommit": false,395 "autoPR": false396 }397 }398}399```400401## Dependencies402403### Required Plugins404- **claude-code-system** (^1.0.0): System status and configuration405- **claude-code-memory** (^1.0.0): Memory context loading406407### Optional MCP Tools408- **Sequential Thinking**: Enhanced planning and exploration analysis409- **Serena**: Semantic code understanding for exploration410- **Firecrawl**: Web research for requirements gathering411412**Graceful Degradation**: All commands work without MCP tools.413414## Best Practices415416### When to Use Full Workflow417418✅ **Use /explore → /plan → /next → /ship for**:419- Multi-file features420- Unfamiliar codebase areas421- Complex business logic422- Work spanning multiple sessions423- Team collaboration (plan serves as spec)424425### When to Skip Workflow426427❌ **Skip workflow for**:428- Single-line fixes429- Documentation updates430- Typo corrections431- Configuration tweaks432- Quick experiments433434### Workflow Variations435436**Quick Mode** (skip /explore):437```bash438/plan "Simple, clear task"439/next440/ship --commit441```442443**Investigation Mode** (explore only):444```bash445/explore "Complex problem"446# Review findings, decide approach447# May not lead to implementation448```449450**Iterative Mode** (re-plan as you learn):451```bash452/explore453/plan454/next455# Discover new requirements456/plan --update # Adjust plan457/next458/ship459```460461## Troubleshooting462463### /explore finds nothing464- Broaden search terms465- Use `very thorough` mode466- Manually specify file patterns to search467- Check if you're in correct directory468469### /plan creates too many tasks470- Tasks should be 30min - 2hr each471- Merge small tasks472- Use subtasks in descriptions473474### /next shows "no tasks available"475- Run `/next --status` to check dependencies476- Tasks may be blocked waiting on others477- Check `state.json` for task states478479### /ship validation fails480- Review acceptance criteria in plan481- Run tests manually: `/test`482- Check code quality: `/review`483- Fix issues: `/fix`484485## Metrics and Success486487The workflow tracks:488- **Exploration time**: How long /explore takes489- **Task completion rate**: Completed vs. total tasks490- **Plan accuracy**: How often plan matches reality491- **Quality metrics**: Test coverage, review feedback492493View with:494```bash495/status verbose496/performance497```498499## Examples500501See `examples/` directory for complete workflow examples:502- `examples/feature-development/` - Full feature workflow503- `examples/bug-fix/` - Systematic bug resolution504- `examples/refactoring/` - Code improvement workflow505506## Support507508- **Documentation**: [Workflow Guide](../../docs/guides/workflow.md)509- **Issues**: [GitHub Issues](https://github.com/applied-artificial-intelligence/claude-code-toolkit/issues)510- **Discussions**: [GitHub Discussions](https://github.com/applied-artificial-intelligence/claude-code-toolkit/discussions)511512## License513514MIT License - see [LICENSE](../../LICENSE) for details.515516---517518**Version**: 1.0.0519**Category**: Workflow520**Dependencies**: core (^1.0.0), memory (^1.0.0)521**MCP Tools**: Optional (sequential-thinking, serena, firecrawl)522
Full transparency — inspect the skill content before installing.