kjuhwa/skills-hub/agent-handoff-routing

Claude Code and agent skill by kjuhwa/skills-hub

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Route a conversation to a specialist agent via handoff, making that agent own the next turn.

Install

npx vskill@latest install kjuhwa/skills-hub/agent-handoff-routing

SKILL.md

The same SKILL.md was published earlier as kjuhwa/skills-hub/agent-handoff-routing.

agent-handoff-routing

List specialist agents in Agent.handoffs. A triage agent inspects the user message and calls transfer_to_<agent_name> to delegate. The specialist becomes the active agent for the remainder of the run.

When to apply

Multi-language support, department routing (billing/support/refunds), or any scenario where the triage agent should not compose the final reply itself.

Core snippet

python
from agents import Agent, Runner, trace
french_agent = Agent(name="french_agent", instructions="You only speak French")
spanish_agent = Agent(name="spanish_agent", instructions="You only speak Spanish")
english_agent = Agent(name="english_agent", instructions="You only speak English")
triage_agent = Agent(
name="triage_agent",
instructions="Handoff to the appropriate agent based on the language of the request.",
handoffs=[french_agent, spanish_agent, english_agent],
)
async def main():
with trace("Routing example"):
result = await Runner.run(triage_agent, "Bonjour, comment vas-tu?")
print(result.final_output)

With custom handoff description

python
from agents import handoff
spanish_agent = Agent(
name="Spanish Assistant",
instructions="You only speak Spanish and are extremely concise.",
handoff_description="A Spanish-speaking assistant.", # Shown to triage LLM
)
triage_agent = Agent(
name="triage_agent",
handoffs=[handoff(spanish_agent, tool_name_override="speak_spanish")],
)

Key notes

  • Handoffs are represented as tools; the tool name defaults to transfer_to_<agent_name>
  • After handoff, the specialist agent owns the active conversation — no narration from the triage agent
  • Use handoff_description on the specialist to hint when the model should pick it
  • For agents-as-tools (specialist helps but triage keeps control), use Agent.as_tool() instead

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kjuhwa/skills-hub/agent-handoff-routing/badge)](https://verified-skill.com/skills/kjuhwa/skills-hub/agent-handoff-routing)

Something wrong with this skill or its page? Tell us.