kjuhwa/skills-hub/agents-as-tools

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.

Expose specialist agents as callable tools so an orchestrator agent retains control of the final answer.

Install

npx vskill@latest install kjuhwa/skills-hub/agents-as-tools

SKILL.md

The same SKILL.md was published earlier as kjuhwa/skills-hub/agents-as-tools.

agents-as-tools

Call agent.as_tool(tool_name, tool_description) to expose a specialist as a callable tool. The orchestrator agent calls the specialist, gets its output, and composes the final reply — never handing off control.

When to apply

When one agent should aggregate outputs from multiple specialists (e.g., translate to multiple languages then synthesize). Prefer handoffs when the specialist should own the final user response.

Core snippet

python
from agents import Agent, Runner, trace
spanish_agent = Agent(
name="spanish_agent",
instructions="You translate the user's message to Spanish",
handoff_description="An english to spanish translator",
)
french_agent = Agent(
name="french_agent",
instructions="You translate the user's message to French",
handoff_description="An english to french translator",
)
orchestrator_agent = Agent(
name="orchestrator_agent",
instructions=(
"You are a translation agent. You use the tools given to you to translate. "
"You never translate on your own, you always use the provided tools."
),
tools=[
spanish_agent.as_tool(
tool_name="translate_to_spanish",
tool_description="Translate the user's message to Spanish",
),
french_agent.as_tool(
tool_name="translate_to_french",
tool_description="Translate the user's message to French",
),
],
)
async def main():
with trace("Agents as tools"):
result = await Runner.run(orchestrator_agent, "Good morning!")
print(result.final_output)

Key notes

  • as_tool() runs the specialist in a nested agent loop; result returned as tool output string
  • Orchestrator composes the final answer; user sees only orchestrator's output
  • Combine with handoffs: triage can hand off to orchestrator which calls specialists as tools
  • Tool guardrails apply to function tools; as_tool() runs through the handoff pipeline

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/agents-as-tools/badge)](https://verified-skill.com/skills/kjuhwa/skills-hub/agents-as-tools)

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