skill-installer
openai/codex
从精选列表或 GitHub 仓库路径将 Codex 技能安装到 $CODEX_HOME/skills 目录中。当用户请求列出可安装的技能、安装精选技能,或从其他仓库(包括私有仓库)安装技能时,请使用此功能。
...展开全部技能安装程序
用于安装技能。默认情况下,这些技能来自https://github.com/openai/skills/tree/main/skills/.curated,但用户也可以指定其他位置。 实验性技能位于https://github.com/openai/skills/tree/main/skills/.experimental,可通过相同方式进行安装。
根据任务使用相应的辅助脚本:
- 当用户询问可用技能,或未指定具体操作而直接使用该技能时,请列出技能列表。默认列表位于
.curated目录下,但当用户询问实验性技能时,您可以传入--path skills/.experimental参数。 - 当用户提供技能名称时,从精选列表中进行安装。
- 当用户提供 GitHub 仓库/路径(包括私有仓库)时,从该仓库安装技能。
使用辅助脚本安装技能。
交互
列出技能时,根据用户请求的具体上下文,输出内容大致如下。如果用户询问实验性技能,请从.experimental而非.curated中列出,并相应标注来源:
"""
来自 {repo} 的技能:
- skill-1
- skill-2(已安装)
- ... 您想安装哪些技能? """
安装技能后,请告知用户该技能将在其下一次操作时生效。
脚本
所有这些脚本均会使用网络,因此在沙盒中运行时,请在执行这些脚本前请求权限提升。
scripts/list-skills.py(打印包含已安装注释的技能列表)scripts/list-skills.py --format json- 示例(实验性列表):
scripts/list-skills.py --path skills/.experimental scripts/install-skill-from-github.py --repo/ --path <技能路径> [<技能路径> ...] scripts/install-skill-from-github.py --url https://github.com// /tree// - 示例(实验性技能):
scripts/install-skill-from-github.py --repo openai/skills --path skills/.experimental/
行为与选项
- 默认对公开的 GitHub 仓库进行直接下载。
- 如果因身份验证或权限错误导致下载失败,则回退到 Git 稀疏检出。
- 如果目标技能目录已存在,则中止操作。
- 安装到
$CODEX_HOME/skills/(默认路径为~/.codex/skills)。 - 提供多个
--path参数可在单次运行中安装多个技能,除非指定了--name参数,否则每个技能的名称将根据路径的基名生成。 - 选项:
--ref(默认main)、--dest、--method auto|download|git。
注释
- 精选列表通过 GitHub API 从
https://github.com/openai/skills/tree/main/skills/.curated获取。如果无法获取,将说明错误并退出。 - 可通过现有的 Git 凭据或可选的
GITHUB_TOKEN/GH_TOKEN访问私有 GitHub 仓库以进行下载。 - Git 备用方案会优先尝试 HTTPS,其次是 SSH。
- https://github.com/openai/skills/tree/main/skills/.system上的技能已预先安装,因此无需协助用户安装。若用户询问,只需说明此情况。若用户坚持,可下载并覆盖现有文件。
- 已安装的注解来自
$CODEX_HOME/skills。
Skill Installer
Helps install skills. By default these are from https://github.com/openai/skills/tree/main/skills/.curated, but users can also provide other locations. Experimental skills live in https://github.com/openai/skills/tree/main/skills/.experimental and can be installed the same way.
Use the helper scripts based on the task:
- List skills when the user asks what is available, or if the user uses this skill without specifying what to do. Default listing is
.curated, but you can pass--path skills/.experimentalwhen they ask about experimental skills. - Install from the curated list when the user provides a skill name.
- Install from another repo when the user provides a GitHub repo/path (including private repos).
Install skills with the helper scripts.
Communication
When listing skills, output approximately as follows, depending on the context of the user's request. If they ask about experimental skills, list from .experimental instead of .curated and label the source accordingly:
"""
Skills from {repo}:
- skill-1
- skill-2 (already installed)
- ... Which ones would you like installed? """
After installing a skill, tell the user it will be available on their next turn.
Scripts
All of these scripts use network, so when running in the sandbox, request escalation when running them.
scripts/list-skills.py(prints skills list with installed annotations)scripts/list-skills.py --format json- Example (experimental list):
scripts/list-skills.py --path skills/.experimental scripts/install-skill-from-github.py --repo <owner>/<repo> --path <path/to/skill> [<path/to/skill> ...]scripts/install-skill-from-github.py --url https://github.com/<owner>/<repo>/tree/<ref>/<path>- Example (experimental skill):
scripts/install-skill-from-github.py --repo openai/skills --path skills/.experimental/<skill-name>
Behavior and Options
- Defaults to direct download for public GitHub repos.
- If download fails with auth/permission errors, falls back to git sparse checkout.
- Aborts if the destination skill directory already exists.
- Installs into
$CODEX_HOME/skills/<skill-name>(defaults to~/.codex/skills). - Multiple
--pathvalues install multiple skills in one run, each named from the path basename unless--nameis supplied. - Options:
--ref <ref>(defaultmain),--dest <path>,--method auto|download|git.
Notes
- Curated listing is fetched from
https://github.com/openai/skills/tree/main/skills/.curatedvia the GitHub API. If it is unavailable, explain the error and exit. - Private GitHub repos can be accessed via existing git credentials or optional
GITHUB_TOKEN/GH_TOKENfor download. - Git fallback tries HTTPS first, then SSH.
- The skills at https://github.com/openai/skills/tree/main/skills/.system are preinstalled, so no need to help users install those. If they ask, just explain this. If they insist, you can download and overwrite.
- Installed annotations come from
$CODEX_HOME/skills.
安装 skill-installer
下载技能文件并将其解压到 .claude/skills/ 目录中。
下载ZIP克隆仓库并复制技能文件到您的项目中。
git clone https://github.com/openai/codex/tree/main/codex-rs/skills/src/assets/samples/skill-installer # Copy the skill folder to .claude/skills/ or .codex/skills/
复制





首页
