with one click
delegation-patterns
Subagent/team delegation workflow.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Subagent/team delegation workflow.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Iterative multi-round codebase audit with diminishing-returns detection. Run 5-20+ rounds, each focusing on one specific area. Built from 19 rounds of dogfooding pi-crew on itself.
Pi TUI crew widget data sources, display priority, and rendering performance.
Multi-phase orchestration for planners and executors.
Spawn 3 adversarial subagents (Skeptic, Pragmatist, Critic) to evaluate a decision, architecture choice, or plan. Anti-anchoring: each role receives ONLY the question, not conversation history. Aggregates votes into consensus recommendation with dissent tracking. Use when facing critical decisions, architecture choices, security tradeoffs, or plan reviews where single-perspective analysis is insufficient.
Background worker, heartbeat, stale-run, crash-recovery, and deadletter workflow. Use when debugging stuck/dead workers or changing async run reliability.
Child Pi worker spawning, lifecycle callbacks, and failure modes.
| name | delegation-patterns |
| description | Subagent/team delegation workflow. |
| origin | pi-crew |
| triggers | ["delegate this","split this task","parallelize","dispatch workers","assign to team"] |
Use this skill when deciding how to delegate work.
src/extension/team-tool/run.ts, src/runtime/team-runner.ts, src/runtime/task-graph-scheduler.ts, builtin teams/*.team.md, workflows/*.workflow.mdtask-packetDefine severity tiers and escalation paths for team tasks:
escalation:
tiers:
- level: P1
name: Critical
sla_response: 15m
sla_resolution: 1h
owner: lead
notify: [manager, stakeholders]
criteria: [data_loss, security_breach, complete_outage, customer_facing]
- level: P2
name: High
sla_response: 1h
sla_resolution: 4h
owner: senior_dev
notify: [lead]
criteria: [partial_outage, significant_bug, regression]
- level: P3
name: Medium
sla_response: 4h
sla_resolution: 24h
owner: mid_dev
notify: [team]
criteria: [minor_bug, feature_break, ux_issue]
- level: P4
name: Low
sla_response: 24h
sla_resolution: 1w
owner: junior_dev
notify: []
criteria: [enhancement, low_priority, tech_debt]
escalation_path: [P4 → P3 → P2 → P1]
override_conditions: [security, data_loss, customer_facing]
Before delegating work to workers, verify:
If ANY answer is NO → Stop. Complete the task packet before dispatching.
For orchestration changes:
cd pi-crew
npx tsc --noEmit
node --experimental-strip-types --test test/unit/team-recommendation.test.ts test/unit/task-output-context-security.test.ts test/integration/phase3-runtime.test.ts
npm test