Workflow Commands
One-Liner
Workflow commands are the execution engine of Claude Code Workflow — providing complete workflow support from lightweight tasks to complex projects.
Command List
Lightweight Workflows
| Command | Function | Syntax |
|---|---|---|
lite-plan | Lightweight interactive planning workflow | /workflow-lite-plan [-y] [-e] "task" |
Standard Workflows
| Command | Function | Syntax |
|---|---|---|
plan | 5-phase planning workflow | /workflow-plan [-y] "description"|file.md |
execute | Coordinate agent execution of workflow tasks | /workflow-execute [-y] [--resume-session=ID] |
replan | Interactive workflow replanning | /workflow:replan [-y] [--session ID] [task-id] "requirement" |
Collaborative Workflows
| Command | Function | Syntax |
|---|---|---|
multi-cli-plan | Multi-CLI collaborative planning | /workflow-multi-cli-plan [-y] <task> [--max-rounds=N] |
brainstorm-with-file | Interactive brainstorming | /workflow:brainstorm-with-file [-y] [-c] "idea" |
analyze-with-file | Interactive collaborative analysis | /workflow:analyze-with-file [-y] [-c] "topic" |
debug-with-file | Interactive hypothesis-driven debugging | /workflow:debug-with-file [-y] "bug description" |
unified-execute-with-file | Universal execution engine | /workflow:unified-execute-with-file [-y] [-p path] [context] |
TDD Workflows
| Command | Function | Syntax |
|---|---|---|
tdd-plan | TDD planning workflow | /workflow-tdd-plan "feature description" |
tdd-verify | Verify TDD workflow compliance | /workflow-tdd-verify [--session ID] |
Test Workflows
| Command | Function | Syntax |
|---|---|---|
test-fix-gen | Create test-fix workflow session | /workflow-test-fix (session-id|"description"|file.md) |
test-gen | Create test session from implementation session | /workflow:test-gen source-session-id |
test-cycle-execute | Execute test-fix workflow | /workflow-test-fix [--resume-session=ID] |
Review Workflows
| Command | Function | Syntax |
|---|---|---|
review | Post-implementation review | /workflow:review [--type=type] [--archived] [session-id] |
review-module-cycle | Standalone multi-dimensional code review | /workflow:review-module-cycle <path> [--dimensions=dimensions] |
review-session-cycle | Session-based review | /workflow:review-session-cycle [session-id] [--dimensions=dimensions] |
review-cycle-fix | Auto-fix review findings | /workflow:review-cycle-fix <export-file|review-dir> |
Specialized Workflows
| Command | Function | Syntax |
|---|---|---|
clean | Smart code cleanup | /workflow:clean [-y] [--dry-run] ["focus area"] |
init | Initialize project state | /workflow:spec:setup [--regenerate] |
plan-verify | Verify planning consistency | /workflow-plan-verify [--session session-id] |
Command Details
lite-plan
Function: Lightweight interactive planning and execution workflow (Phase 1: plan, Phase 2: execute), supporting in-memory planning, code exploration, and automatic execution after confirmation.
Syntax:
/workflow-lite-plan [-y|--yes] [-e|--explore] "task description" | file.mdOptions:
-e, --explore: Execute code exploration first
Examples:
# Basic planning
/workflow-lite-plan "add user avatar feature"
# With exploration
/workflow-lite-plan -e "refactor authentication module"plan
Function: 5-phase planning workflow, outputting IMPL_PLAN.md and task JSON.
Syntax:
/workflow-plan [-y|--yes] "text description" | file.mdPhases:
- Session initialization
- Context collection
- Specification loading
- Task generation
- Verification/replanning
Examples:
# Plan from description
/workflow-plan "implement user notification system"
# Plan from file
/workflow-plan requirements.mdexecute
Function: Coordinate agent execution of workflow tasks, supporting automatic session discovery, parallel task processing, and state tracking.
Syntax:
/workflow-execute [-y|--yes] [--resume-session="session-id"]Examples:
# Execute current session
/workflow-execute
# Resume and execute session
/workflow-execute --resume-session=WFS-2024-01-15replan
Function: Interactive workflow replanning, supporting session-level artifact updates and scope clarification.
Syntax:
/workflow:replan [-y|--yes] [--session session-id] [task-id] "requirement" | file.md [--interactive]Examples:
# Replan entire session
/workflow:replan --session=WFS-xxx "add user permission checks"
# Replan specific task
/workflow:replan TASK-001 "change to use RBAC"multi-cli-plan
Function: Multi-CLI collaborative planning workflow, using ACE context collection and iterative cross-validation.
Syntax:
/workflow-multi-cli-plan [-y|--yes] <task description> [--max-rounds=3] [--tools=gemini,codex] [--mode=parallel|serial]Options:
--max-rounds=N: Maximum discussion rounds--tools=tools: CLI tools to use--mode=mode: Parallel or serial mode
Examples:
# Multi-CLI planning
/workflow-multi-cli-plan "design microservice architecture"
# Specify tools and rounds
/workflow-multi-cli-plan --tools=gemini,codex --max-rounds=5 "database migration plan"brainstorm-with-file
Function: Interactive brainstorming, multi-CLI collaboration, idea expansion, and documented thinking evolution.
Syntax:
/workflow:brainstorm-with-file [-y|--yes] [-c|--continue] [-m|--mode creative|structured] "idea or topic"Options:
-c, --continue: Continue existing session-m, --mode=mode: creative or structured
Examples:
# Creative brainstorming
/workflow:brainstorm-with-file --mode creative "user growth strategies"
# Structured brainstorming
/workflow:brainstorm-with-file --mode structured "API versioning approach"analyze-with-file
Function: Interactive collaborative analysis with documented discussion, CLI-assisted exploration, and evolving understanding.
Syntax:
/workflow:analyze-with-file [-y|--yes] [-c|--continue] "topic or question"Examples:
# Analyze topic
/workflow:analyze-with-file "authentication architecture design"
# Continue discussion
/workflow:analyze-with-file -cdebug-with-file
Function: Interactive hypothesis-driven debugging with documented exploration, understanding evolution, and Gemini-assisted correction.
Syntax:
/workflow:debug-with-file [-y|--yes] "bug description or error message"Examples:
# Debug bug
/workflow:debug-with-file "WebSocket connection randomly disconnects"
# Debug error
/workflow:debug-with-file "TypeError: Cannot read property 'id'"unified-execute-with-file
Function: Universal execution engine consuming any planning/brainstorming/analysis output, supporting minimal progress tracking, multi-agent coordination, and incremental execution.
Syntax:
/workflow:unified-execute-with-file [-y|--yes] [-p|--plan <path>] [-m|--mode sequential|parallel] ["execution context"]Examples:
# Execute plan
/workflow:unified-execute-with-file -p plan.md
# Parallel execution
/workflow:unified-execute-with-file -m parallel