handoff-routing-policy
Routes the next agent role based on specific subAgent verdicts. Automates handoffs without needing full workflow reconstruction.
Install
mkdir -p .claude/skills/handoff-routing-policy && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13571" && unzip -o skill.zip -d .claude/skills/handoff-routing-policy && rm skill.zipInstalls to .claude/skills/handoff-routing-policy
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Route the next allowed role after one explicit subAgent result, or stop, without encoding full workflows, registries, or runtime semantics.Key capabilities
- →Choose the next role after one explicit subAgent result.
- →Route to Implementer if PATCH_REQUIRED verdict is returned.
- →Route to Correction Planner if REPLAN_REQUIRED verdict is returned.
- →Route to the bounded role that can supply missing evidence if MISSING_EVIDENCE verdict is returned.
- →Stop if the verdict is BLOCKED or if the evidence owner for MISSING_EVIDENCE is unknown.
How it works
This skill processes a subAgent's verdict to determine the subsequent agent role or to stop the process, based on predefined routing rules.
Inputs & outputs
When to use handoff-routing-policy
- →Route tasks after agent failure
- →Handle task transitions based on evidence status
- →Automate handover from planner to implementer
About this skill
Purpose
Choose the next route after one explicit subAgent result.
This skill works only after a real dispatch has already occurred and a result payload has been returned.
Trigger / When to use
Use this skill when:
- one explicit subAgent result has been returned
- the Observer is in
ROUTING - the result includes one frozen verdict value
Do not use this skill when:
- the task is still deciding whether to dispatch
- the task is to build the context package
- the task requires full workflow reconstruction or runtime orchestration logic
Inputs
result_role: one ofPlanner,Implementer,Reviewer,Correction Plannerverdict: one ofPASSPATCH_REQUIREDREPLAN_REQUIREDMISSING_EVIDENCEBLOCKED
- bounded evidence summary
- explicit blocker list, if any
- optional evidence owner for
MISSING_EVIDENCE
Process
- Confirm the result came from real dispatch rather than Observer simulation.
- Confirm the verdict is one of the frozen allowed values.
- If the result reveals runtime semantics, registry behavior, workflow binding, or another out-of-scope expansion, stop.
- Route by verdict without inventing a broader workflow model:
PASS: choose the next role only if one more bounded role handoff is needed; otherwise stopPATCH_REQUIRED: route toImplementerREPLAN_REQUIRED: route toCorrection PlannerMISSING_EVIDENCE: route only to the bounded role that can supply the missing evidence; if that owner is unknown, stopBLOCKED: stop unless a bounded route toPlanneris explicitly justified
- Emit exactly one next role or
stop, with a short factual reason.
Examples
- Positive: An
ImplementerreturnsPATCH_REQUIREDwith concrete bounded evidence, and the skill routes toImplementer. - Negative: A result says "probably approved" with no explicit verdict, and the skill refuses to invent one.
Outputs
next_role:Planner|Implementer|Reviewer|Correction Planner|stopreason: short factual reasonstop_condition:noneor exact blocker
Validation
Required Checks
PASS: the result came from real dispatch, the Observer is inROUTING, the verdict is exactly one frozen allowed value, and the skill returns exactly one allowednext_roleorstopconsistent with the stated verdict.BLOCKED: stop when the verdict is unknown, unstructured, or unsupported; when the evidence owner forMISSING_EVIDENCEis unknown; or when proceeding would require invented workflow state, registry behavior, runtime semantics, or a broader routing model than this skill allows.
Quality Checks (best effort)
SOFT FAIL: mark status asINCOMPLETEwhen the allowed verdict is clear enough to route or stop, but the bounded evidence summary or blocker detail is incomplete.- Under
SOFT FAIL, keep the routing decision within the frozen verdict set, state the missing evidence explicitly, and avoid inventing additional workflow state.
Failure Handling
Missing Context
- If the verdict is valid but supporting evidence is partial, return the bounded
best-effort route or
stopwith the limitation stated explicitly. - If missing context could reasonably change the next allowed role, mark the
result
BLOCKEDand stop.
Ambiguous Requirement
- If the returned result does not contain one frozen verdict value, do not infer or normalize it into the allowed set.
- If
MISSING_EVIDENCElacks a known bounded owner, stop instead of inventing one.
Execution Limitation
- If the request depends on hidden workflow state, file-path ownership, registry
identifiers, launcher-specific targets, or runtime orchestration details,
return
stoporBLOCKEDwith the limitation stated explicitly. - Do not fabricate broader workflow progression beyond the single returned subAgent result.
Boundaries
- Do not choose the initial dispatch role.
- Do not build the context package.
- Do not reconstruct the full existing workflow from a step artifact.
- Do not invent verdict values outside the frozen set.
- Do not emit registry identifiers, file paths, or launcher-specific targets.
Local references
examples.md: verdict-driven routing examples, including stop conditions for missing evidence and out-of-scope expansion
When not to use it
- →When the task is still deciding whether to dispatch.
- →When the task is to build the context package.
- →When the task requires full workflow reconstruction or runtime orchestration logic.
Limitations
- →This skill works only after a real dispatch has already occurred and a result payload has been returned.
- →The skill does not choose the initial dispatch role.
- →The skill does not invent verdict values outside the frozen set.
How it compares
This skill routes based on a single, explicit subAgent result without encoding full workflows or runtime semantics, unlike a complete workflow engine.
Compared to similar skills
handoff-routing-policy side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| handoff-routing-policy (this skill) | 0 | 2mo | No flags | Intermediate |
| autonomous-agents | 10 | 6mo | No flags | Advanced |
| agent-goal-planner | 2 | 6mo | No flags | Advanced |
| planner | 1 | 6mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by a129924
View all by a129924 →You might also like
autonomous-agents
davila7
Autonomous agents are AI systems that can independently decompose goals, plan actions, execute tools, and self-correct without constant human guidance. The challenge isn't making them capable - it's making them reliable. Every extra decision multiplies failure probability. This skill covers agent loops (ReAct, Plan-Execute), goal decomposition, reflection patterns, and production reliability. Key insight: compounding error rates kill autonomous agents. A 95% success rate per step drops to 60% b
agent-goal-planner
ruvnet
Agent skill for goal-planner - invoke with $agent-goal-planner
planner
solatis
Interactive planning and execution for complex tasks. Use when user asks to use or invoke planner skill.
hierarchical-coordinator
MadAppGang
Prevent goal drift in long-running multi-agent workflows using a coordinator agent that validates outputs against original objectives at checkpoints. Use when orchestrating 3+ agents, multi-phase features, complex implementations, or any workflow where agents may lose sight of original requirements. Trigger keywords - "hierarchical", "coordinator", "anti-drift", "checkpoint", "validation", "goal-alignment", "decomposition", "phase-gate", "shared-state", "drift detection".
workflow-router
parcadei
Goal-based workflow orchestration - routes tasks to specialist agents based on user goals
loki-mode
davila7
Multi-agent autonomous startup system for Claude Code. Triggers on "Loki Mode". Orchestrates 100+ specialized agents across engineering, QA, DevOps, security, data/ML, business operations, marketing, HR, and customer success. Takes PRD to fully deployed, revenue-generating product with zero human intervention. Features Task tool for subagent dispatch, parallel code review with 3 specialized reviewers, severity-based issue triage, distributed task queue with dead letter handling, automatic deployment to cloud providers, A/B testing, customer feedback loops, incident response, circuit breakers, and self-healing. Handles rate limits via distributed state checkpoints and auto-resume with exponential backoff. Requires --dangerously-skip-permissions flag.