Skip to main content

use-codex-cli

星标11
分支2
更新时间2026年7月11日 18:43

Authoritative guide for driving the OpenAI Codex CLI (the `codex` binary and `codex exec`) as a subprocess from another agent — for repository analysis, focused implementation, independent code review, debugging, structured JSON extraction, and multi-turn delegation. Use this skill whenever you are about to run or script `codex` — codex exec, codex exec review, codex exec resume, or codex mcp-server — and whenever the user says "use Codex", "ask Codex", "get a second opinion from Codex", "have Codex review this", or "delegate this to Codex". Covers non-interactive invocation, the exact per-subcommand flag positions, the sandbox and project-trust model, JSONL and last-message and JSON-schema output, session resume, exit codes, and verifying Codex's work. Consult BEFORE writing the command because flag placement and sandbox choice change what Codex can do and whether the call parses. Do not invoke for trivial work the agent can do directly, and never launch the bare `codex` TUI from automation.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
15 个文件
SKILL.md
readonly