mcpField
A
awesome-agent-skills

awesome-agent-skills

本地服务
github.com/shadowrootdevAI 与智能体2738 周前更新

关于 awesome-agent-skills

Awesome Agent Skills MCP Server 是一个 MCP 服务,提供来自 VoltAgent Awesome Agent Skills 合集的 100 多个 AI Agent 技能。适合希望让 AI 助手调用专业技能的开发者,并可通过 npx 直接启动。

主要功能

  1. 01提供 100 多个经整理的 AI Agent 技能
  2. 02自动从 VoltAgent 仓库同步和更新技能
  3. 03内置缓存机制,加快启动速度
  4. 04支持 list_skills、get_skill、invoke_skill、refresh_skills 工具

适用场景

  1. 01在 VS Code / GitHub Copilot 中调用 react-best-practices 技能审查 React 组件
  2. 02在 Claude Desktop 中查询 Next.js 开发相关的技能
  3. 03通过 code-review 或 commit 技能辅助代码审查与提交信息编写

MCP 相关

该项目是一个 MCP 服务,向 MCP 客户端暴露技能列表、技能详情、技能调用和刷新等工具。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"shadowrootdev-awesome-agent-skills": {
"command": "npx",
"args": [
"-y",
"awesome-agent-skills-mcp"
],
"env": {
"SKILLS_REPO_URL": "<SKILLS_REPO_URL>",
"SKILLS_CACHE_DIR": "<SKILLS_CACHE_DIR>",
"SKILLS_SYNC_INTERVAL": "<SKILLS_SYNC_INTERVAL>",
"LOG_LEVEL": "<LOG_LEVEL>"
}
}
}
}
启动命令npx -y awesome-agent-skills-mcp
需要配置的环境变量
SKILLS_REPO_URLURL of the skills repository to sync from
SKILLS_CACHE_DIRDirectory path for caching skills data
SKILLS_SYNC_INTERVALAuto-sync interval in minutes (0 to disable)
LOG_LEVELLogging level (debug, info, warn, error)

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npmawesome-agent-skills-mcp1.0.2

工具

4

收录的工具列表 · 更新于 2 周前

参数类型必填说明
filterstring否按名称或描述搜索技能的可选筛选条件
sourceenum否按技能来源筛选all | repository | local

详细介绍

Awesome Agent Skills MCP 服务

CI Security Audit CodeQL npm version npm downloads License: MIT Node.js Version MCP Compatible GitHub release GitHub stars

一个 Model Context Protocol (MCP) 服务,可访问来自 VoltAgent Awesome Agent Skills 集合的 100+ 精选 AI Agent 技能。

利用来自 Anthropic、Vercel、Trail of Bits、Hugging Face、Stripe、Expo 等众多领先组织的技能,将你的 AI 助手转变为专业专家。

🚀 快速开始

npx awesome-agent-skills-mcp

就是这样!添加到你的 MCP 客户端配置中,即可开始使用 100+ AI 技能。


目录


功能

  • 100+ 精选技能 - 访问来自顶级组织的技能,包括 Anthropic、Vercel、Trail of Bits、Hugging Face 等
  • 自动同步 - 自动从 VoltAgent 仓库获取并更新技能
  • 兼容 MCP 2024-11-05 - 与最新的 Model Context Protocol 规范完全兼容
  • 多客户端支持 - 适用于 Claude、GitHub Copilot、OpenCode 以及任何兼容 MCP 的客户端
  • 智能缓存 - 基于 JSON 的高效缓存,实现快速启动
  • 类型安全 - 使用 TypeScript 和 Zod 构建,支持运行时验证
  • 零配置 - 开箱即用,配有合理的默认值

快速开始

使用 npx(推荐)
npx awesome-agent-skills-mcp
全局安装
npm install -g awesome-agent-skills-mcp
awesome-agent-skills-mcp

安装

前置条件
  • Node.js >= 20.0.0
  • npm 或 yarn
从 npm 安装
npm install awesome-agent-skills-mcp
从源码安装
git clone https://github.com/shadowrootdev/awesome-agent-skills-mcp.git
cd awesome-agent-skills-mcp
npm install
npm run build

配置

VS Code / GitHub Copilot

在项目中创建或更新 .vscode/mcp.json:

{
  "servers": {
    "awesome-agent-skills": {
      "command": "npx",
      "args": ["awesome-agent-skills-mcp"]
    }
  }
}

或使用本地安装:

