skills/workflow/SKILL.md
Systematic task orchestration for complex multi-step tasks. Triggers automatically when detecting: complex task, multi-step work, coordinate, orchestrate, break down. Guides through Understand → Strategy → Plan → Execute → Verify phases for comprehensive systematic approach.
npx skillsauth add arpitnath/claude-capsule-kit workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a Workflow Orchestrator responsible for guiding systematic execution of complex multi-step tasks through a proven 5-phase methodology.
Problem: Complex tasks are often approached reactively—jumping straight to execution without understanding context, choosing tools, or planning steps.
Solution: Systematic 5-phase workflow ensures comprehensive, efficient execution with proper context, optimal tooling, and verification.
Auto-triggers on keywords:
Complexity indicators:
Manual invocation: /workflow
Goal: Build complete context before acting
Steps:
Review Injected Context
Context from previous sessions is automatically injected at session start by Capsule's session-start.js hook. Review it for:
Use Progressive Reader for Large Files
$HOME/.claude/bin/progressive-reader --path <file> --list
$HOME/.claude/bin/progressive-reader --path <file> --chunk <N>
Launch Specialist Agents in PARALLEL
Task(subagent_type="architecture-explorer", description="How does module X work?")
Task(subagent_type="database-navigator", description="Schema structure?")
Deliverable: Clear problem statement, full context, identified gaps
Goal: Choose optimal approach with trade-off analysis
Decision Matrix:
Tools Strategy:
query-deps, impact-analysisprogressive-readerfind-circularfind-dead-codeAgent Strategy:
error-detective (RCA) + debugger (investigation)architecture-explorerrefactoring-specialist + impact-analysissecurity-engineerdatabase-navigator + database-architectApproach Strategy:
Parallelism Decision:
Can sub-tasks run independently?
YES → Spawn agents in parallel (single message, multiple Task calls)
NO → Sequential execution (wait for dependencies)
Deliverable:
STRATEGY:
- Tools: [query-deps, progressive-reader]
- Agents: [architecture-explorer (parallel), error-detective (parallel)]
- Approach: Delegate understanding, direct implementation
- Parallelism: 2 agents in parallel for context, then sequential fix
Goal: Break strategy into concrete, trackable steps
Using TodoWrite:
TodoWrite([
{
"content": "Understand current architecture",
"status": "pending",
"activeForm": "Understanding architecture"
},
{
"content": "Analyze dependencies and impact",
"status": "pending",
"activeForm": "Analyzing dependencies"
},
{
"content": "Implement core changes",
"status": "pending",
"activeForm": "Implementing changes"
},
{
"content": "Verify with tests and code review",
"status": "pending",
"activeForm": "Verifying changes"
}
])
Plan Structure:
Deliverable: Step-by-step plan with TodoWrite tracking, dependencies mapped
Goal: Implement plan with coordinated orchestration
Execution Pattern:
Mark task in_progress
TodoUpdate({taskId: "1", status: "in_progress"})
Execute step (using strategy from Phase 2)
Mark task completed
TodoUpdate({taskId: "1", status: "completed"})
Move to next step
Parallel Agent Coordination:
# Spawn multiple agents in SINGLE message
Task(subagent_type="error-detective", prompt="Analyze error X")
Task(subagent_type="code-reviewer", prompt="Review changes in Y")
Task(subagent_type="architecture-explorer", prompt="Understand flow Z")
# Wait for all to complete
# Synthesize findings
# Proceed with integrated understanding
Error Handling:
Deliverable: Completed implementation with TodoWrite fully tracked
Goal: Ensure quality and persistence
Verification Checklist:
Success Criteria Met?
Code Review (if applicable)
Task(subagent_type="code-reviewer", prompt="Review changes for bugs, security, quality")
Tests Pass?
# Run relevant tests
npm test
pytest tests/
go test ./...
Impact Analysis
bash $HOME/.claude/cck/tools/impact-analysis/impact-analysis.sh <changed-file>
Deliverable: Verified, tested, documented solution
Context from previous sessions is automatically injected by session-start.js. File operations and sub-agent results are captured automatically by post-tool-use.js. No manual logging needed.
Task: "Add user authentication to the app"
Phase 1: UNDERSTAND
architecture-explorer: How is app structured?database-navigator: What's the user schema?Phase 2: STRATEGY
query-deps (understand module dependencies)security-engineer (auth best practices), architecture-explorer (integration points)Phase 3: PLAN
1. Understand current user model (pending)
2. Design auth flow (JWT vs sessions) (pending)
3. Implement auth middleware (pending)
4. Add login/logout endpoints (pending)
5. Update tests (pending)
6. Code review before commit (pending)
Phase 4: EXECUTE
Phase 5: VERIFY
code-reviewer → APPROVE ✓Task: "Tests failing in CI but passing locally"
Phase 1: UNDERSTAND
error-detective: Analyze test failure logsarchitecture-explorer: Understand test setupPhase 2: STRATEGY
grep (search for CI-specific config)error-detective (RCA), debugger (if RCA unclear), devops-sre (CI expertise)Phase 3: PLAN
1. Get RCA from error-detective (pending)
2. Compare local vs CI environments (pending)
3. Apply fix (pending)
4. Verify in CI (pending)
Phase 4: EXECUTE
Phase 5: VERIFY
✅ All 5 phases completed (not skipped) ✅ Context checked before work (Capsule injection + files) ✅ Strategy documented (tools + agents + approach) ✅ Plan created with TodoWrite ✅ Verification performed (tests + review)
❌ Skipping Phase 1 (Understand): Jumping to execution without context leads to rework ❌ No Strategy (Phase 2): Random tool/agent selection is inefficient ❌ Missing Plan (Phase 3): Untracked work leads to forgotten steps ❌ Sequential when Parallel possible: Wastes time, agents can run concurrently ❌ No Verification (Phase 5): Bugs ship, knowledge lost
This skill makes you systematic. When facing complex tasks:
The workflow is the product. Follow it, and complex tasks become manageable.
testing
Decision matrix for choosing optimal approach to any task. Helps Claude decide when to delegate to sub-agents vs. working directly. Use when starting a new task or unsure of best approach.
development
Build deep codebase understanding using Capsule context, progressive-reader, and specialist agents instead of overwhelming main context. Triggers on: don't have context, understand codebase, learn about, need background. Implements progressive context building.
development
Systematic debugging using error-detective and debugger agents instead of manual investigation. Triggers automatically on: error, bug, broken, failing, exception, stack trace, test failure. Orchestrates RCA-first approach with parallel agent investigation.
data-ai
Orchestrate multi-agent teams for parallel multi-branch work. Triggers on: team, crew, launch team, parallel agents, multi-branch, agent teammates, coordinate work, worktree. Handles config, worktree setup, teammate spawning, and task coordination.