phx-codex-loop
Fix Elixir/Phoenix code until Codex CLI review comes back clean — bounded
Install / Use
npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-codex-loopInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of phx-codex-loop
phx-codex-loop scores 82/100 on our quality scale, 3292nd of 4,716 Development & Engineering skills we index.
Its SKILL.md is 4.8 KB long, well organised into 11 sections with 3 code examples: a solid amount of guidance for an agent.
It has 574 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated 13 days ago, so phx-codex-loop is actively maintained.
- Our last check on 2026-10-16 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-10-06. Automated pattern scan on 2026-10-06. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
phx-codex-loop compared with similar skills
All 4 of these similar skills score higher than phx-codex-loop; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| phx-codex-loop (this skill)by oliver-kriska | 82 | 574 | 13d ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 118.9k | 11d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 87.1k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 72.6k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 47.5k | 5d ago | CLAUDE.md |
Frequently asked questions
- How do I install phx-codex-loop?
- Run
npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-codex-loop. The install tabs above show the steps for each supported agent. - Which AI agents does phx-codex-loop work with?
- It is written for Claude Code and OpenAI Codex, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is phx-codex-loop safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is phx-codex-loop still maintained?
- The repository was last updated 13 days ago, so phx-codex-loop is actively maintained.
Skill content
View source on GitHubname: phx-codex-loop description: 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:
- Dirty tree (
git status --short, only when using--base): codex inspects working-tree state too and WILL flag local dirt (stray edits, dirty submodules) as findings. Surface the dirt and ask: clean/stash first, or proceed knowing round 1 may spend findings on it. - Missing rubric: if
AGENTS.mdhas no## Review guidelinessection, note once thatphx-initinstalls the Elixir rubric that steers codex priorities — then proceed (it works without, on defaults).
Step 2: Detect Diff Mode
- Flag passed (
--base/--uncommitted) → use as given - Commits ahead of the default branch →
--base {default} - No commits yet →
--uncommitted
Step 3: Round Loop (max --max-rounds, default 3)
-
Review — ONE foreground Bash call, explicit
timeout: 600000(large diffs run 10+ min). On timeout with the process alive: ONEuntil [ -f {out} ]; do sleep 5; donewait — never poll-spam orpkilla running review (quota is spent either way). ALWAYS silence the streams — only the-ofile matters (10k+ lines otherwise):codex exec review --base {branch} --ephemeral \ -o /tmp/codex-round-{n}.md > /tmp/codex-round-{n}.log 2>&1NEVER pass custom instructions with a diff-mode flag — the CLI rejects the combination; the rubric comes from AGENTS.md
## Review guidelines(phx-init). Parse the output file, NOT the exit code (0 even with findings). Recipes:references/codex-cli.md. -
Clean check — parse the output file; no
- [P{n}]bullets means CLEAN → go to Step 4. -
Triage — emit the findings table (
# | P | file:line | title | proposed action) as visible response text BEFORE anyAskUserQuestioncall — a table composed only in thinking never renders. Then ask approve-or-skip per finding (AskUserQuestion). With--auto: approve P0/P1/P2, skip P3 (list skipped in the round report). -
Fix — apply approved fixes with user-visible diffs. Check each against Iron Laws first (Law 4).
-
Verify — scoped, before the next round:
mix format {changed_files} && \ mix compile --warnings-as-errors && mix test {affected_tests}If verification fails 3 times, STOP with a BLOCKER report — do not burn another codex round on broken code.
-
Next round (n+1).
Step 4: Final Report
## Codex Loop Report — {CLEAN | MAX ROUNDS REACHED | BLOCKED}
Rounds: {n}/{max} | Fixed: {n} | Declined (Iron Law): {n} | Deferred: {n}
{per-round: findings → outcome}
{remaining findings if not CLEAN}
On CLEAN: suggest phx-compound for non-obvious fixes, then commit/PR.
On MAX ROUNDS: list remaining findings; offer phx-plan to convert them
into a follow-up plan.
Integration
implement → phx-codex-loop (YOU ARE HERE) → clean → commit/PR → phx-watch-pr --codex
↑ or arrive from phx-review --codex verdict REQUIRES CHANGES
References
references/codex-cli.md— invocation recipes, parse patterns, verified gotchas (CLI 0.142.5)
Related Skills
taste-skill
118.9kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
hyperframes
87.1kAI video you can actually edit. HyperFrames is a free, open-source AI video editor. Describe any video and get a real project you can change down to the frame.
ai-job-search
72.6kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
47.5kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