{
  "servers": {
    "awesome-agent-skills": {
      "command": "node",
      "args": ["/path/to/awesome-agent-skills-mcp/dist/index.js"]
    }
  }
}

重要:添加配置后,请完全退出 VS Code(Cmd+Q / Alt+F4)并重新打开,以使更改生效。

Claude Desktop

添加到你的 Claude Desktop 配置中(macOS 上为 ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "awesome-agent-skills": {
      "command": "npx",
      "args": ["awesome-agent-skills-mcp"]
    }
  }
}
OpenCode

添加到 ~/.config/opencode/opencode.json:

{
  "mcp": {
    "awesome-agent-skills": {
      "type": "local",
      "command": ["npx", "awesome-agent-skills-mcp"],
      "enabled": true
    }
  }
}
环境变量
VariableDefaultDescription
SKILLS_REPO_URLhttps://github.com/VoltAgent/awesome-agent-skills.gitSkills 仓库 URL
SKILLS_CACHE_DIR.cache缓存目录路径
SKILLS_SYNC_INTERVAL60自动同步间隔(分钟,0 表示禁用)
LOG_LEVELinfo日志级别(debug、info、warn、error)

可用的 Skills

该服务提供对来自领先组织的 100+ 个 skills 的访问:

Anthropic

文档处理、演示文稿创建、电子表格操作、PDF 处理、算法艺术、MCP 构建等。

SkillDescription
docx创建、编辑和分析 Word 文档
pptxPowerPoint 演示文稿创建和编辑
xlsx带公式的电子表格操作
pdfPDF 处理和表单填写
mcp-builder创建 MCP 服务的指南
webapp-testing基于 Playwright 的 Web 应用测试
Vercel

React 和 Next.js 最佳实践、部署和性能优化。

SkillDescription
react-best-practicesReact 性能优化指南
next-best-practicesNext.js 约定和模式
web-design-guidelinesUI/UX 合规性审查
vercel-deploy将应用部署到 Vercel
Trail of Bits

安全分析、智能合约审计和代码审查工具。

SkillDescription
building-secure-contracts智能合约安全工具包
semgrep-rule-creator创建自定义 Semgrep 规则
property-based-testing基于属性的测试指南
static-analysis静态分析工具
Hugging Face

机器学习模型训练、数据集管理和 Hub 操作。

SkillDescription
hugging-face-cliHF Hub 命令行操作
hugging-face-datasets数据集创建和管理
hugging-face-model-trainer使用 TRL 进行模型微调
hugging-face-evaluation模型评估工作流
Sentry

代码审查、提交约定和 PR 自动化。

SkillDescription
code-reviewSentry 工程代码审查实践
commit约定式提交消息
create-pr遵循 Sentry 约定创建 PR
find-bugsBug 和漏洞检测
还有更多……
  • Stripe - 支付集成最佳实践
  • Expo - React Native 应用开发
  • n8n - 工作流自动化模式
  • Sanity - CMS 最佳实践
  • Neon - 无服务器 Postgres
  • Remotion - 程序化视频创建

MCP 工具

该服务公开四个 MCP 工具:

list_skills

列出所有可用的 skills,支持可选过滤。

// List all skills
{ }

// Filter by source
{ "source": "repository" }

// Filter by tag
{ "tag": "security" }
get_skill

获取特定 skill 的详细信息。

{ "skill_id": "react-best-practices" }
invoke_skill

使用可选参数调用 skill。

{
  "skill_id": "docx",
  "parameters": {
    "document_type": "report"
  }
}
refresh_skills

手动触发从仓库刷新 skills。

{ }

使用示例

在 GitHub Copilot Chat 中
@workspace Use the react-best-practices skill to review my React components
@workspace List all available security-related skills
@workspace Get the stripe-best-practices skill and apply it to my checkout code
在 Claude 中
What skills are available for Next.js development?
Use the code-review skill to analyze my pull request

开发

设置
git clone https://github.com/shadowrootdev/awesome-agent-skills-mcp.git
cd awesome-agent-skills-mcp
npm install
构建
npm run build
运行测试
# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

