/ 目录 / 演练场 / agent-skills-cli
● 社区 Karanjot786 ⚡ 即开即用

agent-skills-cli

作者 Karanjot786 · Karanjot786/agent-skills-cli

Universal CLI for agent skills — browse 40,000+ skills from SkillsMP and sync to Cursor, Claude Code, Copilot, Codex, and Antigravity.

agent-skills-cli is the universal package manager for agent skills: browse a 40k+ skill catalog (SkillsMP), install to any supported agent, and keep versions consistent across tools. Think npm for skills. Great if you work across Cursor + Claude Code + Codex and don't want to manage three separate skill folders manually.

为什么要用

核心特性

实时演示

实际使用效果

agent-skills-cli-skill.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "agent-skills-cli-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Karanjot786/agent-skills-cli",
        "~/.claude/skills/agent-skills-cli"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "agent-skills-cli-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Karanjot786/agent-skills-cli",
        "~/.claude/skills/agent-skills-cli"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "agent-skills-cli-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Karanjot786/agent-skills-cli",
        "~/.claude/skills/agent-skills-cli"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "agent-skills-cli-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Karanjot786/agent-skills-cli",
        "~/.claude/skills/agent-skills-cli"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "agent-skills-cli-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Karanjot786/agent-skills-cli",
        "~/.claude/skills/agent-skills-cli"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "agent-skills-cli-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/Karanjot786/agent-skills-cli",
          "~/.claude/skills/agent-skills-cli"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add agent-skills-cli-skill -- git clone https://github.com/Karanjot786/agent-skills-cli ~/.claude/skills/agent-skills-cli

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: agent-skills-cli

How to install a skill once and have it work in Claude Code + Cursor

👤 Developers using multiple AI-coding tools ⏱ ~10 min beginner

何时使用: You want the same skill available wherever you code.

前置条件
  • CLI installed — npm i -g agent-skills-cli (or per repo docs)
步骤
  1. Search
    agent-skills search 'ga4 event tracking'✓ 已复制
    → Ranked list from SkillsMP
  2. Install
    agent-skills install event-tracking-skill --targets claude-code,cursor✓ 已复制
    → Skill files placed in each tool's skills dir
  3. Verify
    agent-skills list --targets all✓ 已复制
    → Table showing skill installed in both

结果: One install, two (or more) tools.

注意事项
  • Some skills are tool-specific — CLI flags incompatibilities during install

Pin skill versions across a team

👤 Teams wanting reproducible skill setups ⏱ ~15 min intermediate

何时使用: You want every teammate running the same skill versions.

步骤
  1. Generate lockfile
    agent-skills lock --scope workspace✓ 已复制
    → skills.lock file
  2. Install from lockfile
    agent-skills install --frozen-lockfile✓ 已复制
    → Versions match lockfile exactly

结果: Deterministic skill setup per repo.

Clean up a messy ~/.claude/skills folder

👤 Developers with accreted skills from random git clones ⏱ ~30 min intermediate

何时使用: You have 30+ skill folders and no idea what's in use.

步骤
  1. Inventory
    agent-skills inventory ~/.claude/skills — show source, version, last used (if tracked)✓ 已复制
    → Table with origin + version
  2. Replace with managed equivalents
    For each skill that has a SkillsMP equivalent, re-install via the CLI so it's managed.✓ 已复制
    → Migration log

结果: A managed skills folder with consistent provenance.

搭配使用: marketplace-skill

组合

与其他 MCP 搭配,撬动十倍杠杆

agent-skills-cli-skill + marketplace-skill

Discover vetted skills via marketplace, install via CLI

Find a vetted ga4 skill in marketplace, install with agent-skills install to both Claude Code and Cursor.✓ 已复制
agent-skills-cli-skill + awesome-llm-skill

Install individual skills from awesome-llm without cloning the whole repo

Use agent-skills to install just 'lead-research' from the awesome-llm-skills catalog.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
search query Finding a skill 0
install skill, targets? Adding a skill 0
upgrade skill?, targets? Refreshing versions 0
list / inventory scope? Auditing 0
lock scope Team reproducibility 0
remove skill, targets? Cleanup 0

成本与限制

运行它的成本

API 配额
None
每次调用 Token 数
0 (CLI runs outside Claude context)
费用
Free
提示
Pin versions — chasing latest across 30 skills creates churn.

安全

权限、密钥、影响范围

凭据存储: No credentials. Optional: SkillsMP token for private catalog access.
数据出站: CLI fetches from SkillsMP registry

故障排查

常见错误与修复

install fails with 'unknown target'

Tool identifiers: claude-code, cursor, copilot, codex, antigravity. Check agent-skills targets for current list.

验证: agent-skills targets
version conflict between tools

Pin explicit version in skills.lock; don't let each tool drift to latest

替代方案

agent-skills-cli 对比其他方案

替代方案何时用它替代权衡
marketplace-skillYou want vetted skills rather than the full catalogFewer choices
Manual git cloneYou only use one tool and one skillDoesn't scale

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills