Codex Pull Request Review With Comments Ranked by Severity
Has Codex review a pull request and return comments sorted into blocking, should-fix and nit, each with the file and line, the risk, and a suggested change.
You get: a one-paragraph verdict (approve, approve with changes, or request changes); a table with Severity, File:line, Issue, Failure scenario and Suggested fix, sorted by severity; test…
The prompt
mkdir -p .agents/skills/codex-pull-request-review-with-comments-ranked-by-severity && curl -sL "https://prompts-gpt.com/prompts/codex-pull-request-review-with-comments-ranked-by-severity/raw" -o .agents/skills/codex-pull-request-review-with-comments-ranked-by-severity/SKILL.mdYou are Codex reviewing a pull request in this repository. Review the changes on {branch or PR number} against the base branch.
Rules:
1. Read the diff and the surrounding code it touches. Run the existing tests and linters if you can, and report the results.
2. Look for, in this order: correctness bugs, security problems (injection, auth, secrets, unsafe input), data loss or migration risks, missing tests for changed behaviour, performance traps, then readability.
3. Every comment names the file and line, explains the concrete failure (what input or state breaks it), and suggests a fix.
4. Rank each comment: blocking, should fix, or nit. Do not inflate nits.
5. Do not comment on formatting a linter already handles.
Output format: a one-paragraph verdict (approve, approve with changes, or request changes); a table with Severity, File:line, Issue, Failure scenario and Suggested fix, sorted by severity; test and lint results; and a list of assumptions, open questions for the author and risks not covered by tests.Tips and common edits
Use in Codex (CLI, IDE or cloud) on a checked-out branch before a human review. Ask it to post only blocking items if you want a short review.
Questions about this prompt
More like this
More in CodexCodex Pre-Merge Diff Review with Severity-Ranked Findings
Has Codex review a branch diff against a base ref in read-only mode. It checks correctness, tests, security, and maintainability, and returns evidence-backed findings with severity and a merge recommendation.
Pre-Merge Code Review Checklist Skill (SKILL.md)
A save-ready SKILL.md that has your coding agent review a branch before merge: correctness, security, tests and migrations, with findings ranked by severity and no style nitpicks.
GitHub Copilot Pull Request Description Written From the Diff
Turns the changes in a branch into a clear pull request description: what changed and why, how to test it, risks and screenshots to add, in your repo's template if it has one.
Pull Request Review with Merge Recommendation
Reviews a diff against your standards and returns a merge, merge-with-changes, or do-not-merge recommendation. Findings are ranked by severity, with evidence, suggested fixes, and open questions.
Codex Characterization-Test-First Refactor with Verification Handoff
Runs a behavior-preserving refactor in Codex exec. It pins current behavior with characterization tests, refactors in small verified steps inside an allowed scope, and ends with an evidence-based handoff for the merge decision.
Codex CI Failure Triage: Reproduce, Classify, Fix or Hand Off
Guides Codex through reproducing a failing CI job locally, classifying the cause as code, test, environment, or flaky, applying a minimal fix when safe, and producing an evidence-based handoff for anything it cannot resolve.
Codex Exec CI Fixer: Diagnose, Minimal Fix, Rerun, Stop After 3 Attempts
Gives codex exec a non-interactive procedure to diagnose a failing CI output, apply a minimal fix, rerun the checks and stop after three attempts with a clear report.
Codex Read-Only Repo Investigation for a Bug Report
Runs a read-only Codex investigation that maps the relevant code paths, test commands, and likely root causes for a bug report. It ends with a ranked hypothesis table and a go/no-go recommendation before any edits.
Outcome-First Codex Task Writer for a Feature or Bug Request
Turns a raw feature or bug request into a paste-ready Codex task with a goal, constraints, files in scope, definition of done and exact verification commands.
Codex Writes an AGENTS.md for This Repository From the Real Setup
Has Codex inspect your repository and write a short, accurate AGENTS.md with the real build, test and lint commands, conventions and boundaries, checked by actually running them.
Conventional Commit and PR Description Writer Skill (SKILL.md)
A ready-to-save SKILL.md that makes your coding agent write Conventional Commits messages and pull request descriptions from the staged diff, never from guesses.
Checkable Guardrail Rules for a Coding Agent: Blocked Commands, Approvals, Secrets and Hooks
Produces a set of testable guardrail rules for your coding agent, covering blocked commands, approval gates, secret handling and hook checks.