本文へスキップ
Skillpedia
一般的なプログラミング48k · #3683

agent-tool-builder

できること

このエージェントは、他のAIが世界と確実にやり取りできるように「ツール」を作るお手伝いをします。エラーや不要なコストを避けるために、ツールを正しく設計する方法を教えます。

使う場面

  • ✓AIに外部ツールを使って情報を取得させたいとき。
  • ✓AIがサービスやデータとどのようにやり取りすべきかを定義するとき。
  • ✓AIのために作ったツールがうまく、失敗なく動くようにしたいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-tool-builder/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-tool-builder/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“AIが都市の天気を教えてくれるツールは、どのように作ればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIが使うツールの説明の書き方を教えます。ツールが何をするのか、どんな情報を必要とするのかを、どのように説明するかに重点を置きます。AIが読むのは説明文なので、説明はコード自体よりも重要です。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

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() """

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.
よくある質問

なぜツールの説明はコードより重要なのですか?

AIはあなたのコードを直接見ることはなく、ツールを説明文と「スキーマ」(データの構造を定めたもの)を通して理解します。良い説明がAIを正しく導きます。

「スキーマ」とは何ですか?

ツールが使用または返すデータの構造を定めた地図のようなものです。すべてが整理され、AIに正しく理解されるようにします。

「ハルシネーション」や「静かに失敗する」とはどういう意味ですか?

AIが起こしうるエラーです。「ハルシネーション」は、AIが情報を作り出してしまうことを指します。「静かに失敗する」は、ツールが期待どおりに動かないのに、AIがその問題について警告しないことを指します。

詳細

作者による元の説明

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.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#3683
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル