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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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.
Độ 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
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.