skills/pipeline/SKILL.md
Chain agents together in sequential or branching workflows with data passing
npx skillsauth add MeroZemory/oh-my-droid pipelineInstall 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.
The pipeline skill enables chaining multiple agents together in defined workflows where the output of one agent becomes the input to the next. This creates powerful agent pipelines similar to Unix pipes but designed for AI agent orchestration.
The simplest form: Agent A's output flows to Agent B, which flows to Agent C.
explore -> architect -> executor
Flow:
Route to different agents based on output conditions.
explore -> {
if "complex refactoring" -> architect -> executor-high
if "simple change" -> executor-low
if "UI work" -> designer -> executor
}
Run multiple agents in parallel, merge their outputs.
parallel(explore, researcher) -> architect -> executor
Purpose: Comprehensive code review and implementation
/pipeline review <task>
Stages:
explore - Find relevant code and patternsarchitect - Analyze architecture and design implicationscritic - Review and critique the analysisexecutor - Implement with full contextUse for: Major features, refactorings, complex changes
Purpose: Planned implementation with testing
/pipeline implement <task>
Stages:
planner - Create detailed implementation planexecutor - Implement the plantdd-guide - Add/verify testsUse for: New features with clear requirements
Purpose: Systematic debugging workflow
/pipeline debug <issue>
Stages:
explore - Locate error locations and related codearchitect - Analyze root causebuild-fixer - Apply fixes and verifyUse for: Bugs, build errors, test failures
Purpose: External research + internal analysis
/pipeline research <topic>
Stages:
parallel(researcher, explore) - External docs + internal codearchitect - Synthesize findingswriter - Document recommendationsUse for: Technology decisions, API integrations
Purpose: Safe, verified refactoring
/pipeline refactor <target>
Stages:
explore - Find all usages and dependenciesarchitect-medium - Design refactoring strategyexecutor-high - Execute refactoringqa-tester - Verify no regressionsUse for: Architectural changes, API redesigns
Purpose: Security audit and fixes
/pipeline security <scope>
Stages:
explore - Find potential vulnerabilitiessecurity-reviewer - Audit and identify issuesexecutor - Implement fixessecurity-reviewer-low - Re-verifyUse for: Security reviews, vulnerability fixes
/pipeline agent1 -> agent2 -> agent3 "task description"
Example:
/pipeline explore -> architect -> executor "add authentication"
/pipeline explore:haiku -> architect:opus -> executor:sonnet "optimize performance"
/pipeline explore -> (
complexity:high -> architect:opus -> executor-high:opus
complexity:medium -> executor:sonnet
complexity:low -> executor-low:haiku
) "fix reported issues"
/pipeline [explore, researcher] -> architect -> executor "implement OAuth"
Each agent in the pipeline receives structured context from the previous stage:
{
"pipeline_context": {
"original_task": "user's original request",
"previous_stages": [
{
"agent": "explore",
"model": "haiku",
"findings": "...",
"files_identified": ["src/auth.ts", "src/user.ts"]
}
],
"current_stage": "architect",
"next_stage": "executor"
},
"task": "specific task for this agent"
}
When an agent fails, the pipeline can:
Configuration:
/pipeline explore -> architect -> executor --retry=3 --on-error=abort
Pattern 1: Fallback to Higher Tier
executor-low -> on-error -> executor:sonnet
Pattern 2: Consult Architect
executor -> on-error -> architect -> executor
Pattern 3: Human-in-the-Loop
any-stage -> on-error -> pause-for-user-input
Pipelines maintain state in .omd/pipeline-state.json:
{
"pipeline_id": "uuid",
"name": "review",
"active": true,
"current_stage": 2,
"stages": [
{
"name": "explore",
"agent": "explore",
"model": "haiku",
"status": "completed",
"output": "..."
},
{
"name": "architect",
"agent": "architect",
"model": "opus",
"status": "in_progress",
"started_at": "2026-01-23T10:30:00Z"
},
{
"name": "executor",
"agent": "executor",
"model": "sonnet",
"status": "pending"
}
],
"task": "original user task",
"created_at": "2026-01-23T10:25:00Z"
}
Before pipeline completion, verify:
Based on agent output, route to different paths:
explore -> {
if files_found > 5 -> architect:opus -> executor-high:opus
if files_found <= 5 -> executor:sonnet
}
Repeat stages until condition met:
repeat_until(tests_pass) {
executor -> qa-tester
}
When parallel agents complete:
/pipeline review "add rate limiting to API"
→ Triggers: explore → architect → critic → executor
/pipeline debug "login fails with OAuth"
→ Triggers: explore → architect → build-fixer
/pipeline explore:haiku -> architect:opus -> executor:sonnet -> tdd-guide:sonnet "refactor auth module"
/pipeline research "implement GraphQL subscriptions"
→ Triggers: parallel(researcher, explore) → architect → writer
Stop active pipeline:
/pipeline cancel
Or use the general cancel command which detects active pipeline.
Pipelines can be used within other skills:
Check: .omd/pipeline-state.json for current stage
Fix: Resume with /pipeline resume or cancel and restart
Check: Retry count and error messages Fix: Route to higher-tier agent or add architect consultation
Check: Data passing structure in agent prompts
Fix: Ensure each agent is prompted with pipeline_context
The pipeline orchestrator:
IMPORTANT: Delete state files on completion - do NOT just set active: false
When pipeline completes (all stages done or cancelled):
# Delete pipeline state file
rm -f .omd/state/pipeline-state.json
This ensures clean state for future sessions. Stale state files with active: false should not be left behind.
This skill activates when:
/pipeline commandExplicit invocation:
/pipeline review "task"
Auto-detection:
"First explore the codebase, then architect should analyze it, then executor implements"
→ Automatically creates pipeline: explore → architect → executor
documentation
Agentic memory system for writers - track characters, relationships, scenes, and themes
development
Decompose multi-step tasks into parallel sub-agent workloads, route each sub-task to the cheapest capable model tier (Haiku/Sonnet/Opus), run long-running commands in the background, and verify all deliverables before stopping. Use when the user asks to 'go fast', 'parallelize', 'ultrawork', or when a request contains 3+ independent sub-tasks that benefit from concurrent execution.
tools
QA cycling workflow - test, verify, fix, repeat until goal met
development
Parallel autopilot with file ownership partitioning