comprehensive-review-pr-enhance
Generate structured PR descriptions from diffs, add review checklists, risk assessments, and test coverage summaries. Use when the user says "write a PR description", "improve this PR", "summarize my changes", "PR review", "pull request", or asks to document a diff for reviewers.
About this skill
The 'comprehensive-review-pr-enhance' skill empowers AI agents to generate detailed and highly structured Pull Request (PR) descriptions by analyzing code differences. It goes beyond a simple summary, automatically adding a tailored review checklist, identifying potential risks (like breaking changes or security-sensitive files), and summarizing test coverage. This skill streamlines the PR creation process, ensures consistent and thorough documentation, and significantly aids reviewers by providing all necessary context upfront, making code reviews more efficient and effective.
Best use case
Developers preparing a Pull Request; Teams aiming for standardized and high-quality PR documentation; Improving the efficiency and thoroughness of code review processes; Generating documentation for code changes; Identifying potential risks early in the development cycle.
Generate structured PR descriptions from diffs, add review checklists, risk assessments, and test coverage summaries. Use when the user says "write a PR description", "improve this PR", "summarize my changes", "PR review", "pull request", or asks to document a diff for reviewers.
A well-organized and informative Pull Request description that includes: a clear summary of changes, a categorized list of files affected, a dynamic review checklist relevant to the changes, a concise risk assessment highlighting breaking changes or sensitive areas, and a summary of test coverage implications.
Practical example
Example input
Hey, I've just committed some changes. Can you write a comprehensive PR description for them, including a review checklist and risk assessment? Improve this PR documentation, please. Summarize my latest diff for a pull request review.
Example output
{
"title": "Feature: Implement User Authentication Flow",
"description": "This PR introduces a complete user authentication flow, including signup, login, and session management. It leverages JWT for token-based authentication and integrates with the existing user database.",
"changes_categorization": {
"source": ["src/auth.js", "src/userController.js"],
"test": ["tests/auth.test.js"],
"config": ["config/jwt.js"],
"docs": [],
"build": [],
"styles": []
},
"review_checklist": [
"Security: Have all authentication endpoints been properly secured against common vulnerabilities (e.g., SQL injection, XSS)?",
"Performance: Is the authentication process efficient, especially under load?",
"Tests: Are there comprehensive unit and integration tests for all new authentication logic?",
"Documentation: Is the new API clearly documented for frontend consumption?",
"Backward Compatibility: Are there any breaking changes for existing users or services?",
"Error Handling: Is error handling robust and user-friendly?"
],
"risk_assessment": {
"breaking_changes": "Potentially, as existing user session management might need migration. Documented in release notes.",
"security_sensitive_files": ["src/auth.js", "config/jwt.js"],
"large_diff": "Yes, approximately 750 lines changed, requiring careful review."
},
"test_coverage_summary": "New unit tests cover 90% of auth logic. Integration tests confirm flow end-to-end. No significant decrease in overall project coverage."
}When to use this skill
- When a user asks to 'write a PR description', 'improve this PR', 'summarize my changes', 'PR review', or 'pull request'. It is also ideal when documenting a diff for reviewers or when preparing any significant code changes for formal review and integration.
When not to use this skill
- When the changes are trivial and do not warrant a formal, structured review process; When the user prefers to manually write a PR description from scratch without AI assistance; When the primary need is to generate code rather than describe it.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/comprehensive-review-pr-enhance/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How comprehensive-review-pr-enhance Compares
| Feature / Agent | comprehensive-review-pr-enhance | Standard Approach |
|---|---|---|
| Platform Support | Claude | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | medium | N/A |
Frequently Asked Questions
What does this skill do?
Generate structured PR descriptions from diffs, add review checklists, risk assessments, and test coverage summaries. Use when the user says "write a PR description", "improve this PR", "summarize my changes", "PR review", "pull request", or asks to document a diff for reviewers.
Which AI agents support this skill?
This skill is designed for Claude.
How difficult is it to install?
The installation complexity is rated as medium. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# 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 1. Run `git diff <base>...HEAD --stat` to identify changed files and scope 2. Categorise changes: source, test, config, docs, build, styles 3. Generate the PR description using the template below 4. Add a review checklist based on which file categories changed 5. Flag breaking changes, security-sensitive files, or large diffs (>500 lines) ## PR Description Template ```markdown ## 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
Related Skills
git-pr-workflows-pr-enhance
You are a PR optimization expert specializing in creating high-quality pull requests that facilitate efficient code reviews. Generate comprehensive PR descriptions, automate review processes, and ensu
moodle-external-api-development
This skill guides you through creating custom external web service APIs for Moodle LMS, following Moodle's external API framework and coding standards.
mobile-developer
Develop React Native, Flutter, or native mobile apps with modern architecture patterns. Masters cross-platform development, native integrations, offline sync, and app store optimization.
makepad-platform
CRITICAL: Use for Makepad cross-platform support. Triggers on: makepad platform, makepad os, makepad macos, makepad windows, makepad linux, makepad android, makepad ios, makepad web, makepad wasm, makepad metal, makepad d3d11, makepad opengl, makepad webgl, OsType, CxOs, makepad 跨平台, makepad 平台支持
makepad-layout
CRITICAL: Use for Makepad layout system. Triggers on: makepad layout, makepad width, makepad height, makepad flex, makepad padding, makepad margin, makepad flow, makepad align, Fit, Fill, Size, Walk, "how to center in makepad", makepad 布局, makepad 宽度, makepad 对齐, makepad 居中
makepad-font
CRITICAL: Use for Makepad font and text rendering. Triggers on: makepad font, makepad text, makepad glyph, makepad typography, font atlas, text layout, font family, font size, text shaping, makepad 字体, makepad 文字, makepad 排版, makepad 字形
graphql-architect
Master modern GraphQL with federation, performance optimization, and enterprise security. Build scalable schemas, implement advanced caching, and design real-time systems.
git-advanced-workflows
Master advanced Git techniques to maintain clean history, collaborate effectively, and recover from any situation with confidence.
debugging-toolkit-smart-debug
Use when working with debugging toolkit smart debug
debugger
Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues.
conductor-setup
Configure a Rails project to work with Conductor (parallel coding agents)
bun-development
Fast, modern JavaScript/TypeScript development with the Bun runtime, inspired by [oven-sh/bun](https://github.com/oven-sh/bun).