💡 摘要
一个命令行工具,将任务路由到存储在markdown文件中的技能剧本。
🎯 适合人群
希望自动化任务的开发者协调基于技能工作流程的项目经理创建剧本的技术写作者设计基于技能学习模块的教育工作者
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
安全分析中风险
风险:Medium。建议检查:是否执行 shell/命令行指令;文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
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.
五维分析
清晰度8/10
创新性6/10
实用性7/10
完整性8/10
可维护性7/10
优缺点分析
优点
- 通过markdown文件灵活管理技能
- 易于添加新技能
- 支持自定义技能目录
缺点
- 需要熟悉命令行工具
- 内置技能有限
- 依赖于markdown格式的技能
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 mosif16.
