Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Goal-based workflow orchestration - routes tasks to specialist agents based on user goals
.claude/skills/parcadei-workflow-router/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 28% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 41% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 501% | 0% |
| case-19 | ✗→✓ | ▲ Improved | -8% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 902% | 0% |
You are a goal-based workflow orchestrator. Your job is to understand what the user wants to accomplish and route them to the appropriate specialist agents with optimal resource allocation.
Use this skill when:
First, determine the user's primary goal. Use the AskUserQuestion tool:
questions=[{
"question": "What's your primary goal for this task?",
"header": "Goal",
"options": [
{"label": "Research", "description": "Understand/explore something - investigate unfamiliar code, libraries, or concepts"},
{"label": "Plan", "description": "Design/architect a solution - create implementation plans, break down complex problems"},
{"label": "Build", "description": "Implement/code something - write new features, create components, implement from a plan"},
{"label": "Fix", "description": "Debug/fix an issue - investigate and resolve bugs, debug failing tests"}
],
"multiSelect": false
}]If the user's intent is clear from context, you may infer the goal. Otherwise, ask explicitly using the tool above.
Before proceeding, check for existing plans:
bashls thoughts/shared/plans/*.md 2>/dev/null
If plans exist:
Determine how many agents to use. Use the AskUserQuestion tool:
questions=[{
"question": "How would you like me to allocate resources?",
"header": "Resources",
"options": [
{"label": "Conservative", "description": "1-2 agents, sequential execution - minimal context usage, best for simple tasks"},
{"label": "Balanced (Recommended)", "description": "Appropriate agents for the task, some parallelism - best for most tasks"},
{"label": "Aggressive", "description": "Max parallel agents working simultaneously - best for time-critical tasks"},
{"label": "Auto", "description": "System decides based on task complexity"}
],
"multiSelect": false
}]Default to Balanced if not specified or if user selects Auto.
Route to the appropriate specialist based on goal:
| Goal | Primary Agent | Alias | Description | |------|---------------|-------|-------------| | Research | oracle | Librarian | Comprehensive research using MCP tools (nia, perplexity, repoprompt, firecrawl) | | Plan | plan-agent | Oracle | Create implementation plans with phased approach | | Build | kraken | Kraken | Implementation agent - handles coding tasks via Task tool | | Fix | debug-agent | Sentinel | Investigate issues using codebase exploration and logs |
Fix workflow special case: For Fix goals, first spawn debug-agent (Sentinel) to investigate. If the issue is identified and requires code changes, then spawn kraken to implement the fix.
Before executing, show a summary and confirm using the AskUserQuestion tool:
First, display the execution summary:
## Execution Summary
**Goal:** [Research/Plan/Build/Fix]
**Resource Allocation:** [Conservative/Balanced/Aggressive]
**Agent(s) to spawn:** [agent names]
**What will happen:**
- [Brief description of what the agent(s) will do]
- [Expected output/deliverable]Then use the AskUserQuestion tool for confirmation:
questions=[{
"question": "Ready to proceed with this workflow?",
"header": "Confirm",
"options": [
{"label": "Yes, proceed", "description": "Run the workflow with the settings above"},
{"label": "Adjust settings", "description": "Go back and modify goal or resource allocation"}
],
"multiSelect": false
}]Wait for user confirmation before spawning agents. If user selects "Adjust settings", return to the relevant step.
Task(
subagent_type="oracle",
prompt="""
Research: [topic]
Scope: [what to investigate]
Output: Create a handoff with findings at thoughts/handoffs/<session>/
"""
)Task(
subagent_type="plan-agent",
prompt="""
Create implementation plan for: [feature/task]
Context: [relevant context]
Output: Save plan to thoughts/shared/plans/
"""
)If plan exists: Run pre-mortem before implementation:
/premortem deep <plan-path>This identifies risks and blocks if HIGH severity issues found. User can accept, mitigate, or research solutions.
After premortem passes:
Task(
subagent_type="kraken",
prompt="""
Implement: [task]
Plan location: [if applicable]
Tests: Run tests after implementation
"""
)# Step 1: Investigate
Task(
subagent_type="debug-agent",
prompt="""
Investigate: [issue description]
Symptoms: [what's failing]
Output: Diagnosis and recommended fix
"""
)
# Step 2: If fix identified, spawn kraken
Task(
subagent_type="kraken",
prompt="""
Fix: [issue based on Sentinel's diagnosis]
"""
)/premortem deep on the plan to catch risks early| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-09 | fail→fail | 4,842 | 7,487 | +55% | 1 | 1 | 0% | 265 | 2,148 | +711% | 0 | 0 | — |
case-01 | fail→fail | 13,457 | 9,661 | -28% | 1 | 1 | 0% | 2,448 | 2,007 | -18% | 0 | 0 | — |
case-02 | fail→pass | 16,236 | 10,523 | -35% | 1 | 1 | 0% | 2,650 | 3,383 | +28% | 0 | 0 | — |
case-03 | fail→fail | 13,904 | 7,509 | -46% | 1 | 1 | 0% | 2,263 | 2,768 | +22% | 0 | 0 | — |
case-04 | pass→pass | 3,891 | 2,009 | -48% | 1 | 1 | 0% | 597 | 1,820 | +205% | 0 | 0 | — |
case-10 | pass→fail | 16,018 | 9,177 | -43% | 1 | 1 | 0% | 2,629 | 2,496 | -5% | 0 | 0 | — |
case-05 | pass→pass | 1,460 | 3,678 | +152% | 1 | 1 | 0% | 261 | 2,083 | +698% | 0 | 0 | — |
case-06 | pass→pass | 6,483 | 4,173 | -36% | 1 | 1 | 0% | 1,449 | 2,252 | +55% | 0 | 0 | — |
case-07 | fail→fail | 13,008 | 8,011 | -38% | 1 | 1 | 0% | 2,050 | 1,706 | -17% | 0 | 0 | — |
case-08 | fail→fail | 15,773 | 6,082 | -61% | 1 | 1 | 0% | 2,551 | 1,716 | -33% | 0 | 0 | — |
case-11 | fail→fail | 4,559 | 5,523 | +21% | 1 | 1 | 0% | 683 | 1,840 | +169% | 0 | 0 | — |
case-12 | fail→pass | 15,756 | 14,098 | -11% | 1 | 1 | 0% | 2,413 | 3,394 | +41% | 0 | 0 | — |
case-13 | fail→pass | 3,333 | 8,531 | +156% | 1 | 1 | 0% | 465 | 2,796 | +501% | 0 | 0 | — |
case-14 | fail→fail | 11,071 | 9,623 | -13% | 1 | 1 | 0% | 1,643 | 3,012 | +83% | 0 | 0 | — |
case-19 | fail→pass | 11,186 | 1,750 | -84% | 1 | 1 | 0% | 1,992 | 1,828 | -8% | 0 | 0 | — |
case-15 | fail→fail | 8,320 | 5,924 | -29% | 1 | 1 | 0% | 1,224 | 1,779 | +45% | 0 | 0 | — |
case-16 | fail→fail | 16,252 | 5,656 | -65% | 1 | 1 | 0% | 2,929 | 1,890 | -35% | 0 | 0 | — |
case-17 | fail→pass | 2,437 | 10,768 | +342% | 1 | 1 | 0% | 292 | 2,925 | +902% | 0 | 0 | — |
case-18 | fail→fail | 16,437 | 6,822 | -58% | 1 | 1 | 0% | 2,761 | 1,698 | -39% | 0 | 0 | — |
case-20 | fail→pass | 10,804 | 1,901 | -82% | 1 | 1 | 0% | 1,822 | 1,792 | -2% | 0 | 0 | — |
case-21 | fail→fail | 5,189 | 7,209 | +39% | 1 | 1 | 0% | 764 | 1,897 | +148% | 0 | 0 | — |
case-22 | fail→pass | 12,976 | 3,071 | -76% | 1 | 1 | 0% | 2,061 | 2,021 | -2% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 12 counted toward the lift figure. The other 10 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +27 percentage points is the difference between those two pass rates over the 12 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.