HA

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.zip

Installs 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.
139 charsno explicit “when” trigger
Intermediate

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

You give it
A subAgent result with a `result_role` and a `verdict`.
You get back
A `next_role` (Planner, Implementer, Reviewer, Correction Planner, or stop) and a `reason`.

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 of Planner, Implementer, Reviewer, Correction Planner
  • verdict: one of
    • PASS
    • PATCH_REQUIRED
    • REPLAN_REQUIRED
    • MISSING_EVIDENCE
    • BLOCKED
  • bounded evidence summary
  • explicit blocker list, if any
  • optional evidence owner for MISSING_EVIDENCE

Process

  1. Confirm the result came from real dispatch rather than Observer simulation.
  2. Confirm the verdict is one of the frozen allowed values.
  3. If the result reveals runtime semantics, registry behavior, workflow binding, or another out-of-scope expansion, stop.
  4. Route by verdict without inventing a broader workflow model:
    • PASS: choose the next role only if one more bounded role handoff is needed; otherwise stop
    • PATCH_REQUIRED: route to Implementer
    • REPLAN_REQUIRED: route to Correction Planner
    • MISSING_EVIDENCE: route only to the bounded role that can supply the missing evidence; if that owner is unknown, stop
    • BLOCKED: stop unless a bounded route to Planner is explicitly justified
  5. Emit exactly one next role or stop, with a short factual reason.

Examples

  • Positive: An Implementer returns PATCH_REQUIRED with concrete bounded evidence, and the skill routes to Implementer.
  • 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 | stop
  • reason: short factual reason
  • stop_condition: none or exact blocker

Validation

Required Checks

  • PASS: the result came from real dispatch, the Observer is in ROUTING, the verdict is exactly one frozen allowed value, and the skill returns exactly one allowed next_role or stop consistent with the stated verdict.
  • BLOCKED: stop when the verdict is unknown, unstructured, or unsupported; when the evidence owner for MISSING_EVIDENCE is 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 as INCOMPLETE when 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 stop with the limitation stated explicitly.
  • If missing context could reasonably change the next allowed role, mark the result BLOCKED and 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_EVIDENCE lacks 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 stop or BLOCKED with 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.

SkillInstallsUpdatedSafetyDifficulty
handoff-routing-policy (this skill)02moNo flagsIntermediate
autonomous-agents106moNo flagsAdvanced
agent-goal-planner26moNo flagsAdvanced
planner16moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

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

1041

agent-goal-planner

ruvnet

Agent skill for goal-planner - invoke with $agent-goal-planner

215

planner

solatis

Interactive planning and execution for complex tasks. Use when user asks to use or invoke planner skill.

18

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".

13

workflow-router

parcadei

Goal-based workflow orchestration - routes tasks to specialist agents based on user goals

13

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.

12

Search skills

Search the agent skills registry