Codex Code Review and Quality Skill for Regression Checks
Review a patch for incorrect behavior, readability, design, security, and performance. Ask for findings tied to changed code, plus a test for each observed regression.
中文Setup for Codex
Use Codex in a local Git checkout. A pasted patch needs no service credentials. To run tests, use the project's existing test tools.
- Copy the pinned skills/code-review-and-quality folder into .agents/skills/code-review-and-quality at the project root.
- Open the checkout in Codex and select $code-review-and-quality. Paste the diff or give the branch and base revision.
Example task
Use $code-review-and-quality to review this cart change. Before, it returned Math.max(0, subtotal - coupon). After, it returns subtotal - coupon. Check subtotal 8 with coupon 10, and ask for one regression test. Keep the patch read-only.Expected result
The review identifies the change from 0 to -2 and proposes a test expecting 0 when the coupon exceeds the subtotal.
Upstream documentation
Original SKILL.md on GitHub · MIT license · Source reviewed
Frequently asked question
Can I review a small diff with this Codex code review skill?
Yes. Include the old implementation, the changed line, and a concrete input. The review can explain the regression and suggest a targeted test.