关于 call-codex
此 Skill 会检查是否已安装 codex,并在可用时通过 `codex exec` 提交任务,供 Agent 工作流委派任务。
主要功能
- 01检查是否安装 codex
- 02使用 `codex exec` 提交任务
- 03通过标准输入传递任务说明
适用场景
- 01将任务委派给 codex
- 02未安装 codex 时跳过后续步骤
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ dotneet/ claude-code-marketplace --skill call-codex安装后在 Claude Code 中输入/call-codex确认已加载。
详细介绍
调用 codex 执行任务
调用 codex 执行任务。
检查 codex 是否存在
# Check if codex is installed. Exit code 0 means success, 1 means failure.
# If not installed, skip the subsequent steps of the skill.
which codex
if [ $? -ne 0 ]; then
echo "codex is not installed"
fi
请求 codex 执行任务
此任务可能需要很长时间。如果可以设置 Bash 工具的超时时间,请指定最大超时时间。
codex exec --sandbox danger-full-access <<EOT
{task_description}
EOT
评论
支持 Markdown