agent-builder
Skill này làm gì
Skill này giải thích các thành phần của một agent AI và cách định hình nó cho một công việc cụ thể. Nó dành cho người muốn một trợ lý tùy chỉnh cho kinh doanh, nghiên cứu hoặc công việc khác.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một trợ lý AI cho một tác vụ kinh doanh cụ thể.
- ✓Khi bạn muốn hiểu cách agent hoạt động, như cách chúng dùng công cụ và lập kế hoạch các bước.
- ✓Khi bạn cần giúp quyết định agent nên có những công cụ, kiến thức và lịch sử nào.
Liên kết skill
https://github.com/shareAI-lab/learn-claude-code/blob/main/skills/agent-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
“Hãy giúp tôi thiết kế một trợ lý AI trả lời câu hỏi của khách hàng dựa trên chính sách đổi trả của chúng tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill giải thích rằng agent là một vòng lặp đơn giản, trong đó model quyết định hành động hoặc trả lời. Sau đó nó giúp bạn lên kế hoạch công cụ, kiến thức và ngữ cảnh cho agent, bắt đầu với vài công 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 Builder
Build AI agents for any domain - customer service, research, operations, creative work, or specialized business processes.
The Core Philosophy
The model already knows how to be an agent. Your job is to get out of the way.
An agent is not complex engineering. It's a simple loop that invites the model to act:
LOOP:
Model sees: context + available capabilities
Model decides: act or respond
If act: execute capability, add result, continue
If respond: return to user
That's it. The magic isn't in the code - it's in the model. Your code just provides the opportunity.
The Three Elements
1. Capabilities (What can it DO?)
Atomic actions the agent can perform: search, read, create, send, query, modify.
Design principle: Start with 3-5 capabilities. Add more only when the agent consistently fails because a capability is missing.
2. Knowledge (What does it KNOW?)
Domain expertise injected on-demand: policies, workflows, best practices, schemas.
Design principle: Make knowledge available, not mandatory. Load it when relevant, not upfront.
3. Context (What has happened?)
The conversation history - the thread connecting actions into coherent behavior.
Design principle: Context is precious. Isolate noisy subtasks. Truncate verbose outputs. Protect clarity.
Agent Design Thinking
Before building, understand:
- Purpose: What should this agent accomplish?
- Domain: What world does it operate in? (customer service, research, operations, creative...)
- Capabilities: What 3-5 actions are essential?
- Knowledge: What expertise does it need access to?
- Trust: What decisions can you delegate to the model?
CRITICAL: Trust the model. Don't over-engineer. Don't pre-specify workflows. Give it capabilities and let it reason.
Progressive Complexity
Start simple. Add complexity only when real usage reveals the need:
| Level | What to add | When to add it |
|---|---|---|
| Basic | 3-5 capabilities | Always start here |
| Planning | Progress tracking | Multi-step tasks lose coherence |
| Subagents | Isolated child agents | Exploration pollutes context |
| Skills | On-demand knowledge | Domain expertise needed |
Most agents never need to go beyond Level 2.
Domain Examples
Business: CRM queries, email, calendar, approvals Research: Database search, document analysis, citations Operations: Monitoring, tickets, notifications, escalation Creative: Asset generation, editing, collaboration, review
The pattern is universal. Only the capabilities change.
Key Principles
- The model IS the agent - Code just runs the loop
- Capabilities enable - What it CAN do
- Knowledge informs - What it KNOWS how to do
- Constraints focus - Limits create clarity
- Trust liberates - Let the model reason
- Iteration reveals - Start minimal, evolve from usage
Anti-Patterns
| Pattern | Problem | Solution |
|---|---|---|
| Over-engineering | Complexity before need | Start simple |
| Too many capabilities | Model confusion | 3-5 to start |
| Rigid workflows | Can't adapt | Let model decide |
| Front-loaded knowledge | Context bloat | Load on-demand |
| Micromanagement | Undercuts intelligence | Trust the model |
Resources
Philosophy & Theory:
references/agent-philosophy.md- Deep dive into why agents work
Implementation:
references/minimal-agent.py- Complete working agent (~80 lines)references/tool-templates.py- Capability definitionsreferences/subagent-pattern.py- Context isolation
Scaffolding:
scripts/init_agent.py- Generate new agent projects
The Agent Mindset
From: "How do I make the system do X?" To: "How do I enable the model to do X?"
From: "What's the workflow for this task?" To: "What capabilities would help accomplish this?"
The best agent code is almost boring. Simple loops. Clear capabilities. Clean context. The magic isn't in the code.
Give the model capabilities and knowledge. Trust it to figure out the rest.
Câu hỏi thường gặp
Agent nên bắt đầu với bao nhiêu công cụ?
Skill khuyên bắt đầu với ba đến năm công cụ và chỉ thêm khi agent liên tục thất bại vì thiếu một công cụ nào đó.
Tôi có cần viết nhiều mã không?
Skill nói model làm phần lớn công việc, nên mã có thể giữ đơn giản.
Nó có giải thích các công cụ như Claude Code hay Cursor không?
Có. Nó cũng đề cập cách các thành phần bên trong agent hoạt động trong các công cụ như Claude Code và Cursor.
Chi tiết
Mô tả gốc của tác giả
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI system" (2) want to understand agent architecture, agentic patterns, or autonomous AI (3) need help with capabilities, subagents, planning, or skill mechanisms (4) ask about Claude Code, Cursor, or similar agent internals (5) want to build agents for business, research, creative, or operational tasks Keywords: agent, assistant, autonomous, workflow, tool use, multi-step, orchestration
Độ phổ biến
- Sao GitHub
- 80k
- Vị trí xếp hạng
- #1715
- Giấy phép
- MIT
- Cập nhật
- 27/10/2026
Bình luận
- …
Thêm skill từ kho mã này
code-review
80kGiúp agent của bạn rà soát mã tìm lỗ hổng bảo mật, lỗi logic, truy vấn chậm và khả năng bảo trì trước khi bạn phát hành.
mcp-builder
80kDạy agent của bạn xây dựng máy chủ MCP cung cấp cho Claude các công cụ, nguồn dữ liệu và prompt mới để kết nối với dịch vụ bên ngoài.
Giúp agent của bạn đọc file PDF, trích xuất văn bản, tạo PDF mới và gộp nhiều tài liệu thành một file.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.