Codex CLI Skill for Read-Only Reviews from Claude Code
Hand a specific repository check from an agent such as Claude Code to the local Codex CLI. The skill checks whether Codex is available, passes a working directory and success condition, and helps you compare the result with the actual files.
中文Install in Claude Code 等本地代理,调用 Codex CLI
An installed and authenticated Codex CLI, plus a host agent with local shell access. The Bash example needs a readable demo directory. Manual installation has no Node.js dependency. The upstream npx installer requires Node.js and npm.
- From the pinned GitHub revision, copy `skills/codex-cli/` into the Claude Code workspace as `.claude/skills/codex-cli/`. Keep `SKILL.md` immediately inside that folder.
- Run `codex --version` and `codex exec --help` in the same shell to check that `-C` and `-s read-only` are available.
- Open the demo workspace in the host agent and ask it to use the codex-cli skill. The direct command below checks the same workflow.
Example task
Make a local demo directory containing a `sample.txt` file with the single line `Report: one row`. Run this Bash command from the directory.
codex exec -C "$PWD" -s read-only "Read only sample.txt. Report the line count and exact first line. Do not edit files."What to check
The response reports one line and quotes `Report: one row`. Compare it with the test file and confirm the contents stayed the same. Keep the actual error if the CLI is unavailable or the call fails.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does this skill install the Codex CLI for me?
Install and authenticate Codex separately. The skill guides a host agent through invoking the installed CLI and checking what it returns.