Pull Request Enhancement
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
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: unknown9source: community10metadata:11 source: https://skillmd.com/skills/nimoqup046-collab/comprehensive-review-pr-enhance12---1314# Pull Request Enhancement1516## Workflow17181. Run `git diff <base>...HEAD --stat` to identify changed files and scope192. Categorise changes: source, test, config, docs, build, styles203. Generate the PR description using the template below214. Add a review checklist based on which file categories changed225. Flag breaking changes, security-sensitive files, or large diffs (>500 lines)2324## PR Description Template2526```markdown27## Summary28<!-- one-paragraph executive summary: what changed and why -->2930## Changes31| Category | Files | Key change |32|----------|-------|------------|33| source | `src/auth.ts` | added OAuth2 PKCE flow |34| test | `tests/auth.test.ts` | covers token refresh edge case |35| config | `.env.example` | new `OAUTH_CLIENT_ID` var |3637## Why38<!-- link to issue/ticket + one sentence on motivation -->3940## Testing41- [ ] unit tests pass (`npm test`)42- [ ] manual smoke test on staging43- [ ] no coverage regression4445## Risks & Rollback46- **Breaking?** yes / no47- **Rollback**: revert this commit; no migration needed48- **Risk level**: low / medium / high — because ___49```5051## Review Checklist Rules5253Add checklist sections only when the matching file category appears in the diff:5455| File category | Checklist items |56|---------------|----------------|57| source | no debug statements, functions <50 lines, descriptive names, error handling |58| test | meaningful assertions, edge cases, no flaky tests, AAA pattern |59| config | no hardcoded secrets, env vars documented, backwards compatible |60| docs | accurate, examples included, changelog updated |61| security-sensitive (`auth`, `crypto`, `token`, `password` in path) | input validation, no secrets in logs, authz correct |6263## Splitting Large PRs6465When diff exceeds 20 files or 1000 lines, suggest splitting by feature area:6667```68git checkout -b feature/part-169git cherry-pick <commits-for-part-1>70```7172## Resources7374- `resources/implementation-playbook.md` — Python helpers for automated PR analysis, coverage reports, and risk scoring