agent-builder by shareai-lab/learn-claude-code
npx skills add https://github.com/shareai-lab/learn-claude-code --skill agent-builder构建适用于任何领域的 AI 智能体——客户服务、研究、运营、创意工作或专业业务流程。
模型已经知道如何成为一个智能体。你的工作是不要妨碍它。
智能体并非复杂的工程。它是一个简单的循环,邀请模型采取行动:
LOOP:
Model sees: context + available capabilities
Model decides: act or respond
If act: execute capability, add result, continue
If respond: return to user
仅此而已。 魔力不在于代码——而在于模型。你的代码只是提供了机会。
智能体可以执行的原子操作:搜索、读取、创建、发送、查询、修改。
设计原则:从 3-5 个能力开始。仅当智能体因缺少某个能力而持续失败时,才添加更多。
按需注入的领域专业知识:政策、工作流程、最佳实践、模式。
设计原则:让知识可用,而非强制。在相关时加载,而非预先加载。
对话历史——将行动连接成连贯行为的线索。
设计原则:上下文是宝贵的。隔离嘈杂的子任务。截断冗长的输出。保护清晰度。
在构建之前,请理解:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
关键:信任模型。不要过度设计。不要预先指定工作流程。赋予它能力,让它去推理。
从简单开始。仅当实际使用揭示需求时才增加复杂度:
| 级别 | 添加什么 | 何时添加 |
|---|---|---|
| 基础 | 3-5 个能力 | 总是从这里开始 |
| 规划 | 进度跟踪 | 多步骤任务失去连贯性时 |
| 子智能体 | 隔离的子智能体 | 探索污染上下文时 |
| 技能 | 按需知识 | 需要领域专业知识时 |
大多数智能体永远不需要超越第 2 级。
商业:CRM 查询、电子邮件、日历、审批 研究:数据库搜索、文档分析、引用 运营:监控、工单、通知、升级 创意:资产生成、编辑、协作、评审
模式是通用的。只有能力会改变。
| 模式 | 问题 | 解决方案 |
|---|---|---|
| 过度设计 | 在需要之前增加复杂度 | 从简单开始 |
| 能力过多 | 模型困惑 | 从 3-5 个开始 |
| 僵化的工作流程 | 无法适应 | 让模型决定 |
| 预先加载知识 | 上下文膨胀 | 按需加载 |
| 微观管理 | 削弱智能 | 信任模型 |
哲学与理论:
references/agent-philosophy.md - 深入探讨智能体为何有效实现:
references/minimal-agent.py - 完整可运行的智能体(约 80 行)references/tool-templates.py - 能力定义references/subagent-pattern.py - 上下文隔离脚手架:
scripts/init_agent.py - 生成新的智能体项目从:“我如何让系统做 X?” 到:“我如何让模型能够做 X?”
从:“这个任务的工作流程是什么?” 到:“哪些能力有助于完成这个任务?”
最好的智能体代码几乎是枯燥的。简单的循环。清晰的能力。干净的上下文。魔力不在于代码。
赋予模型能力和知识。信任它去解决其余问题。
每周安装量
107
代码仓库
GitHub 星标数
37.0K
首次出现
2026 年 1 月 21 日
安全审计
安装于
opencode87
codex86
gemini-cli84
github-copilot81
claude-code76
cursor75
Build AI agents for any domain - customer service, research, operations, creative work, or specialized business processes.
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.
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.
Domain expertise injected on-demand: policies, workflows, best practices, schemas.
Design principle : Make knowledge available, not mandatory. Load it when relevant, not upfront.
The conversation history - the thread connecting actions into coherent behavior.
Design principle : Context is precious. Isolate noisy subtasks. Truncate verbose outputs. Protect clarity.
Before building, understand:
CRITICAL : Trust the model. Don't over-engineer. Don't pre-specify workflows. Give it capabilities and let it reason.
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.
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.
| 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 |
Philosophy & Theory:
references/agent-philosophy.md - Deep dive into why agents workImplementation :
references/minimal-agent.py - Complete working agent (~80 lines)references/tool-templates.py - Capability definitionsreferences/subagent-pattern.py - Context isolationScaffolding :
scripts/init_agent.py - Generate new agent projectsFrom : "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.
Weekly Installs
107
Repository
GitHub Stars
37.0K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode87
codex86
gemini-cli84
github-copilot81
claude-code76
cursor75
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
157,400 周安装