Chuyển đến nội dung
Skillpedia
Lập trình chung48k · #3683

agent-tool-builder

Skill này làm gì

Agent này giúp tạo các “công cụ” để các AI khác có thể tương tác đáng tin cậy với thế giới. Nó hướng dẫn cách thiết kế các công cụ này đúng đắn để tránh lỗi và chi phí không cần thiết.

Khi nào nên dùng

  • ✓Khi bạn muốn một AI dùng công cụ bên ngoài để lấy thông tin.
  • ✓Khi xác định cách một AI tương tác với một dịch vụ hoặc dữ liệu.
  • ✓Để đảm bảo các công cụ tạo cho AI hoạt động tốt và không bị lỗi.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-tool-builder/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm thế nào để tạo một công cụ để AI cho tôi biết thời tiết ở một thành phố?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent hướng dẫn cách mô tả các công cụ mà AI sẽ dùng, tập trung vào cách giải thích công cụ làm gì và cần thông tin gì. Mô tả quan trọng hơn chính mã, vì đó là phần AI đọc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

Vì sao mô tả công cụ lại quan trọng hơn mã?

AI không nhìn thấy trực tiếp mã của bạn; nó hiểu công cụ qua mô tả và “schema” (cấu trúc dữ liệu). Một mô tả tốt sẽ hướng dẫn AI đúng cách.

“Schema” là gì?

Đó giống như một bản đồ xác định cấu trúc dữ liệu mà công cụ dùng hoặc trả về, đảm bảo mọi thứ được tổ chức và AI hiểu đúng.

“Hallucinate” hoặc “fail silently” nghĩa là gì?

Đây là những lỗi AI có thể mắc. “Hallucinate” là khi AI tự bịa thông tin. “Fail silently” là khi công cụ không hoạt động như mong đợi nhưng AI không cảnh báo về vấn đề.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#3683
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự