
Codex Loop
Fix Elixir/Phoenix code until Codex CLI review comes back clean, bounded review, fix...
Install
npx skills add oliver-kriska/claude-elixir-phoenix --skill codex-loop -g -a claude-code -y- Repository
- oliver-kriska/claude-elixir-phoenix572
- Category
- Git and review
- Updated
- 5d ago
- License
- MIT
- Context cost
- Lightabout 1,327 tokens
- Runs scripts
- No, instructions only
What it does
Fix Elixir/Phoenix code until Codex CLI review comes back clean, bounded review, fix, verify loop before opening a PR. Use when codex is installed and you want an external cross-model critic on your changes before pushing.
Codex Loop (fix until clean)
Critic→Refiner loop with the Codex CLI as external critic: review → fix
approved findings → verify → re-review, until codex is clean or rounds run
out. Codex reviews; Claude fixes. Complements /phx:review (Claude panel), run either or both before a PR.
Usage
/phx:codex-loop # diff vs default branch, interactive
/phx:codex-loop --uncommitted # staged + unstaged + untracked
/phx:codex-loop --base develop # explicit base branch
/phx:codex-loop --auto # auto-approve P0/P1/P2, skip P3
/phx:codex-loop --max-rounds 2 # default 3
Iron Laws
- BOUNDED rounds, never exceed --max-rounds (default 3), each round costs codex quota; report remaining findings instead of looping on
- Verify BEFORE re-review,
mix compile --warnings-as-errors+ tests must pass before burning a codex round on broken code - NEVER commit or push, leave git to the user
- Codex findings get Iron Law scrutiny, decline suggestions that violate an Iron Law, with explanation in the round report
- Skipped findings are reported, never dropped, every finding ends as fixed, declined (with reason), or deferred-by-user
- Missing CLI stops the skill with an install hint, suggest
/phx:reviewas the codex-free alternative; never crash
Workflow
Step 1: Preflight
Run command -v codex. If missing: STOP.
Show the install hint (brew install codex or npm i -g @openai/codex,
then codex login; codex doctor to diagnose) and suggest /phx:review.
Then two cheap checks that save review rounds:

