Token导航 LogoToken导航

Agent Skill · AI 工具

agent-tool-builder(Agent 工具构建器)

agent-tool-builder 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

agent-tool-builder 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描有提醒项,按安装量在AI 工具类的 2,536 个 Skill 里排第 172。

总安装 13,686周安装 576GitHub Stars 35,721下载 4,792核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-tool-builder(Agent 工具构建器)
来源仓库:https://github.com/sickn33/antigravity-awesome-skills
仓库路径:skills/agent-tool-builder
安装命令:
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill agent-tool-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill agent-tool-builder

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

设计面向 LLM 的工具模式,防止幻觉、无声故障和令牌浪费。

重点关注 JSON 架构设计、输入示例和错误处理模式,帮助法学硕士正确使用工具 强调明确的文档和清晰的描述而不是实现细节,因为法学硕士只能看到模式 识别导致代理失败的反模式,例如模糊描述、静默故障和工具过载 涵盖跨代理工具生态系统的函数调用、MCP 工具和工具验证

来源仓库内路径:skills/agent-tool-builder

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill age…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

agent-tool-builder 怎么安装?

在终端执行 npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill agent-tool-bu…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

agent-tool-builder 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

agent-tool-builder 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

agent-tool-builder 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

agent-tool-builder 用的人多吗?

公开数据是累计安装 13,686 次,近一周安装 576 次,下载 4,792 次,GitHub 35,721 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

agent-tool-builder 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 来源仓库有 35,721 星,维护活跃度相对可查。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理AI 工具类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
executing-plans

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
agent-tool-builder

Agent 工具构建器 · 本页

13,68635,721调用外部服务MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Agent Tool Builder

Tools are how AI agents interact with the world. A well-designed tool is the difference between an agent that works and one that hallucinates, fails silently, or costs 10x more tokens than necessary.

This skill covers tool design from schema to error handling. JSON Schema best practices, description writing that actually helps the LLM, validation, and the emerging MCP standard that's becoming the lingua franca for AI tools.

Key insight: Tool descriptions are more important than tool implementations. The LLM never sees your code - it only sees the schema and description.

Principles

  • Description quality > implementation quality for LLM accuracy
  • Aim for fewer than 20 tools - more causes confusion
  • Every tool needs explicit error handling - silent failures poison agents
  • Return strings, not objects - LLMs process text
  • Validation gates before execution - reject, fix, or escalate, never silent fail
  • Test tools with the LLM, not just unit tests

Capabilities

  • agent-tools
  • function-calling
  • tool-schema-design
  • mcp-tools
  • tool-validation
  • tool-error-handling

Scope

  • multi-agent-coordination → multi-agent-orchestration
  • agent-memory → agent-memory-systems
  • api-design → api-designer
  • llm-prompting → prompt-engineering

Tooling

Standards

  • JSON Schema - When: All tool definitions Note: The universal format for tool schemas
  • MCP (Model Context Protocol) - When: Building reusable, cross-platform tools Note: Anthropic's open standard, widely adopted

Frameworks

  • Anthropic SDK - When: Claude-based agents Note: Beta tool runner handles most complexity
  • OpenAI Functions - When: OpenAI-based agents Note: Use strict mode for guaranteed schema compliance
  • Vercel AI SDK - When: Multi-provider tool handling Note: Abstracts differences between providers
  • LangChain Tools - When: LangChain-based agents Note: Converts MCP tools to LangChain format

Patterns

Tool Schema Design

Creating clear, unambiguous JSON Schema for tools

When to use: Defining any new tool for an agent

TOOL SCHEMA BEST PRACTICES:

1. Detailed Descriptions (Most Important)

""" BAD - Too vague: {"name": "get_stock_price", "description": "Gets stock price", "input_schema": {"type": "object", "properties": {"ticker": {"type": "string"}}}}

GOOD - Comprehensive: {"name": "get_stock_price", "description": "Retrieves the current stock price for a given ticker symbol. The ticker symbol must be a valid symbol for a publicly traded company on a major US stock exchange like NYSE or NASDAQ. Returns the latest trade price in USD. Use when the user asks about current or recent stock prices. Does NOT provide historical data, company info, or predictions.", "input_schema": {"type": "object", "properties": {"ticker": {"type": "string", "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."}}, "required": ["ticker"]}} """

2. Parameter Descriptions

