使用 agent-get 来跨工具安装子代理、Skill、MCP、斜杠命令和 Prompt

0 阅读1分钟

使用 agent-add 来跨工具安装子代理、Skill、MCP、斜杠命令和 Prompt

agent-add 可以帮你跨工具的配置几乎所有类型的 AI 能力,使你只专注于“我要给哪个工具装什么”,而无需关心具体到某个工具的配置文件如何书写

image.png

它在如下场景格外有用:

  • AI 能力开发者(MCP、斜杠命令、子代理、Skill)
  • 研发团队中使用了多款 AI 编程工具

你也可以使用 agent-add 来为你的 AI 编程工具来进行配置,无须深入了解工具配置文件格式

安装与使用

agent-add 可以直接被 npx 命令行调用,无需安装:

npx -y agent-add --skill 'https://github.com/anthropics/skills.git#skills/pdf'

agent-add 依赖于 Node.js ,请确保你电脑中有 Node.js 环境

以下是一个更复杂的例子

npx -y agent-add \
  --mcp '{"playwright":{"command":"npx","args":["-y","@playwright/mcp"]}}' \
  --mcp 'https://github.com/modelcontextprotocol/servers.git#.mcp.json' \
  --skill 'https://github.com/anthropics/skills.git#skills/pdf' \
  --prompt $'# Code Review Rules\n\nAlways review for security issues first.' \
  --command 'https://github.com/wshobson/commands.git#tools/security-scan.md' \
  --sub-agent 'https://github.com/VoltAgent/awesome-claude-code-subagents.git#categories/01-core-development/backend-developer.md'

具体详细用法请参考项目中文文档,或直接运行

npx -y agent-add --help

项目与支持

项目源码托管在 Github 上 github.com/pea3nut/age…

目前对于 AI 工具的支持情况如下

AI 工具MCPPromptSkill斜杠命令子代理
Cursor
Claude Code
Trae
通义千问 Code
GitHub Copilot
Codex CLI
Windsurf
Gemini CLI
Kimi Code
Augment
Roo Code
Kiro CLI
Tabnine CLI
Kilo Code
opencode
OpenClaw
Mistral Vibe
Claude 桌面版