codex-code-review
Installation
SKILL.md
Codex Code Review
Automated review loop: run Codex review on unstaged changes, apply fixes, re-review until clean.
Workflow
- Check for unstaged changes with
git diff. If empty, report "No unstaged changes to review" and stop. - Run the Codex review:
codex review --uncommitted
- Read the review output carefully.
- For each piece of feedback, decide if it is valid. Apply valid fixes directly. Skip feedback that is incorrect, irrelevant, or purely stylistic preference with no real benefit.
- After applying fixes, run the review command again (step 2).
- Repeat until the review output contains "LGTM" or only minor/irrelevant comments remain.
- Summarize what was reviewed and what was fixed.
Important
- Run the review automatically without asking the user for confirmation at each cycle.
- Do not run tests as part of this skill - tests are handled separately.
- If Codex review keeps flagging the same issue after you've addressed it, skip it on the next cycle and move on.
- Limit to a maximum of 5 review cycles to avoid infinite loops.