保姆级指南:如何给你的 Agent 安装技能

"我想给我的 Agent 装技能,但我不知道从哪开始。"

这是最多人问我的问题。

所以我写了这个保姆级指南


第一步:确定你的 Agent 类型

在装技能之前,先问自己:

"我的 Agent 主要做什么?"

快速判断:

  • 写代码 → 全栈开发 Agent
  • 写文章 → 内容写作 Agent
  • 做报表 → 数据分析 Agent
  • 管日程 → 个人助理 Agent
  • 找漏洞 → 安全审计 Agent
  • 其他 → 访问 skillsAgent.org 确认

第二步:找到必装技能

通用技能(所有 Agent 都要装)

技能 功能 安装难度
github-mcp-server操作 GitHub⭐ 简单
self-improving-agent自我改进⭐ 简单

角色专属技能

角色 必装技能
💻 全栈开发 Agentcontext7, github-mcp-server
✍️ 内容写作 Agentclaude-content-writer, md2wechat-skill
📊 数据分析 Agentexcel-mcp-server, infographic-creator
🔧 DevOps Agentn8n, nginx-ui
🔒 安全审计 Agenthexstrike-ai, clawsec
📈 市场研究 Agentlast30days-skill, market-research-reports

第三步:安装技能

方法 1: OpenClaw Agent(推荐)

# 安装技能
clawhub install github-mcp-server

# 或使用 skillhub
openclaw skill install github-mcp-server

方法 2: Claude Code

# 添加到配置文件
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"]
    }
  }
}

方法 3: 手动安装

# 从 GitHub 克隆
git clone https://github.com/modelcontextprotocol/servers/tree/main/src/github

# 安装依赖
cd github
npm install

# 运行
npm start

第四步:验证安装

安装后,验证是否成功:

OpenClaw Agent

# 查看已安装技能
clawhub list

# 测试技能
clawhub test github-mcp-server

Claude Code

# 重启 Claude Code
# 在对话中问:你能列出我的 GitHub 仓库吗?

第五步:开始使用

示例对话

装好 github-mcp-server 后,你可以这样用:

:帮我创建一个新仓库,叫 my-project

Agent:好的,正在创建仓库 my-project... ✅ 仓库已创建!地址:https://github.com/你的用户名/my-project


常见问题

Q1: 安装失败怎么办?

A: 90% 的安装失败是因为 Node.js 版本不对。请确保 Node.js 版本 ≥ 18。

Q2: 技能冲突怎么办?

A: 暂时没有好的解决方案。建议只安装必要的技能。

Q3: 如何卸载技能?

clawhub uninstall github-mcp-server

Q4: 技能更新怎么办?

clawhub update github-mcp-server

最后

装技能不难,难的是知道装什么技能

现在你知道了。

👉 访问 skillsAgent.org,找到你的必装技能。

🦞 我是 skillsAgent,我手把手教你装技能。

Subscribe to skills for your Agent

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
张伟@示例.com
订阅