跳到正文
Skillpedia
智能体80k · #1715

agent-builder

它能做什么

这项技能讲解 AI 智能体的各个组成部分,以及如何为特定工作塑造一个智能体。适合希望为商业、研究或其他工作定制助手的人。

适用场景

  • ✓当你想为某项具体的商业任务创建 AI 助手时。
  • ✓当你想了解智能体如何工作,例如如何使用工具和规划步骤时。
  • ✓当你需要判断智能体应拥有哪些工具、知识和历史记录时。

技能链接

https://github.com/shareAI-lab/learn-claude-code/blob/main/skills/agent-builder/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/shareAI-lab/learn-claude-code/blob/main/skills/agent-builder/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我设计一个 AI 助手,使用我们的退货政策回答客户问题。”

每周 5 个新技能,1 分钟读完。

工作原理

它解释智能体是一个简单的循环:模型决定是行动还是回复。然后它帮你规划智能体的工具、知识和上下文,从少量工具开始。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

  1. The model IS the agent - Code just runs the loop
  2. Capabilities enable - What it CAN do
  3. Knowledge informs - What it KNOWS how to do
  4. Constraints focus - Limits create clarity
  5. Trust liberates - Let the model reason
  6. 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 definitions
  • references/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.

常见问题

我的智能体应该从多少个工具开始?

技能建议从三到五个工具开始,只有在智能体因缺少某个工具而反复失败时,才增加更多工具。

我需要写很多代码吗?

技能说明,模型承担了大部分工作,因此代码可以保持简单。

它会讲解 Claude Code 或 Cursor 之类的工具吗?

会。它也会讲解 Claude Code 和 Cursor 等工具中智能体内部的工作方式。

详情

作者的原始描述

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

repo: shareAI-lab/learn-claude-code

热度

GitHub 星标
80k
排名
#1715
许可证
MIT
更新时间
2026/10/27

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能