add-tools-and-handoffs

add-tools-and-handoffs is a skill for Claude Code, Codex from PatterAI/skills. It costs 122 tokens per session (2,257 once invoked), scanned A, original, MIT.

A guide for giving a Patter phone agent extra actions and handoff rules. It covers custom tools that run in your application or call a web address, plus built-in actions for transferring a caller or ending a call.

In plain words
What is it for?
Use it to look up customer information, query a CRM, schedule a callback, transfer callers to a person, end abusive calls, or validate and restrict agent responses. Custom tools can be implemented in Python or TypeScript, or exposed through a webhook.
Why use it?
It removes the gap between an agent that can only talk and one that can carry out phone-workflow actions. Response guardrails can block or rewrite words before the spoken audio reaches the caller.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to look up customer information, query a CRM, schedule a callback, transfer callers to a person, end abusive calls, or validate and restrict agent responses. Custom tools can be implemented in Python or TypeScript, or exposed through a webhook.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/patterai/skills/add-tools-and-handoffs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PatterAI/skills --skill add-tools-and-handoffs
Clone the repo
git clone --depth 1 https://github.com/PatterAI/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-tools-and-handoffs

README.md
[![agentmods](https://agentmods.dev/badge/skills/patterai/skills/add-tools-and-handoffs/github.svg)](https://agentmods.dev/skills/patterai/skills/add-tools-and-handoffs)
Your own site
<a href="https://agentmods.dev/skills/patterai/skills/add-tools-and-handoffs"><img src="https://agentmods.dev/badge/skills/patterai/skills/add-tools-and-handoffs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-tools-and-handoffs

Your own site · 80×15
<a href="https://agentmods.dev/skills/patterai/skills/add-tools-and-handoffs"><img src="https://agentmods.dev/badge/skills/patterai/skills/add-tools-and-handoffs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00122 $0.02257
Opus 5.5 $0.00049 $0.00903
Sonnet 5.5 $0.00024 $0.00451
Haiku 4.5 $0.00012 $0.00226

Measured 3mo ago against content hash 91d17c5ce308, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-tools-and-handoffs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

add-tools-and-handoffs/SKILL.md · 253 lines

How it starts

The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add tools and handoffs to a Patter agent

Patter agents have two built-in tools (transfer_call, end_call) plus unlimited custom tools. Custom tools can be handler-based (your Python/TS function runs in-process) or webhook-based (the agent POSTs JSON arguments to your URL). Both shapes use the same Tool model. Output guardrails block or rephrase agent responses before they reach TTS.

Built-in tools (always available)

Every agent automatically has:

  • transfer_call(target: str) — bridge to another phone number. Caller hears the new party, your Patter session ends.
  • end_call() — hang up. Use for "goodbye" flows or abusive callers.

You don't have to register these. The LLM picks them when the system prompt authorizes it.

agent = phone.agent(
    engine=OpenAIRealtime2(),
    system_prompt=(
        "You are Mia, the receptionist for Acme. "
        "If the caller asks for a human, call `transfer_call` with target='+14155559999'. "
        "If the caller wants to hang up, call `end_call`."
    ),
    first_message="Hi, how can I help?",
)

Custom tools — handler form

The @tool decorator (Python) and defineTool (TypeScript) auto-extract the JSON schema from your function signature and docstring. Best for simple synchronous lookups.

Python

from getpatter import Patter, Twilio, OpenAIRealtime2, tool

@tool
async def lookup_customer(phone: str) -> dict:
    """Look up customer details by phone number.

    Args:
        phone: E.164 phone number, e.g. +14155551234.

    Returns:
        Customer name, tier, and last order date.
    """
    # your CRM call here
    return {"name": "Jane Doe", "tier": "gold", "last_order": "2026-04-12"}

phone = Patter(carrier=Twilio(), phone_number="+15550001234")
agent = phone.agent(
    engine=OpenAIRealtime2(),
    system_prompt="You are a customer-service agent. Use `lookup_customer` when you need account info.",
    first_message="Hi, can I help with your account?",
    tools=[lookup_customer],
)

Read the full file on GitHub · 253 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 253 lines · 122 tokens per session scan A 91d17c5ce308

Subscribe to this mod's changes

add-tools-and-handoffs is a skill published in the GitHub repository PatterAI/skills (6 stars, last pushed 5mo ago), licensed MIT. It adds 122 tokens to every session and 2,257 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

add-tools-and-handoffs compared with skills from other repositories

add-tools-and-handoffs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-tools-and-handoffsPatterAI/skillsSkill65mo agoMITA122Claude Code, Codex
agentlineAgentLineHQ/AgentLineSkill641mo agoMITC67Claude Code, Codex
x-tweet-by-conversationbrowser-act/skillsSkill6.4k26d agoMITA218Claude Code, Codex
oma-scholarfirst-fluke/oh-my-agentSkill1.5ktodayMITA30Claude Code
render-3d-product-showcasegooseworks-ai/goose-skillsSkill1.3k2d agoMITA159Claude Code, Codex
render-airdrop-carouselgooseworks-ai/goose-skillsSkill1.3k2d agoMITA207Claude Code, Codex
email-lifecycle-flow-writergooseworks-ai/goose-skillsSkill1.3k2d agoMITA50Claude Code, Codex