Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Optimize pull requests for quick approval and merging by ensuring clean diffs, comprehensive self-reviews, and structured documentation.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 42% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 70% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 31% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 25% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 18% | 0% |
A systematic playbook for preparing, reviewing, and documenting pull requests to ensure they are high-quality, free of common oversights, and optimized for instant maintainer approval and merging.
Before presenting your code to reviewers, clean up any workspace noise and ensure your branch is up to date:
main or master) to resolve conflicts early.Review your own diff line-by-line as if you were the reviewer. Look out for:
console.log, print, breakpoints, or custom debug flags).TODO comments that should be resolved or turned into tracked issues.Verify that all changes work as expected:
Write a high-signal, structured PR description. A great description tells the story of the changes:
markdown# Pull Request: Implement Rate Limiting on Authentication Endpoint ## Summary Introduces an IP-based rate limiter on the `/api/v1/auth/login` endpoint using Redis to prevent brute-force attacks. ## Why We identified a high volume of login attempts targeting single accounts. This rate limiting window slows down attackers while keeping the system responsive for genuine users. ## Verification - Ran unit tests: `npm run test tests/auth.test.js` (all green) - Manually verified using Postman: sending 15 requests in under 60 seconds returns `429 Too Many Requests`. ## Checklist - [x] Code follows the style guide - [x] Unit tests added/updated - [x] Documentation updated
Before committing, run these commands to inspect the diff for accidental additions:
bash# Check the names of files changed to ensure no unwanted files are staged git status --porcelain # Review the actual diff for any leftover print statements or debuggers git diff | grep -E "(console\.log|debugger|print\(|var_dump|binding\.pry)"
CONTRIBUTING.md and pull request templates, and adhere to them strictly.Solution: Always run the repository's local formatter (e.g., Prettier, ESLint, Black) before committing.
Solution: Pull the latest main branch and rebase or merge it into your branch daily.
@pr-writer - For Sentry-specific PR writing guidelines.@clean-code - To ensure code quality before submitting.Other measured skills in the registry, with their headline benchmark lift.