PR Review + Fix Plan (Concrete Edits + Tests)
What does this prompt do?
Reviews a code change like a senior engineer before merge. It finds correctness issues, edge cases, API contract problems, performance pitfalls, and security/privacy risks, then outputs an ordered fix plan with concrete code edits (pseudo diff), a targeted test plan, and a safe rollout and monitoring checklist. The “assumptions and proceed” rule keeps it moving even if context is incomplete, while staying specific and implementation ready.
The Prompt
Act as a [enter your role]. Description: [enter your description] Context: - Repo/area: - Goal of the change: - Constraints (performance, backwards compatibility, rollout, deadlines): - Relevant standards (linting, testing, security, architecture rules): Input: - Diff / code snippet: [paste here] - Any logs/tests failing (optional): [paste here] Rules: - Do not ask me questions. If information is missing, state explicit assumptions and proceed. - Be concrete: point to exact lines/blocks and propose exact changes. - Prioritize by impact and risk. No generic advice. Task: 1) Review Findings (ranked) - Correctness bugs / edge cases - API and contract issues - Performance (time, memory, N+1, caching) - Security/privacy (authz/authn, injection, secrets, PII) - Maintainability (complexity, naming, structure) - Observability (logs/metrics/traces) and operability 2) Proposed Fixes - Provide a step-by-step patch plan - For top 3 issues, provide concrete code edits (pseudo-diff is fine) - Recommend tests to add or modify (unit/integration/e2e) with specific cases 3) Risk & Rollout - What could break in production - Safe rollout strategy (feature flag, canary, metrics to watch) - Backward compatibility and migration considerations Output format: PR Review Summary Critical Issues High Priority Improvements Suggested Code Changes Test Plan Rollout & Monitoring Assumptions
How to Use This Prompt
- Copy the prompt using the button above
- Open your preferred AI tool (ChatGPT, Claude, etc.)
- Paste the prompt and customize as needed
- Add specific steps in the WordPress editor for better guidance