- GitHub Copilot
- Agent
- Intermediate
- GitHub Copilot
- Published
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.
You get: Verdict, findings table and PR description in Markdown with sections
The prompt
mkdir -p .agents/skills/pre-pr-self-review-and-pull-request-description-from-a-git-diff && curl -sL "https://prompts-gpt.com/prompts/pre-pr-self-review-and-pull-request-description-from-a-git-diff/raw" -o .agents/skills/pre-pr-self-review-and-pull-request-description-from-a-git-diff/SKILL.mdExample output
Tips and common edits
Run in Copilot Chat after committing or staging your work, and attach the diff if #changes is unavailable. Verify each finding against the code before acting, since a reviewer model can misread context. Paste the description into your PR only after you confirm each claim.
Questions about this prompt
More like this
More in GitHub CopilotConventional 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.
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.
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.
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.
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.
Edge-Case Test Suite for One Function in Your Existing Test Framework
Writes tests for a single function that cover normal inputs, boundaries, bad input and error paths, in the test framework your project already uses.
Implement a Scoped Feature in Copilot Agent Mode with Repo Discovery and Tests
Guides GitHub Copilot agent mode to inspect the repository, state assumptions, plan a minimal change, implement it, and add tests. It ends with a verification report you can use to decide whether to open a PR.
Rewrite a Vague Issue into a Copilot Coding Agent-Ready Issue
Turns a vague GitHub issue into a self-contained task with context, testable acceptance criteria, files to touch, and tests to add, so the Copilot coding agent can finish it.
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.
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.