""" Every parameter needs:

  • What it is
  • Format expected
  • Example value
  • Edge cases/limitations

{"location": {"type": "string", "description": "City and state/country. Format: 'City, State' for US (e.g., 'San Francisco, CA') or 'City, Country' for international (e.g., 'Tokyo, Japan'). Do not use ZIP codes or coordinates."}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"], "description": "Temperature unit. Defaults to user's locale if not specified. Use 'fahrenheit' for US users, 'celsius' for others."}} """

3. Use Enums When Possible

""" Enums constrain the LLM to valid values:

"priority": {"type": "string", "enum": ["low", "medium", "high", "critical"], "description": "Task priority level"}

"action": {"type": "string", "enum": ["create", "read", "update", "delete"], "description": "The CRUD operation to perform"} """

4. Required vs Optional

""" Be explicit about what's required:

{"type": "object", "properties": {"query": {...}, // Required "limit": {...}, // Optional with default "offset": {...} // Optional}, "required": ["query"], "additionalProperties": false // Strict mode} """

Tool with Input Examples

Using examples to guide LLM tool usage

When to use: Complex tools with nested objects or format-sensitive inputs

TOOL USE EXAMPLES (Anthropic Beta Feature):

""" Examples show Claude concrete patterns that schemas can't express. Improves accuracy from 72% to 90% on complex operations. """

{"name": "create_calendar_event", "description": "Creates a calendar event with optional attendees and reminders", "input_schema": {"type": "object", "properties": {"title": {"type": "string", "description": "Event title"}, "start_time": {"type": "string", "description": "ISO 8601 datetime, e.g. 2024-03-15T14:00:00Z"}, "duration_minutes": {"type": "integer", "description": "Event duration"}, "attendees": {"type": "array", "items": {"type": "string"}, "description": "Email addresses of attendees"}}, "required": ["title", "start_time", "duration_minutes"]}, "input_examples": {"title": "Team Standup", "start_time": "2024-03-15T09:00:00Z", "duration_minutes": 30, "attendees": ["[alice@company.com", "bob@company.com"]}, {"title": "Quick Chat", "start_time": "2024-03-15T14:00:00Z", "duration_minutes": 15}, {"title": "Project Review", "start_time": "2024-03-15T16:00:00-05:00", "duration_minutes": 60, "attendees": "[team@company.com"]}]}

EXAMPLE DESIGN PRINCIPLES:

- Use realistic data, not placeholders

- Show minimal, partial, and full specification patterns

- Keep concise: 1-5 examples per tool

- Focus on ambiguous cases

Tool Error Handling

Returning errors that help the LLM recover

When to use: Any tool that can fail

ERROR HANDLING BEST PRACTICES:

Return Informative Errors

""" BAD: {"error": "Failed"} {"error": true}

GOOD: {"error": true, "error_type": "not_found", "message": "Location 'Atlantis' not found in weather database. Please provide a real city name like 'San Francisco, CA'.", "suggestions": ["San Francisco, CA", "Los Angeles, CA"]} """

Anthropic Tool Result with Error

""" {"type": "tool_result", "tool_use_id": "toolu_01A09q90qw90lq917835lq9", "content": "Error: Location 'Atlantis' not found in weather database. Please provide a real city name like 'San Francisco, CA'.", "is_error": true} """

Error Categories to Handle

"""

  1. Input Validation Errors

- Missing required parameters - Invalid format - Out of range values

  1. External Service Errors

- API unavailable - Rate limited - Timeout

  1. Business Logic Errors

- Resource not found - Permission denied - Conflict/duplicate

  1. Internal Errors

- Unexpected exceptions - Data corruption """

Implementation Pattern

""" from dataclasses import dataclass from typing import Union

@dataclass class ToolResult: success: bool content: str error_type: str = None suggestions: list[str] = None

def to_response(self) -> dict:
    if self.success:
        return {"content": self.content}
    return {
        "content": f"Error ({self.error_type}): {self.content}",
        "is_error": True
    }

def get_weather(location: str) -> ToolResult: # Validate input if not location or len(location) < 2: return ToolResult(success=False, content="Location must be at least 2 characters", error_type="validation_error")

try:
    data = weather_api.fetch(location)
    return ToolResult(
        success=True,
        content=f"Temperature: {data.temp}°F, Conditions: {data.conditions}"
    )
except LocationNotFound:
    return ToolResult(
        success=False,
        content=f"Location '{location}' not found",
        error_type="not_found",
        suggestions=weather_api.suggest_locations(location)
    )
except RateLimitError:
    return ToolResult(
        success=False,
        content="Weather service rate limit exceeded. Try again in 60 seconds.",
        error_type="rate_limit"
    )
except Exception as e:
    return ToolResult(
        success=False,
        content=f"Unexpected error: {str(e)}",
        error_type="internal_error"
    )

"""

