Codex 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.
You get: Verdict, findings table and test coverage gaps checklist
The prompt
mkdir -p .agents/skills/codex-pre-merge-diff-review-with-severity-ranked-findings && curl -sL "https://prompts-gpt.com/prompts/codex-pre-merge-diff-review-with-severity-ranked-findings/raw" -o .agents/skills/codex-pre-merge-diff-review-with-severity-ranked-findings/SKILL.mdExample output
Tips and common edits
Run with codex exec in read-only mode from the repo root, after fetching both refs locally. Set {risk_focus} to steer attention toward the riskiest areas. Treat the output as a first-pass review that supplements, not replaces, human approval.
Questions about this prompt
More like this
More in CodexCodex 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.
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 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.
Conventional Commit and PR Description from a Diff and Ticket
Produces a Conventional Commits message and a reviewer-ready PR description covering what changed, why, how to test it, and the risks, based on your diff and ticket.
Pre-PR Self-Review and Pull Request Description from a Git Diff
Has GitHub Copilot review your branch diff against the base branch, flag defects and missing tests, and draft a PR description with evidence. Use it to decide whether to open the PR or fix issues first.
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.
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.
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.
Coding Agent Task Brief with Guardrails, Test Plan, and Rollback Steps
Creates a scoped brief for an AI coding agent that limits file changes, defines tests, and includes a rollback plan and review checklist.