domains / software-engineering / pr-description-enhancement / comprehensive-review-pr-enhance

comprehensive-review-pr-enhance

Skill card

combined

Both copies describe the same task (turning a diff into a reviewer-friendly PR description), but they disagree on concrete procedure and parameters. The first copy is a high-level instruction set with a generic output format and a pointer to a playbook. The second copy adds a specific workflow (git diff --stat, categorization, template, checklist rules, splitting thresholds) and different thresholds for large diffs. Crowning one would hide the other's material steps and conflicting parameters.

Repositories

RepositoryPath
rmyndharis/antigravity-skillsskills/comprehensive-review-pr-enhance/SKILL.md
sickn33/agentic-awesome-skillsplugins/agentic-awesome-skills-claude/skills/comprehensive-review-pr-enhance/SKILL.md

Other copies

RoleRepositoryPath
peerrmyndharis/antigravity-skillsskills/comprehensive-review-pr-enhance/SKILL.md
peersickn33/agentic-awesome-skillsplugins/agentic-awesome-skills-claude/skills/comprehensive-review-pr-enhance/SKILL.md
adaptersickn33/agentic-awesome-skillsplugins/agentic-awesome-skills/skills/comprehensive-review-pr-enhance/SKILL.md
adaptersickn33/agentic-awesome-skillsskills/comprehensive-review-pr-enhance/SKILL.md

Combined skill

---
name: comprehensive-review-pr-enhance
description: "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."
---

# Pull Request Enhancement

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 ensure PRs follow best practices for clarity, size, and reviewability.

## Use this skill when

- Writing or improving PR descriptions
- Summarizing changes for faster reviews
- Organizing tests, risks, and rollout notes
- Reducing PR size or improving reviewability

## Do not use this skill when

- There is no PR or change list to summarize
- You need a full code review instead of PR polishing
- The task is unrelated to software delivery

## Context

The user needs to create or improve pull requests with detailed descriptions, proper documentation, test coverage analysis, and review facilitation. Focus on making PRs that are easy to review, well-documented, and include all necessary context.

## Requirements

$ARGUMENTS

## Workflow

1. Run `git diff <base>...HEAD --stat` to identify changed files and scope.
2. Analyze the diff and identify intent and scope.
3. Categorise changes: source, test, config, docs, build, styles.
4. Summarize changes, tests, and risks clearly.
5. Generate the PR description using the template below.
6. Add a review checklist based on which file categories changed.
7. Highlight breaking changes and rollout notes.
8. 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>
```

## Output Format

- PR summary and scope
- What changed and why
- Tests performed and results
- Risks, rollbacks, and reviewer notes

## Resources

- `resources/implementation-playbook.md` for detailed templates and examples.

## 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.

## Conflicts

- rmyndharis/antigravity-skills: No explicit git command or diff size thresholds; output format is a simple list of sections.
- sickn33/agentic-awesome-skills: Requires running `git diff <base>...HEAD --stat`, uses a markdown table template, and defines large-diff thresholds (>500 lines flag, >20 files or >1000 lines suggest splitting).