npx skills add https://github.com/mosif16/codex-skills --skill product-frontend-design使用 CLI 安装这个技能,并在你的工作区中直接复用对应的 SKILL.md 工作流。
Small CLI that routes tasks to skill playbooks stored as SKILL.md files. The binary ships with two bundled skills (brand-guidelines, frontend-design) and can load any additional skills you add to a skills directory.
cargo install --path . --forcecodex-skills listcargo build --releasecargo buildtarget/release/codex-skills (or target/debug/codex-skills)./target/release/codex-skills listThe global options (like --skills-dir) must appear before the subcommand.
# use default ./skills folder
codex-skills init --force
codex-skills instructions
codex-skills list
codex-skills pick "your task description" --top 3 --show
codex-skills show "<skill-name>"
# use a custom skills directory
codex-skills --skills-dir /path/to/skills init --force
codex-skills --skills-dir /path/to/skills list
You can also set SKILLS_DIR=/path/to/skills instead of passing --skills-dir.
skills/ with a slugged name (e.g., skills/my-new-skill).SKILL.md file with YAML frontmatter followed by the playbook body:---
name: My New Skill
description: One-sentence summary of what this skill covers.
tags:
- keyword1
- keyword2
---
Write the detailed playbook here. Include step-by-step guidance the agent should follow.
SKILL.md (case-insensitive variants skill.md also load).codex-skills list and codex-skills show "My New Skill".Notes:
SKILL.md files.init --force writes the bundled example skills; it won’t overwrite your additions unless they share the same paths.skills/ and rebuild (cargo install --path . --force).SKILL.md files exist and are readable; run codex-skills list from the directory containing skills/ or point --skills-dir to it.