CLI工具集

提供30多种CLI工具,用于替换臃肿的MCP服务器,提高AI代理的效率,适用于开发、部署、测试等多种场景。

  • by grandamenium
  • Shell
  • 本地部署
  • 5 星标
  • 更新于
在 GitHub 查看 grandamenium/cli-agent-tools

使用说明

CLI代理工具

30多种CLI工具,具备用于AI代理的现成Claude Code技能。用高效的CLI替代品替换臃肿的MCP服务器。

为什么选择CLI而不是MCP?

人工智能模型已经在数十亿次终端交互上进行了训练。他们已经知道CLI工具了。MCP服务器增加了不必要的开销:

  • 便宜10-32x -CLI工具使用一小部分令牌(Scalekit基准测试)
  • 72%的上下文浪费 -MCP服务器会在您提出单个问题之前将整个模式转储到您的上下文窗口中
  • 100%对72%的可靠性 -CLI命令成功可靠;MCP服务器的故障率为28%

一个典型的MCP服务器(如GitHub)会提供93个工具,仅初始化就需要花费约55000个令牌。等同物 gh CLI技能?约800个代币。

包含什么

8个类别的30个工具,每个类别都有一个 SKILL.md (克劳德代码技能)和 install.sh:

类别 工具
云 AWS,CLOUD,AZ。
开发运维 gh、docker、kubectl、terraform
部署 vercel,铁路,netlify,飞,firebase,牧马人
数据库 supabase,turso,planetscale。
媒体 ffmpeg、imagemagick、混音器、yt-dlp
沟通 条纹、重新发送、斜纹
测试 剧作家,httpie
效用 jq、ripgrep、ngrok、pandoc、gh副驾驶、opencli

快速开始

使用单一技能

复制任何 SKILL.md 进入你的项目 .claude/skills/ 目录:

# Example: Add the GitHub CLI skill
mkdir -p .claude/skills
cp tools/github/SKILL.md .claude/skills/github.md

Claude Code将自动掌握技能并使用 gh 而不是GitHub MCP服务器。

安装工具

# Install a specific tool
./install-all.sh --tool github

# Install a category
./install-all.sh --category cloud    # Installs aws, gcloud, az

# Install everything
./install-all.sh --all

# See what's available
./install-all.sh --list

一次安装所有技能

# Copy all skills to your project
for dir in tools/*/; do
  tool=$(basename "$dir")
  cp "$dir/SKILL.md" ".claude/skills/${tool}.md"
done

全局安装(所有项目)

# Copy skills to your global Claude Code config
mkdir -p ~/.claude/skills
for dir in tools/*/; do
  tool=$(basename "$dir")
  cp "$dir/SKILL.md" "$HOME/.claude/skills/${tool}.md"
done

技能格式

每 SKILL.md 遵循一致的结构:

---
name: tool-name
description: What the tool does and when to use it
---

# Tool Name

## Authentication (if applicable)
## Common Commands
## Agent Best Practices
## Example Workflows

技能使用YAML frontmatter,因此Claude Code可以自动索引和发现它们。

注册表

这 registry.json 该文件包含所有30个工具的元数据,包括:

  • 安装命令(brew、npm、pip)
  • 官方文档URL
  • 源代码存储库
  • 类别

贡献

要添加新工具,请执行以下操作:

  1. 创建 tools/<tool-name>/SKILL.md 使用YAML frontmatter
  2. 创建 tools/<tool-name>/install.sh
  3. 将工具添加到 registry.json
  4. 提交PR

许可证

麻省理工学院