MCP Tool Pattern

Building tools using Model Context Protocol

When to use: Creating reusable, cross-platform tools

MCP TOOL IMPLEMENTATION:

""" MCP (Model Context Protocol) is Anthropic's open standard for connecting AI agents to external systems. Build once, use everywhere. """

Basic MCP Server (TypeScript)

""" import {Server} from "@modelcontextprotocol/sdk/server"; import {StdioServerTransport} from "@modelcontextprotocol/sdk/server/stdio";

const server = new Server({name: "weather-server", version: "1.0.0"});

// Define tools server.setRequestHandler("tools/list", async () => ({tools: [{name: "get_weather", description: "Get current weather for a location. Returns temperature, conditions, and humidity. Use for weather queries about specific cities.", inputSchema: {type: "object", properties: {location: {type: "string", description: "City and state, e.g. 'San Francisco, CA'"}, unit: {type: "string", enum: ["celsius", "fahrenheit"], default: "fahrenheit"}}, required: ["location"]}}]}));

// Handle tool calls server.setRequestHandler("tools/call", async (request) => {const {name, arguments: args} = request.params;

if (name === "get_weather") {try {const weather = await fetchWeather(args.location, args.unit); return {content: [{type: "text", text: JSON.stringify(weather)}]};} catch (error) {return {content: [{type: "text", text: Error: ${error.message}}], isError: true};}}

throw new Error(Unknown tool: ${name});});

// Start server const transport = new StdioServerTransport(); await server.connect(transport); """

MCP Benefits

"""

  • Universal compatibility across LLM providers
  • Reusable tool libraries
  • Streaming and SSE transport support
  • Built-in observability
  • Tool access controls """

Tool Runner Pattern

Using SDK tool runners for automatic handling

When to use: Building tool loops without manual management

TOOL RUNNER (Anthropic SDK Beta):

""" The tool runner handles the tool call loop automatically:

  • Executes tools when Claude calls them
  • Manages conversation state
  • Handles error retries
  • Provides streaming support """

Python Example

""" import anthropic from anthropic import beta_tool

client = anthropic.Anthropic()

@beta_tool def get_weather(location: str, unit: str = "fahrenheit") -> str: '''Get the current weather in a given location.

Args:
    location: The city and state, e.g. San Francisco, CA
    unit: Temperature unit, either 'celsius' or 'fahrenheit'
'''
# Implementation
return json.dumps({"temperature": "72°F", "conditions": "Sunny"})

@beta_tool def search_web(query: str) -> str: '''Search the web for information.

Args:
    query: The search query
'''
# Implementation
return json.dumps({"results": [...]})

Tool runner handles the loop

runner = client.beta.messages.tool_runner(model="claude-sonnet-4-5", max_tokens=1024, tools=[get_weather, search_web], messages=[{"role": "user", "content": "What's the weather in Paris?"}])

Process each message

for message in runner: print(message.content[0].text)

Or just get final result

final = runner.until_done() """

TypeScript with Zod

""" import {Anthropic} from '@anthropic-ai/sdk'; import {betaZodTool} from '@anthropic-ai/sdk/helpers/beta/zod'; import {z} from 'zod';

const anthropic = new Anthropic();

const getWeatherTool = betaZodTool({name: 'get_weather', description: 'Get the current weather in a given location', inputSchema: z.object({location: z.string().describe('City and state, e.g. San Francisco, CA'), unit: z.enum(['celsius', 'fahrenheit']).default('fahrenheit')}), run: async (input) => {// Type-safe input! return JSON.stringify({temperature: '72°F'});}});

const runner = anthropic.beta.messages.toolRunner({model: 'claude-sonnet-4-5', max_tokens: 1024, tools: [getWeatherTool], messages: [{role: 'user', content: "What's the weather in Paris?"}]});

for await (const message of runner) {console.log(message.content[0].text);} """

Parallel Tool Execution

Running multiple tools simultaneously

When to use: Independent tool calls that can run in parallel

PARALLEL TOOL EXECUTION:

""" By default, Claude can call multiple tools in one response. This dramatically reduces latency for independent operations. """

Handling Parallel Results

