
Codex Skill
当用户要求使用 Codex、GPT-5 或 GPT-5.1 实现功能(通常为实现 Claude 设计的计划或功能)时使用。提供非交互式……
将编码任务从 OpenClaw 委托给本地 codex CLI,并以异步方式管理这些任务。
该技能提供一个基于文件的桥接机制,使 OpenClaw 能够:
~/.openclaw/skills/codex-bridge/codex-bridge-dispatch.sh
--task-id
--workdir
--prompt ""
请在 prompt 中包含以下要素:
示例:
~/.openclaw/skills/codex-bridge/codex-bridge-dispatch.sh
--task-id scripts-csv-parser
--workdir ~/projects/data-tools
--prompt "Create parse_orders.py. Read orders CSV, keep shipped rows, group by customer_id, and write summary CSV with columns customer_id, order_count, total_amount. Use pandas. Add basic CLI args and error handling."
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id
常用状态查询命令:
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --list
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id --output
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id --question
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id --result
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id --log
当任务状态为 waiting_for_answer 时,请先读取待回答的问题,再发送回应:
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id --question
~/.openclaw/skills/codex-bridge/codex-bridge-answer.sh --task-id --answer ""
桥接器会在答案写入后,自动恢复同一 codex 会话继续执行。
task-id。--status / --output)。waiting_for_answer,使用 --question 获取问题,转达给用户,并通过 --answer 提交回复。complete 时,使用 --result 获取最终结果并汇总产出。error,请检查 --log 和 --output 进行故障排查。codex CLI(即 codex exec 与 codex exec resume)。~/.codex-bridge/tasks// 目录下。--workdir 中由 Codex 执行。|
1 |
|







