Pull Request Enhancement
When to Use
- You need to turn a git diff into a reviewer-friendly pull request description.
- You want a PR summary with change categories, risks, testing notes, and a checklist.
- The diff is large enough that reviewers need explicit structure instead of a short ad hoc summary.
Workflow
- Run
git diff <base>...HEAD --stat to identify changed files and scope
- Categorise changes: source, test, config, docs, build, styles
- Generate the PR description using the template below
- Add a review checklist based on which file categories changed
- Flag breaking changes, security-sensitive files, or large diffs (>500 lines)
PR Description Template
## Summary
<!-- one-paragraph executive summary: what changed and why -->
## Changes
| Category | Files | Key change |
|----------|-------|------------|
| source | `src/auth.ts` | added OAuth2 PKCE flow |
| test | `tests/auth.test.ts` | covers token refresh edge case |
| config | `.env.example` | new `OAUTH_CLIENT_ID` var |
## Why
<!-- link to issue/ticket + one sentence on motivation -->
## Testing
- [ ] unit tests pass (`npm test`)
- [ ] manual smoke test on staging
- [ ] no coverage regression
## Risks & Rollback
- **Breaking?** yes / no
- **Rollback**: revert this commit; no migration needed
- **Risk level**: low / medium / high — because ___
Review Checklist Rules
Add checklist sections only when the matching file category appears in the diff:
| File category |
Checklist items |
| source |
no debug statements, functions <50 lines, descriptive names, error handling |
| test |
meaningful assertions, edge cases, no flaky tests, AAA pattern |
| config |
no hardcoded secrets, env vars documented, backwards compatible |
| docs |
accurate, examples included, changelog updated |
security-sensitive (auth, crypto, token, password in path) |
input validation, no secrets in logs, authz correct |
Splitting Large PRs
When diff exceeds 20 files or 1000 lines, suggest splitting by feature area:
git checkout -b feature/part-1
git cherry-pick <commits-for-part-1>
Resources
resources/implementation-playbook.md — Python helpers for automated PR analysis, coverage reports, and risk scoring
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---2name: comprehensive-review-pr-enhance3description: >4 Generate structured PR descriptions from diffs, add review checklists,5 risk assessments, and test coverage summaries. Use when the user says6 "write a PR description", "improve this PR", "summarize my changes",7 "PR review", "pull request", or asks to document a diff for reviewers.8risk: critical9source: community10metadata:11 source: https://skillmd.com/skills/mhassan0000/comprehensive-review-pr-enhance12---1314# Pull Request Enhancement1516## When to Use17- You need to turn a git diff into a reviewer-friendly pull request description.18- You want a PR summary with change categories, risks, testing notes, and a checklist.19- The diff is large enough that reviewers need explicit structure instead of a short ad hoc summary.2021## Workflow22231. Run `git diff <base>...HEAD --stat` to identify changed files and scope242. Categorise changes: source, test, config, docs, build, styles253. Generate the PR description using the template below264. Add a review checklist based on which file categories changed275. Flag breaking changes, security-sensitive files, or large diffs (>500 lines)2829## PR Description Template3031```markdown32## Summary33<!-- one-paragraph executive summary: what changed and why -->3435## Changes36| Category | Files | Key change |37|----------|-------|------------|38| source | `src/auth.ts` | added OAuth2 PKCE flow |39| test | `tests/auth.test.ts` | covers token refresh edge case |40| config | `.env.example` | new `OAUTH_CLIENT_ID` var |4142## Why43<!-- link to issue/ticket + one sentence on motivation -->4445## Testing46- [ ] unit tests pass (`npm test`)47- [ ] manual smoke test on staging48- [ ] no coverage regression4950## Risks & Rollback51- **Breaking?** yes / no52- **Rollback**: revert this commit; no migration needed53- **Risk level**: low / medium / high — because ___54```5556## Review Checklist Rules5758Add checklist sections only when the matching file category appears in the diff:5960| File category | Checklist items |61|---------------|----------------|62| source | no debug statements, functions <50 lines, descriptive names, error handling |63| test | meaningful assertions, edge cases, no flaky tests, AAA pattern |64| config | no hardcoded secrets, env vars documented, backwards compatible |65| docs | accurate, examples included, changelog updated |66| security-sensitive (`auth`, `crypto`, `token`, `password` in path) | input validation, no secrets in logs, authz correct |6768## Splitting Large PRs6970When diff exceeds 20 files or 1000 lines, suggest splitting by feature area:7172```73git checkout -b feature/part-174git cherry-pick <commits-for-part-1>75```7677## Resources7879- `resources/implementation-playbook.md` — Python helpers for automated PR analysis, coverage reports, and risk scoring8081## Limitations82- Use this skill only when the task clearly matches the scope described above.83- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.84- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.