技能正式登陆 Codex
Skills Officially Comes to Codex

原始链接: https://developers.openai.com/codex/skills/

## Codex Agent Skills:扩展AI能力 Codex Agent Skills 通过添加特定任务的专业知识来增强 Codex 的功能。一个技能是一个包含指令(在 `SKILL.md` 中)、可选脚本和资源的包,使 Codex 能够可靠地执行定义的流程。技能可共享,并基于开放标准构建,可通过 Codex CLI 和 IDE 扩展访问。 Codex 通过**显式调用**(在提示中使用 `/skills` 或 `$skill-name`)和**隐式调用**(根据任务自动选择相关技能)来利用技能。技能的优先级基于其位置——从本地仓库文件夹到用户特定和系统范围的目录。 可以使用 `$skill-creator`(以及可选的 `$plan` 用于规划)或手动使用包含名称和描述的 `SKILL.md` 文件来创建新技能。预构建的和社区贡献的技能可以使用 `$skill-installer` 安装(例如,`$skill-installer linear` 用于 Linear 集成)。 最终,Agent Skills 允许用户根据其特定需求和工作流程定制 Codex,扩展其超越核心功能的能力。

## Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 **技能正式登陆 Codex (developers.openai.com)** 8 分,由 rochansinha 1小时前发布 | 隐藏 | 过去 | 收藏 | 1 条评论 rochansinha 1小时前 [–] Agent Skills 允许你使用特定任务的能力扩展 Codex。一个技能打包了指令、资源和可选脚本,以便 Codex 可以可靠地执行特定的工作流程。你可以与团队或社区共享技能,它们基于开放的 Agent Skills 标准。技能在 Codex CLI 和 IDE 扩展中都可用。回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Agent Skills let you extend Codex with task-specific capabilities. A skill packages instructions, resources, and optional scripts so Codex can perform a specific workflow reliably. You can share skills across teams or the community, and they build on the open Agent Skills standard.

Skills are available in both the Codex CLI and IDE extensions.

A skill captures a capability expressed through markdown instructions inside a SKILL.md file accompanied by optional scripts, resources, and assets that Codex uses to perform a specific task.

  • my-skill/
    • SKILL.md Required: instructions + metadata
    • scripts/ Optional: executable code
    • references/ Optional: documentation
    • assets/ Optional: templates, resources

Skills use progressive disclosure to manage context efficiently. At startup, Codex loads the name and description of each available skill. Codex can then activate and use a skill in two ways:

  1. Explicit invocation: You can include skills directly as part of your prompt. To select one, run the /skills slash command, or start typing $ to mention a skill. (Codex web and iOS don’t support explicit invocation yet, but you can still prompt Codex to use any skill checked into the repo.)
  1. Implicit invocation: Codex can decide to use an available skill when the user’s task matches the skill’s description.

In either method, Codex reads the full instructions of the invoked skills and any extra references checked into the skill.

Codex loads skills from these locations. A skill’s location defines its scope.

When Codex loads available skills from these locations, it overwrites skills with the same name from a scope of lower precedence. The list below shows skill scopes and locations in order of precedence (high to low):

Skill ScopeLocationSuggested Use
REPO$CWD/.codex/skills
Current Working Directory: where you launch Codex.
If in a repository or code environment, teams can check in skills most relevant to a working folder here. For instance, skills only relevant to a microservice or a code module.
REPO$CWD/../.codex/skills
A folder above CWD when you launch Codex inside a git repository.
If in a repository with nested folders, organizations can check in skills most relevant to a shared area in a parent folder.
REPO$REPO_ROOT/.codex/skills
The top-most root folder when you launch Codex inside a git repository.
If in a repository with nested folders, organizations can check in skills that are relevant to everyone using the repository. These serve as root skills that any subfolder in the repository can overwrite.
USER$CODEX_HOME/skills
(Mac/Linux default: ~/.codex/skills)
Any skills checked into the user’s personal folder.
Use to curate skills relevant to a user that apply to any repository the user may work in.
ADMIN/etc/codex/skills
Any skills checked into the machine or container in a shared, system location.
Use for SDK scripts, automation, and for checking in default admin skills available to each user on the machine.
SYSTEMBundled with Codex.Useful skills relevant to a broad audience such as the skill-creator and plan skills. Available to everyone when they start Codex and can be overwritten by any layer above.

To create a new skill, use the built-in $skill-creator skill inside Codex. Describe what you want your skill to do, and Codex will start bootstrapping your skill. If you combine it with the $plan skill, Codex will first create a plan for your skill.

You can also create a skill manually by creating a folder with a SKILL.md file inside a valid skill location. A SKILL.md must contain a name and description to help Codex select the skill:

---
name: skill-name
description: Description that helps Codex select the skill
metadata:
  short-description: Optional user-facing description
---

Skill instructions for the Codex agent to follow when using this skill.

Codex skills build on the Agent Skills specification. Check out the documentation to learn more.

To expand on the list of built-in skills, you can download skills from a curated set of skills on GitHub using the $skill-installer skill:

$skill-installer linear

You can also prompt the installer to download skills from other repositories.

Plan a new feature

Codex ships with a built-in $plan skill that’s great to have Codex research and create a plan to build a new feature or solve a complex problem.

Access Linear context for Codex tasks

$skill-installer linear

Have Codex access Notion for more context

$skill-installer notion-spec-to-implementation
联系我们 contact @ memedata.com