Community编程与开发github.com

技能安装器

从精选列表或 GitHub 仓库路径安装 Codex 技能到 $CODEX_HOME/skills。当用户要求列出可安装的技能、安装精选技能或从其他仓库(包括私有仓库)安装技能时使用。

技能安装器 是什么?

Skill Installer 技能专为 AI 编程助手环境(如 Codex)设计,用于自动化技能包的安装流程。它默认从 OpenAI 的官方技能仓库(openai/skills, 位于 skills/.curated 目录)安装,同时也支持用户指定其他 GitHub 仓库路径(包括私有仓库)来安装技能。该技能还支持安装实验性技能(位于 skills/.experimental 目录),只需使用 --path 参数指定即可。 技能安装器提供两个核心脚本:list-skills.py 用于列出可选技能并标注已安装状态,install-skill-from-github.py 用于实际安装。安装时默认直接从 GitHub 下载公共仓库资源,若遇到认证或权限错误则自动回退到 git sparse checkout 模式;对于私有仓库,可利用已有的 git 凭证或 GITHUB_TOKEN/GH_TOKEN 环境变量进行访问。技能安装到 $CODEX_HOME/skills/<技能名> 目录,默认为 ~/.codex/skills。该技能还提供了友好的通信格式:列出技能时按序号输出并标注是否已安装,安装完成后告知用户下次对话即可使用。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/openai/codex/tree/main/codex-rs/skills/src/assets/samples/skill-installer

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

技能安装器 是做什么的?

帮助安装技能。默认从 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} 的技能:
1. skill-1
2. skill-2(已安装)
3. ...
您想安装哪些?

安装技能后,告知用户该技能将在下一次对话时可用。

脚本

所有这些脚本都使用网络,因此在沙箱中运行时,请求提权以执行它们。

  • scripts/list-skills.py(打印带有已安装注释的技能列表)
  • scripts/list-skills.py --format json
  • 示例(实验性列表):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>
  • 示例(实验性技能):scripts/install-skill-from-github.py --repo openai/skills --path skills/.experimental/<skill-name>

行为和选项

  • 对于公共 GitHub 仓库,默认为直接下载。
  • 如果下载失败并出现认证/权限错误,则回退到 git sparse checkout。
  • 如果目标技能目录已存在,则中止操作。
  • 安装到 $CODEX_HOME/skills/<skill-name>(默认为 ~/.codex/skills)。
  • 多个 --path 值可以在一次运行中安装多个技能,每个技能以路径的基础名称命名,除非提供了 --name。
  • 选项:--ref <ref>(默认 main),--dest <path>,--method auto|download|git。

备注

  • 精选列表通过 GitHub API 从 https://github.com/openai/skills/tree/main/skills/.curated 获取。如果不可用,则解释错误并退出。
  • 私有 GitHub 仓库可以通过现有的 git 凭证或可选的 GITHUB_TOKEN/GH_TOKEN 进行访问以进行下载。
  • Git 回退首先尝试 HTTPS,然后尝试 SSH。
  • https://github.com/openai/skills/tree/main/skills/.system 下的技能是预安装的,因此无需帮助用户安装这些。如果他们询问,只需解释这一点。如果他们坚持,你可以下载并覆盖。
  • 已安装的注释来自 $CODEX_HOME/skills。

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.

code-review

Run a final code review on a pull request

code-review-change-size

Change size guidance (800 lines)

code-review-context

Model visible context

code-review-testing

Test authoring guidance

codex-bug

Diagnose GitHub bug reports in openai/codex. Use when given a GitHub issue URL from openai/codex and asked to decide next steps such as verifying against the repo, requesting more info, or explaining why it is not a bug; follow any additional user-provided instructions.

codex-issue-digest

Run a GitHub issue digest for openai/codex by feature-area labels, all areas, and configurable time windows. Use when asked to summarize recent Codex bug reports or enhancement requests, especially for owner-specific labels such as tui, exec, app, or similar areas.

codex-pr-body

Update the title and body of one or more pull requests.

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

openai/babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.

openai-docs

Use when the user asks how to build with OpenAI products or APIs, asks about Codex itself or choosing Codex surfaces, needs up-to-date official documentation with citations, help choosing the latest model for a use case, or model upgrade and prompt-upgrade guidance; use OpenAI docs MCP tools for non-Codex docs questions, use the Codex manual helper first for broad Codex self-knowledge, and restrict fallback browsing to official OpenAI domains.

openai/test-tui

Guide for testing Codex TUI interactively

path-types

Choose Rust types for operating system paths across the Codex repository. Use when defining new path-bearing types or explicitly migrating existing ones.

plugin-creator

Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.

pushing-ci-changes

Pushing GitHub Actions changes, resolving push rejection, requesting upload exceptions.

remote-tests

Testing against remote executors in integration tests.

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.

test-tui

Guide for testing Codex TUI interactively

update-v8-version

Update Codex's pinned `v8` / `rusty_v8` versions, validate the release-candidate path, and investigate failed V8 canary or artifact builds. Use when asked to bump V8, update `rusty_v8` artifacts, prepare or validate a V8 release candidate, check `v8-canary`, or diagnose why a V8 version update no longer builds.

相关技能