skills-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkills CLI
Skills CLI
Use this skill to help users work with the open Agent Skills ecosystem through the CLI.
skills使用本skill帮助用户通过 CLI操作开放的Agent Skills生态系统。
skillsOverview
概述
The CLI is the package manager for installable Agent Skills. Use it to discover skills, install them with the right flags, and manage them after installation.
skillsExamples below use , but is the same workflow if Bun is not available in the user's environment.
bunx skillsnpx skillsAlways prefer the current CLI syntax:
bash
bunx skills add <source> --skill <name>Do not use older examples.
owner/repo@skill-nameskills以下示例使用,如果用户环境中没有Bun,的使用流程完全相同。
bunx skillsnpx skills请始终使用当前CLI语法:
bash
bunx skills add <source> --skill <name>请勿使用旧版的示例。
owner/repo@skill-nameWhen to Use
使用场景
Use this skill when the user:
- asks "find a skill for X", "is there a skill for X", or "how do I do X" and X sounds like a reusable workflow
- asks "can you do X" and X sounds like a specialized capability that may already exist as a skill
- wants help with ,
bunx skills,npx skills, skill package installation, orskills.shskills-lock.json - wants to install a skill for a specific agent such as Codex or OpenCode
- wants to list, check, update, remove, restore, sync, back up, or initialize installed skills
- wants help searching for workflows, tools, templates, or domain-specific capabilities such as design, testing, deployment, documentation, or code review
Do not use this skill when the user already has a local skill and wants help writing or improving its contents. In that case, use a skill-authoring workflow instead.
在以下场景下使用本skill:
- 用户询问“为X找一个skill”、“有没有针对X的skill”或“我该如何做X”,且X听起来是可复用的工作流
- 用户询问“你能做X吗”,且X听起来是可能已作为skill存在的特定能力
- 用户需要关于、
bunx skills、npx skills、skill包安装或skills.sh的帮助skills-lock.json - 用户想要为特定agent(如Codex或OpenCode)安装skill
- 用户想要列出、检查、更新、移除、恢复、同步、备份或初始化已安装的skills
- 用户需要帮助搜索工作流、工具、模板或特定领域的能力,如设计、测试、部署、文档或代码评审
当用户已有本地skill并需要帮助编写或改进其内容时,请勿使用本skill,此时应使用skill创作工作流。
Discovery Workflow
发现工作流
When a user needs a skill, follow this sequence:
- Identify the domain and task. Examples: React performance, PR review, changelog generation, PDF extraction. Also judge whether the task is common enough that a reusable skill is likely to exist.
- Check skills.sh first. Prefer well-known, well-installed skills when the domain is already covered there.
- If the leaderboard does not clearly answer the need, search with:
bash
bunx skills find <query>- Verify quality before recommending anything:
- install count: prefer skills with 1K+ installs and be cautious with anything under 100
- source reputation: prefer official or well-established maintainers such as ,
openai,anthropics, or similarly trusted publishersmicrosoft - repository quality: check the source repository and treat skills from repos with fewer than 100 stars skeptically
- Present the options clearly.
Include the skill name, what it helps with, the install count and source, why it looks trustworthy, the install command, and a link to learn more on .
skills.sh - Offer installation help if the user wants to proceed.
- If nothing fits, say so directly, help with the task using your general capabilities, and mention that the user can create their own package with .
bunx skills init
当用户需要skill时,请遵循以下步骤:
- 确定领域和任务。 示例:React性能优化、PR评审、变更日志生成、PDF提取。 同时判断该任务是否足够常见,大概率存在可复用的skill。
- 首先查看skills.sh。 当该领域已有覆盖时,优先选择知名、安装量高的skills。
- 如果排行榜无法明确满足需求,使用以下命令搜索:
bash
bunx skills find <query>- 在推荐前验证质量:
- 安装量:优先选择安装量1K+的skills,对安装量低于100的保持谨慎
- 来源可信度:优先选择官方或知名维护者,如、
openai、anthropics或其他可信发布者microsoft - 仓库质量:检查源仓库,对星数少于100的仓库中的skill保持怀疑
- 清晰呈现选项。
包含skill名称、适用场景、安装量和来源、可信原因、安装命令,以及上的详情链接。
skills.sh - 如果用户需要,提供安装帮助。
- 如果没有合适的skill,直接告知用户,使用通用能力帮助完成任务,并提及用户可以使用创建自己的包。
bunx skills init
Installation Quick Reference
安装速查指南
Common sources
常见来源
bash
undefinedbash
undefinedGitHub shorthand
GitHub简写
bunx skills add xixu-me/skills
bunx skills add xixu-me/skills
Full GitHub URL
完整GitHub URL
bunx skills add https://github.com/xixu-me/skills
bunx skills add https://github.com/xixu-me/skills
Direct path to one skill inside a repo
仓库内单个skill的直接路径
bunx skills add https://github.com/xixu-me/skills/tree/main/skills/skills-cli
bunx skills add https://github.com/xixu-me/skills/tree/main/skills/skills-cli
GitLab URL
GitLab URL
bunx skills add https://gitlab.com/org/repo
bunx skills add https://gitlab.com/org/repo
Any git URL
任意Git URL
bunx skills add git@github.com:owner/repo.git
bunx skills add git@github.com:owner/repo.git
Local package path
本地包路径
bunx skills add ./my-local-skills
undefinedbunx skills add ./my-local-skills
undefinedCommon install patterns
常见安装模式
bash
undefinedbash
undefinedList skills in a package without installing
列出包内可用skill但不安装
bunx skills add <source> --list
bunx skills add <source> --list
Install one skill
安装单个skill
bunx skills add <source> --skill skills-cli
bunx skills add <source> --skill skills-cli
Install multiple skills
安装多个skills
bunx skills add <source> --skill pr-review --skill commit
bunx skills add <source> --skill pr-review --skill commit
Install globally
全局安装
bunx skills add <source> --skill skills-cli -g -y
bunx skills add <source> --skill skills-cli -g -y
Install to a specific agent
为特定agent安装
bunx skills add <source> --skill skills-cli -a codex -y
bunx skills add <source> --skill skills-cli -a codex -y
Install all skills to all agents
为所有agent安装所有skills
bunx skills add <source> --all
bunx skills add <source> --all
Install all skills to one agent
为单个agent安装所有skills
bunx skills add <source> --skill '*' -a codex -y
bunx skills add <source> --skill '*' -a codex -y
Copy files instead of symlinking
复制文件而非创建符号链接
bunx skills add <source> --skill skills-cli -a codex --copy -y
undefinedbunx skills add <source> --skill skills-cli -a codex --copy -y
undefinedInstallation methods
安装方式
When the user is choosing how to install:
- symlink is the default and usually the best choice because updates stay centralized
- creates independent copies and is the fallback when symlinks are unsupported or inconvenient
--copy
If the user only asks to install a skill, prefer the default symlink workflow unless they mention CI packaging, portability, filesystem restrictions, or explicitly ask for copies.
当用户选择安装方式时:
- 符号链接是默认方式,通常是最佳选择,因为更新会集中进行
- 会创建独立副本,是符号链接不支持或不方便时的备选方案
--copy
如果用户仅要求安装skill,优先使用默认的符号链接工作流,除非用户提到CI打包、可移植性、文件系统限制或明确要求复制。
Important flags
重要参数
| Flag | Use |
|---|---|
| install one or more named skills |
| target specific agents such as |
| install at user scope instead of project scope |
| skip prompts |
| list available skills in a package |
| copy instead of symlink |
| shorthand for all skills to all agents |
| 参数 | 用途 |
|---|---|
| 安装一个或多个指定名称的skills |
| 针对特定agent,如 |
| 在用户范围而非项目范围安装 |
| 跳过提示 |
| 列出包内可用的skills |
| 复制文件而非创建符号链接 |
| 为所有agent安装所有skills的简写 |
Managing Installed Skills
管理已安装的Skills
Use these commands for ongoing maintenance:
bash
undefined使用以下命令进行日常维护:
bash
undefinedList installed skills
列出已安装的skills
bunx skills ls
bunx skills ls -g
bunx skills ls -a codex
bunx skills ls --json
bunx skills ls
bunx skills ls -g
bunx skills ls -a codex
bunx skills ls --json
Check for updates
检查更新
bunx skills check
bunx skills check
Update installed skills
更新已安装的skills
bunx skills update
bunx skills update
Remove installed skills
移除已安装的skills
bunx skills remove my-skill
bunx skills remove my-skill -a codex
bunx skills remove -g my-skill
bunx skills remove --all
bunx skills remove my-skill
bunx skills remove my-skill -a codex
bunx skills remove -g my-skill
bunx skills remove --all
Initialize a new skill package
初始化新的skill包
bunx skills init
bunx skills init my-skill
bunx skills init
bunx skills init my-skill
Restore from skills-lock.json
从skills-lock.json恢复
bunx skills experimental_install
bunx skills experimental_install
Sync node_modules skills into agent directories
将node_modules中的skills同步到agent目录
bunx skills experimental_sync
bunx skills experimental_sync -a codex -y
When the user asks to initialize a skill, explain whether they want:
- `bunx skills init` to create `SKILL.md` in the current directory
- `bunx skills init <name>` to create a new subdirectory containing `SKILL.md`bunx skills experimental_sync
bunx skills experimental_sync -a codex -y
当用户询问初始化skill时,说明他们的需求:
- `bunx skills init`在当前目录创建`SKILL.md`
- `bunx skills init <name>`创建包含`SKILL.md`的新子目录Related Tool: Skills Vault
相关工具:Skills Vault
If the user wants declarative backup and restore of installed skills across machines or teams, use Skills Vault.
Skills Vault is a separate CLI companion for the ecosystem. It is not a installable skill source. Use it when the user wants to snapshot installed skills into a manifest, preview restore commands, or reproduce the same setup elsewhere.
skillsskills addCommon companion commands:
bash
undefined如果用户需要跨机器或团队对已安装的skills进行声明式备份和恢复,请使用Skills Vault。
Skills Vault是生态系统的独立CLI配套工具,它不是可通过安装的skill源。当用户明确需要可移植的清单工作流、跨机器备份恢复或团队共享已安装的skill配置时,使用本工具。
skillsskills add常用配套命令:
bash
undefinedBack up installed skills into skvlt.yaml
将已安装的skills备份到skvlt.yaml
bunx skvlt backup
bunx skvlt backup
Preview a restore
预览恢复操作
bunx skvlt restore --dry-run
bunx skvlt restore --dry-run
Restore everything from the manifest
从清单恢复所有内容
bunx skvlt restore --all
bunx skvlt restore --all
Diagnose the local environment
诊断本地环境
bunx skvlt doctor
Prefer this tool over `skills experimental_*` when the user explicitly wants a portable manifest workflow, cross-machine backup and restore, or team-sharing of installed skill setups.bunx skvlt doctor
当用户明确需要可移植的清单工作流、跨机器备份恢复或团队共享已安装的skill配置时,优先使用本工具而非`skills experimental_*`命令。Recommendation Format
推荐格式
When recommending a skill, keep the answer concrete and installable.
Use a structure like this:
text
I found a skill that should fit.
Skill: <skill-name>
Why it matches: <one sentence>
Source: <owner/repo or URL>
Quality check: <install count / source reputation / repository confidence note>
Install:
bunx skills add <source> --skill <skill-name> [optional flags]
Learn more: https://skills.sh/<publisher>/<package>/<skill-name>
If you want, I can install it for <agent-or-scope>.If the user mentions a target agent or scope, include it in the command. Examples:
bash
bunx skills add <source> --skill <skill-name> -a codex -y
bunx skills add <source> --skill <skill-name> -g -yExample:
text
I found a skill that might help.
Skill: screenshot
Why it matches: it focuses on OS-level desktop and window screenshot capture.
Source: openai/skills
Quality check: high install volume, trusted publisher, and a widely used source repository.
Install:
bunx skills add openai/skills --skill screenshot
Learn more: https://skills.sh/openai/skills/screenshot推荐skill时,请保持回答具体且可直接安装。
使用如下结构:
text
我找到了一个符合需求的skill。
Skill: <skill-name>
匹配原因:<一句话说明>
来源:<owner/repo或URL>
质量验证:<安装量/来源可信度/仓库可信度说明>
安装命令:
bunx skills add <source> --skill <skill-name> [可选参数]
了解更多:https://skills.sh/<publisher>/<package>/<skill-name>
如果需要,我可以为<agent或范围>安装它。如果用户提到了目标agent或范围,请在命令中包含。示例:
bash
bunx skills add <source> --skill <skill-name> -a codex -y
bunx skills add <source> --skill <skill-name> -g -y示例:
text
我找到了一个可能有帮助的skill。
Skill: screenshot
匹配原因:专注于系统级桌面和窗口截图捕获。
来源:openai/skills
质量验证:安装量高、发布者可信、仓库被广泛使用。
安装命令:
bunx skills add openai/skills --skill screenshot
了解更多:https://skills.sh/openai/skills/screenshotCommon Skill Categories
常见Skill类别
When the user's wording is vague, map it to likely categories:
| Category | Example queries |
|---|---|
| Web Development | |
| Testing | |
| DevOps | |
| Documentation | |
| Code Quality | |
| Design | |
| Productivity | |
当用户的表述模糊时,将其映射到可能的类别:
| 类别 | 示例查询 |
|---|---|
| Web开发 | |
| 测试 | |
| DevOps | |
| 文档 | |
| 代码质量 | |
| 设计 | |
| 生产力 | |
Search Tips
搜索技巧
- Use specific keywords. is better than just
react testing.testing - Try alternative terms. If fails, try
deployordeployment.ci-cd - Check popular sources first. Many strong skills come from established publishers.
- If the first search is too broad, narrow by domain plus task.
- 使用具体关键词。比仅
react testing更好。testing - 尝试替代术语。如果搜索无果,试试
deploy或deployment。ci-cd - 首先检查热门来源。很多优质skills来自知名发布者。
- 如果第一次搜索结果太宽泛,通过“领域+任务”缩小范围。
Common Mistakes
常见错误
- Recommending a skill from search results without checking whether it looks established.
- Forgetting to specify when the user asked for one particular agent.
-a <agent> - Treating like a real help command. Use
bunx skills find --helpfor command help instead.bunx skills --help - Assuming no skill exists after one weak search term. Try a more specific or adjacent query first.
- 未检查是否成熟就推荐搜索结果中的skill。
- 当用户指定了某个agent时,忘记添加参数。
-a <agent> - 将当作真正的帮助命令。应使用
bunx skills find --help获取命令帮助。bunx skills --help - 一次搜索结果不理想就假设不存在相关skill。先尝试更具体或相近的关键词。
Troubleshooting
故障排除
If the user hits an error or confusing result:
- "No skills found" - suggest a better query, check skills.sh, or help directly and mention
bunx skills init - interactive prompts in automation or CI - add
-y - wrong installation scope - switch between project install and
-g - symlink issues - retry with
--copy - uncertainty about available package contents - run
bunx skills add <source> --list - uncertainty about installed state - run or
bunx skills lsbunx skills ls --json - portable backup or restore across machines - mention Skills Vault and its /
backupworkflowrestore --dry-run
When you are unsure about exact flags, use:
bash
bunx skills --help如果用户遇到错误或困惑的结果:
- “未找到skills” - 建议更好的查询词,查看skills.sh,或直接提供帮助并提及
bunx skills init - 自动化或CI中出现交互式提示 - 添加参数
-y - 安装范围错误 - 在项目安装和之间切换
-g - 符号链接问题 - 使用重试
--copy - 不确定包内内容 - 运行
bunx skills add <source> --list - 不确定安装状态 - 运行或
bunx skills lsbunx skills ls --json - 跨机器的可移植备份和恢复 - 提及Skills Vault及其/
backup工作流restore --dry-run
当你不确定具体参数时,使用:
bash
bunx skills --help