Agent skill · Code Review & Quality

phx-codex-loop

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.

oliver-kriskagithub.com/oliver-kriskaGitHub ↗
codexclaude-codeMIT
Install
npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-codex-loop --agent codex

Same command for any agent — swap --agent for claude-code, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: targets/amp/skills/phx-codex-loop/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 515
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 1. **BOUNDED rounds — never exceed --max-rounds (default 3)** — each round costs codex quota; report remaining findings instead of looping on 2. **Verify BEFORE re-review** — `mix compile --warnings-as-errors` + tests must pass before burning a codex round on broken code 3. **NEVER commit or push** — leave git to the user 4. **Codex findings get Iron Law scrutiny** — decline suggestions that violate an Iron Law, with explanation in the round report 5. **Skipped findings are reported, never dropped** — every finding ends as fixed, declined (with reason), or deferred-by-user 6. **Missing CLI stops the skill with an

What's inside
Steps it walks through
  1. Usage
  2. Iron Laws
  3. Workflow
  4. Step 1: Preflight
  5. Step 2: Detect Diff Mode
  6. Step 3: Round Loop (max --max-rounds, default 3)
  7. Step 4: Final Report
  8. Integration
  9. References
Ships with 1 file
  • references/codex-cli.md
Commands it runs
codex exec review --base {branch} --ephemeral \
mix format {changed_files} && \
mix compile --warnings-as-errors && mix test {affected_tests}
More from claude-elixir-phoenix
All skills →
About this skill
What does the phx-codex-loop skill do?

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.

How do I install it?

Run `npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-codex-loop --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From oliver-kriska/claude-elixir-phoenix, a repository with 515 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going