"""

Claude returns multiple tool_use blocks:

response.content = [{"type": "text", "text": "I'll check both locations..."}, {"type": "tool_use", "id": "toolu_01", "name": "get_weather", "input": {"location": "San Francisco, CA"}}, {"type": "tool_use", "id": "toolu_02", "name": "get_weather", "input": {"location": "New York, NY"}}, {"type": "tool_use", "id": "toolu_03", "name": "get_time", "input": {"timezone": "America/Los_Angeles"}}, {"type": "tool_use", "id": "toolu_04", "name": "get_time", "input": {"timezone": "America/New_York"}}]

Execute in parallel

import asyncio

async def execute_tools_parallel(tool_uses): tasks = [execute_tool(t) for t in tool_uses] return await asyncio.gather(*tasks)

results = await execute_tools_parallel(tool_uses)

Return ALL results in SINGLE user message (critical!)

tool_results = [{"type": "tool_result", "tool_use_id": "toolu_01", "content": "72°F, Sunny"}, {"type": "tool_result", "tool_use_id": "toolu_02", "content": "45°F, Cloudy"}, {"type": "tool_result", "tool_use_id": "toolu_03", "content": "2:30 PM PST"}, {"type": "tool_result", "tool_use_id": "toolu_04", "content": "5:30 PM EST"}]

CORRECT: All results in one message

messages.append({"role": "user", "content": tool_results})

WRONG: Separate messages (breaks parallel execution pattern)

messages.append({"role": "user", "content": [tool_results[0]]})

messages.append({"role": "user", "content": [tool_results[1]]})

"""

Encouraging Parallel Tool Use

""" Add to system prompt: "For maximum efficiency, whenever you need to perform multiple independent operations, invoke all relevant tools simultaneously rather than sequentially." """

Disabling Parallel (When Needed)

""" response = client.messages.create(model="claude-sonnet-4-5", tools=tools, tool_choice={"type": "auto", "disable_parallel_tool_use": True}, messages=messages) """

Validation Checks

Tool Description Must Be Comprehensive

Severity: WARNING

Tool descriptions should be at least 100 characters

Message: Tool description is too short. Add details about when to use it, parameters, and return values.

Parameter Descriptions Required

Severity: WARNING

Every parameter should have a description

Message: Parameter missing description. Describe what it is and the expected format.

Schema Should Specify Required Fields

Severity: INFO

Explicitly define which fields are required

Message: Schema doesn't specify required fields. Add 'required' array.

Tool Implementation Needs Error Handling

Severity: ERROR

Tool functions should handle exceptions

Message: Tool function without try/except block. Add error handling.

Error Results Need is_error Flag

Severity: WARNING

When returning errors, set is_error to true

Message: Error result without is_error flag. Add 'is_error': true.

Tools Should Return Strings

Severity: WARNING

Return JSON string, not dict/object

Message: Returning dict instead of string. Use json.dumps() or JSON.stringify().

Tools Should Validate Inputs

Severity: WARNING

Validate LLM-provided inputs before execution

Message: Tool function without visible input validation. Validate before execution.

SQL Queries Must Use Parameterization

Severity: ERROR

Never concatenate user input into SQL

Message: SQL query appears to use string concatenation. Use parameterized queries.

External Calls Need Timeouts

Severity: WARNING

HTTP requests and external calls should have timeouts

Message: External API call without timeout. Add timeout parameter.

MCP Tools Must Have Input Schema

Severity: ERROR

All MCP tools require inputSchema

Message: MCP tool definition missing inputSchema.

Collaboration

Delegation Triggers

  • user needs to coordinate multiple tools -> multi-agent-orchestration (Tool orchestration across agents)
  • user needs persistent memory between tool calls -> agent-memory-systems (State management for tools)
  • user building voice agent tools -> voice-agents (Audio/voice-specific tool requirements)
  • user needs computer control tools -> computer-use-agents (Desktop automation tools)
  • user wants to test their tools -> agent-evaluation (Tool testing and evaluation)

Related Skills

Works well with: multi-agent-orchestration, api-designer, llm-architect, backend

When to Use

  • User mentions or implies: agent tool
  • User mentions or implies: function calling
  • User mentions or implies: tool schema
  • User mentions or implies: tool design
  • User mentions or implies: mcp server
  • User mentions or implies: mcp tool
  • User mentions or implies: tool use
  • User mentions or implies: build tool for agent
  • User mentions or implies: define function
  • User mentions or implies: input_schema
  • User mentions or implies: tool_use
  • User mentions or implies: tool_result

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

平台分布

Claude Code

31.11%
按下载量换算1,491

OpenCode

20.49%
按下载量换算982

Antigravity

18.09%
按下载量换算867

Gemini CLI

13.46%
按下载量换算645

Cursor

8.39%
按下载量换算402

Codex

3.08%
按下载量换算148

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills