Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Agent Tool Builder

ASecurity

Design tools for AI agents — clean function interfaces, typed schemas, informative errors, idempotency, and tool documentation. Use when giving an agent new capabilities or fixing flaky tool use.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgodebuggingapidatabasedocumentation

Works with

api

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill agent-tool-builder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Tool Builder?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Agent Tool Builder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-agent-tool-builder/badge)](https://www.skillsdirectory.com/skills/aicodedecode-agent-tool-builder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: agent-tool-builder
description: Design tools for AI agents — clean function interfaces, typed schemas, informative errors, idempotency, and tool documentation. Use when giving an agent new capabilities or fixing flaky tool use.
category: ai-research
---

# Agent Tool Builder

Tools are the agent's hands and senses. A well-designed tool is small, predictable, and 
self-documenting; a bad one is the source of most agent unreliability. Build tools like public APIs 
— because to the agent, they are.

## Overview

The model sees only a tool's name, description, and schema. Everything else — side effects, 
latency, failure modes — is invisible until it bites. Good tool design therefore means: narrow 
scope, explicit schemas, errors that explain how to recover, and descriptions written for a reader 
that takes everything literally. Test each tool as a standalone function before the agent ever 
calls it.

## When to use

- Adding a new capability to an agent (search, database, file ops, API calls).
- The agent misuses an existing tool: wrong arguments, wrong tool chosen, ignoring errors.
- Consolidating several overlapping tools into one clean interface.
- Writing tools that wrap internal APIs for agent consumption.

## Core concepts

- **Single responsibility**: one tool, one job. A `search_orders` tool beats a `do_database_stuff` 
tool every time.
- **Schema as documentation**: typed parameters with descriptions, enums for fixed choices, 
sensible defaults. The schema is the primary instruction the agent reads.
- **Descriptive naming**: `get_customer_order_status`, not `query2`. Names should make the right 
tool choice obvious.
- **Informative errors**: errors should say what went wrong and what to try next ("order not found; 
try listing orders for this customer with list_orders").
- **Idempotency**: repeated identical calls should be safe. Agents retry; design for it — use 
idempotency keys for writes.
- **Least privilege**: each tool exposes only what the agent needs. A read-only variant for 
exploration, a write variant with stricter gating.

## Practical workflow

1. Write the tool's contract first: name, description, parameters, return shape, error cases — 
before any code.
2. Implement it as a plain function with no agent-specific logic; test it standalone with 
representative inputs.
3. Write the description for a literal-minded reader: what it does, when to use it, what the 
arguments mean, what errors mean.
4. Add validation at the boundary: reject bad inputs with helpful messages rather than failing deep 
inside.
5. Load-test the failure paths: timeouts, empty results, malformed data. The agent will hit all of 
them.
6. Version the tool contract; log every call with arguments for debugging agent behavior.

```text
Tool contract template:
NAME:   get_order_status
DOES:   Returns current status + tracking for one order.
ARGS:   order_id (string, required) — the ID from list_orders
RETURNS:{status, tracking_url, updated_at}
ERRORS: NOT_FOUND → use list_orders to find valid IDs
        AUTH     → credentials missing; escalate to user
```

## Common pitfalls

- **Vague descriptions**: "queries the database." The agent can't choose tools it doesn't 
understand. Describe inputs, outputs, and when to use it.
- **Mega-tools**: one tool with a mode parameter doing five things. Split them; the agent picks 
tools, not modes.
- **Silent failures**: returning empty results or generic errors. The agent will hallucinate around 
the gap — make errors loud and specific.
- **Non-idempotent writes**: the agent retries a failed payment and charges twice. Design writes to 
be safely repeatable.
- **Leaking internals**: stack traces and internal IDs in tool output. Sanitize; give the agent 
actionable information.
- **No logging**: when the agent misbehaves you need the call history. Log every invocation with 
arguments and results.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →