Open Skill Market
Back

CLI 使用指南

skill-market 是一个基于 npx 的零安装 CLI 工具。你可以直接在终端搜索、安装和更新适用于 Cursor、Claude Code、Codex CLI 和 GitHub Copilot 的 AI 技能。

环境要求

Node.js 18+(npm 自带 npx)。

命令

列出技能

浏览所有可用技能,可按工具筛选。

npx skill-market list npx skill-market list --tool claude --limit 20

搜索技能

通过关键词在名称、描述和标签中查找技能。

npx skill-market search react npx skill-market search "code review"

安装技能

下载并安装技能到目标工具的技能目录。

npx skill-market install mem-search --tool cursor npx skill-market install mem-search --tool claude

更新技能

检查并应用更新。支持单个技能或 --all 批量更新。

npx skill-market update mem-search --tool cursor npx skill-market update --all --tool cursor

扫描技能

检查技能的安全性和质量,无需安装。

npx skill-market scan brainstorming --json npx skill-market scan --installed --tool cursor

移除技能

从目标工具中卸载技能。

npx skill-market remove mem-search --tool cursor npx skill-market remove mem-search --tool cursor --yes

参数

--tool <名称> 目标工具:cursor、claude、codex 或 copilot。默认:cursor。
--dir <路径> 覆盖默认安装目录。
--check 仅检查更新状态,不写入文件。
--json 输出结构化 JSON,便于脚本和自动化。
--limit <n> 限制 list 和 search 的返回结果数量。
--yes 匹配到多个技能时自动选择第一个。
--all 一次性更新所有已安装的技能(仅 update 命令)。
--force 跳过安全检查提示,直接进行安装。
--installed 对于 scan 命令:检查已安装的技能而非仓库。

示例

# 列出 Cursor 的前 20 个技能 npx skill-market list --tool cursor --limit 20   # 搜索 React 相关技能 npx skill-market search react   # 为 Claude Code 安装技能 npx skill-market install mem-search --tool claude   # 检查是否有可用更新 npx skill-market update mem-search --check   # 批量更新 Codex CLI 的所有技能 npx skill-market update --all --tool codex   # 以 JSON 格式输出结果 npx skill-market list --json --limit 50   # 扫描已安装技能的安全问题 npx skill-market scan --installed --tool cursor   # 安全移除技能 npx skill-market remove mem-search --tool cursor --yes   # 以 JSON 格式输出扫描的安全详情 npx skill-market scan brainstorming --json

安全与质量检测

安装过程中,CLI 会自动扫描技能的安全风险(危险代码、凭证访问)和质量指标(文档、结构)。使用 --force 可跳过提示。

🔒

Security Detection

Scans for dangerous patterns like credential access, shell execution, and file operations.

Quality Assessment

Evaluates documentation, structure, and testability of skills.

Smart Prompts

Low risk = auto-install. High risk or poor quality = user confirmation or --force flag.

🔍

Pre-Install Audit

Use 'scan' command to check any skill before installation.

每个工具有默认目录,可通过 --dir 覆盖。

Cursor --tool cursor ~/.cursor/skills/
Claude Code --tool claude ~/.claude/skills/
Codex CLI --tool codex ~/.codex/skills/
GitHub Copilot --tool copilot ~/.config/github-copilot/skills/