原始内容
codex-skills
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.
Install
- From this repo:
cargo install --path . --force - Confirm:
codex-skills list
Build the binary
- Release:
cargo build --release - Debug (faster compile):
cargo build - Binary output:
target/release/codex-skills(ortarget/debug/codex-skills) - Run locally:
./target/release/codex-skills list
Quickstart (correct flag order)
The 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.
Adding a new skill
- Create a folder under
skills/with a slugged name (e.g.,skills/my-new-skill). - Add a
SKILL.mdfile 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.
- Keep the file name
SKILL.md(case-insensitive variantsskill.mdalso load). - Test loading:
codex-skills listandcodex-skills show "My New Skill".
Notes:
- The CLI searches recursively under the skills directory for
SKILL.mdfiles. init --forcewrites the bundled example skills; it won’t overwrite your additions unless they share the same paths.- When embedding new default skills into the binary, place them in
skills/and rebuild (cargo install --path . --force).
Troubleshooting
- “unexpected argument '--skills-dir'”: move the flag before the subcommand (see Quickstart).
- “No skills found in skills”: ensure your
SKILL.mdfiles exist and are readable; runcodex-skills listfrom the directory containingskills/or point--skills-dirto it.