What problem does it solve?
Getting an external code review on Elixir/Phoenix changes and then actually fixing every finding is a slow, manual back-and-forth. This Skill automates a bounded critic-refiner loop where the Codex CLI reviews your diff and Claude applies, verifies, and re-reviews fixes until the review comes back clean.
Core Features & Use Cases
- Automated review-fix loop: Runs
codex exec review against a base branch, uncommitted changes, or a commit, triages findings by priority (P0-P3), applies approved fixes, and re-reviews up to a configurable maximum of rounds.
- Verification before re-review: Enforces
mix format, mix compile --warnings-as-errors, and scoped tests before spending another Codex review round, stopping with a blocker report after repeated verification failures.
- Iron Law guardrails: Declines Codex suggestions that violate project Iron Laws, never commits or pushes, and reports every finding as fixed, declined, or deferred.
- Use Case: Before opening a PR on a Phoenix feature branch, run the loop with
--auto so P0-P2 findings from Codex are fixed and verified automatically, ending with a clean review or a report of remaining findings.
Quick Start
Ask the AI to run the phx-codex-loop skill on your current branch diff so Codex reviews it and approved findings are fixed until the review is clean.