From cloclo
Invoke Codex (GPT-5.4) to review a spec, plan, or implementation. Codex explores the codebase freely and writes findings to a file. Foreground execution — Claude waits for result.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cloclo:codex-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Invoke the Codex companion (GPT-5.4) to produce an independent review of a spec,
Invoke the Codex companion (GPT-5.4) to produce an independent review of a spec, plan, or implementation. Codex has full codebase access and writes its findings to a file that Claude reads back verbatim.
The calling skill (typically pipeline) passes:
| Parameter | Required for | Description |
|---|---|---|
review_type | all | One of spec, plan, impl |
session_dir | all | Absolute path to the session directory |
input_file | all | Path to the artifact under review |
output_file | all | Path where Codex must write its review |
spec_path | plan, impl | Path to the approved spec |
plan_path | impl | Path to the approved plan |
base_ref | impl | Git ref before implementation started |
commit_list | impl | Space-separated commit hashes to review |
First, verify that the Codex CLI is installed:
# Check Codex CLI availability
if ! command -v codex &>/dev/null; then
echo "Codex CLI not found. Install it with: npm install -g @openai/codex"
# return CODEX_UNAVAILABLE
fi
Then, locate the companion script:
# Find companion
CODEX_COMPANION_PATH="${CODEX_COMPANION_PATH:-$(find ~/.claude/plugins -name codex-companion.mjs -path '*/codex/scripts/*' 2>/dev/null | head -1)}"
# If not found: return CODEX_UNAVAILABLE
# Check auth: codex whoami
# If not authenticated: return CODEX_NOT_AUTHENTICATED
If the Codex CLI is not installed, return status CODEX_UNAVAILABLE with the message:
"Codex CLI not found. Install it with: npm install -g @openai/codex"
If CODEX_COMPANION_PATH resolves to nothing, return status CODEX_UNAVAILABLE with
the message: "Codex companion not found. Install the Codex plugin from the Claude Code marketplace."
If codex whoami fails, return status CODEX_NOT_AUTHENTICATED with the message:
"Codex is not authenticated. Run codex login first."
${SKILL_DIR}/templates/review-{review_type}-prompt.md{{SPEC_PATH}} -- path to the spec{{PLAN_PATH}} -- path to the plan{{OUTPUT_PATH}} -- path where Codex writes its review{{BASE_REF}} -- git ref before implementation{{COMMIT_LIST}} -- space-separated commit hashes/tmp/cloclo-codex-prompt-$(date +%s).mdOnly placeholders present in the template are replaced. Missing placeholders for the given review type are an error in the template, not in the skill.
node "$CODEX_COMPANION_PATH" task --write --prompt-file /tmp/cloclo-codex-prompt-{timestamp}.md
This is a foreground call. Claude does not proceed until Codex finishes. No background promises, no polling loops.
After Codex exits, check whether output_file exists and is non-empty.
Success path:
output_file in its entirety${session_dir}/session.log:
[2026-04-06T14:32:01] Codex review (type=spec) started (job-id: abc123)
[2026-04-06T14:34:47] Codex review complete: /path/to/output_file
Failure path:
CODEX_REVIEW_FAILED with whatever stderr or exit code Codex producedsession.log with the same formatrun_in_background, no &, no detached processes.
Claude waits, reads the result, and continues./tmp/ is deleted after execution.
The output file in session_dir/ is permanent.npx claudepluginhub bacoco/cloclo --plugin clocloProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.