# Run integration tests only
npm run test:integration
Lint 和格式化
npm run lint
npm run format
项目结构
awesome-agent-skills-mcp/
├── src/
│   ├── index.ts              # Entry point
│   ├── server.ts             # MCP server implementation
│   ├── config.ts             # Configuration management
│   ├── models/
│   │   ├── skill.ts          # Skill type definitions
│   │   ├── parameter.ts      # Parameter schemas
│   │   ├── registry.ts       # SkillRegistry class
│   │   └── repository.ts     # Repository source model
│   ├── services/
│   │   ├── git-sync.ts       # Git repository sync
│   │   ├── skill-parser.ts   # Skill parsing from README
│   │   └── skill-executor.ts # Skill invocation
│   ├── cache/
│   │   └── cache-manager.ts  # JSON-based caching
│   └── utils/
│       └── logger.ts         # Structured logging
├── tests/
│   ├── unit/                 # Unit tests
│   └── integration/          # Integration tests
├── dist/                     # Compiled output
└── .cache/                   # Runtime cache (gitignored)

API 参考

Skill 对象
interface Skill {
  id: string;           // Unique identifier
  name: string;         // Display name
  description: string;  // Short description
  source: 'repository' | 'local';
  sourcePath: string;   // GitHub URL or local path
  content: string;      // Full skill content (markdown)
  parameters: ParameterSchema[];
  metadata: {
    author?: string;
    version?: string;
    tags?: string[];
    requirements?: string[];
    sourceOrg?: string;   // GitHub organization
    sourceRepo?: string;  // GitHub repository
  };
  lastUpdated: Date;
}
参数 Schema
interface ParameterSchema {
  name: string;
  type: 'string' | 'number' | 'boolean' | 'object' | 'array';
  description: string;
  required: boolean;
  default?: unknown;
  enum?: unknown[];
}

故障排除

Skills 未加载
  1. 检查缓存:删除 .cache 目录并重启
  2. 验证网络:确保可以访问 GitHub
  3. 检查日志:设置 LOG_LEVEL=debug 以获取详细输出
GitHub Copilot 看不到 Skills
  1. 需要完全重启:完全退出 VS Code(Cmd+Q)并重新打开
  2. 检查配置路径:确保 .vscode/mcp.json 位于工作区根目录
  3. 验证服务:手动运行 npx awesome-agent-skills-mcp 进行测试
连接错误
# Test the server manually
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | npx awesome-agent-skills-mcp

致谢

本项目建立在开源社区的杰出工作之上:

数据源

VoltAgent Awesome Agent Skills - 由 VoltAgent 维护的精选 AI Agent 技能集合。此 MCP 服务从该仓库获取并提供技能,使其可供兼容 MCP 的 AI 助手使用。

技能贡献者

此集合中的技能由以下领先组织贡献:

  • Anthropic - 文档处理、艺术生成、MCP 构建
  • Vercel - React、Next.js、部署
  • Trail of Bits - 安全分析、智能合约
  • Hugging Face - 机器学习工作流、模型训练
  • Sentry - 代码审查、提交约定
  • Expo - React Native 开发
  • Stripe - 支付集成
  • 以及更多贡献者!
技术

贡献

欢迎贡献!在提交 PR 之前,请阅读我们的贡献指南。

  1. Fork 仓库
  2. 创建你的功能分支(git checkout -b feature/amazing-feature)
  3. 提交你的更改(git commit -m 'Add amazing feature')
  4. 推送到分支(git push origin feature/amazing-feature)
  5. 打开 Pull Request

查看我们的议题模板以报告 bug、请求功能或提问。


文档与演示

GitHub Pages

你可以启用 GitHub Pages 来托管交互式文档或演示:

  1. 创建你的文档(推荐:使用 /docs 文件夹):

    • 在仓库根目录创建 docs/ 目录
    • 添加 index.html 文件,或使用 VitePress 或 Docusaurus 等静态站点生成器
    • 这样可以将文档与源代码分开
  2. 启用 GitHub Pages:

    • 转到仓库的 Settings → Pages
    • 选择 Source:Deploy from a branch
    • 选择 Branch:main 和文件夹 /docs(推荐)或 /(如果要部署整个仓库)
    • 保存并等待部署

这适用于:

  • 交互式 API 文档
  • MCP 服务能力的实时演示
  • 教程演练
  • 技能目录浏览器

注意:建议使用 /docs 文件夹,因为它可以保持文档井然有序并与源代码分开。只有当你想要将整个仓库作为网站部署时,才使用 /(根目录)。


许可证

本项目根据 MIT 许可证授权 - 详情请参见 LICENSE 文件。


相关项目


用 ❤️ 为 AI Agent 社区打造
⭐ 为 Awesome Agent Skills 仓库加星

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。