PR Quality Assessment

VerifiedSafe

Extract implementation guidance and assess risk from pull requests before implementing fixes. Use the comprehensive checklist to evaluate code quality, testing, style, documentation, and potential breaking changes. Helps determine whether a PR is a reliable reference implementation and plan tests or edge cases.

Sby Skills Guide Bot
DevelopmentIntermediate
1206/2/2026
Claude CodeCursorWindsurfCopilotCodex
#pr-analysis#risk-assessment#code-review#quality-checklist

Recommended for

Our review

Extracts implementation guidance from pull requests and assesses risk before implementing a fix yourself.

Strengths

  • Clear structure for quickly analyzing a PR
  • Covers code quality, testing, documentation, and breaking changes
  • Evaluates complexity and red flags
  • Provides a basis for creating a test plan

Limitations

  • Does not replace a thorough manual review
  • PR/issue relationship score can be subjective
  • Not intended for use as a merge gate for external PRs
When to use it

Use this checklist when you need to extract insights from a PR to inform your own implementation or decide if it's a good reference.

When not to use it

Do not use it as a mandatory validation process for merging external pull requests.

Security analysis

Safe
Quality score93/100

This skill is a static checklist and template for PR analysis and code review. It does not instruct the agent to execute any commands, access external resources, or handle sensitive data. There are no destructive or exfiltration risks.

No concerns found

Examples

Analyze a PR for implementation guidance
Review this PR using the quality checklist and extract all implementation guidance, risk notes, and a test plan.
Assess risk and complexity of a change
Analyze the attached PR for risk level, complexity signals, and breaking changes. Summarize what to be careful about before implementing a similar fix.
Create a test plan from PR changes
Based on the changes in this PR, create a test plan covering happy path, edge cases, and error handling using the testing criteria from the quality checklist.

Quality Checklist

At a glance

  • Purpose: Extract implementation guidance from PRs and assess risk before you implement the fix yourself.
  • Use when: You are deciding whether a PR is a good “reference implementation,” or you’re planning tests/edge cases.
  • Output: Risk notes + test plan + any constraints to preserve.
  • Note: This is not a merge gate for external PRs.

Use this checklist to extract insights and assess risk. It is not a merge gate for external PRs.

PR Analysis Checklist

Use this when extracting insights from PRs to inform your own implementation.

Automated Signals

Check CI/CD results (indicates if their approach works):

  • [ ] Tests pass
  • [ ] Linting passes
  • [ ] Build succeeds
  • [ ] Coverage maintained or improved

Code Quality

  • [ ] Logic is correct (actually solves the stated problem)
  • [ ] Edge cases handled appropriately
  • [ ] Error handling is adequate (not silent failures)
  • [ ] No obvious performance issues
  • [ ] No security vulnerabilities introduced

Style and Patterns

  • [ ] Follows existing code patterns in the repo
  • [ ] Consistent naming conventions
  • [ ] Appropriate abstraction level (not over/under-engineered)
  • [ ] Comments where logic is non-obvious

Testing

  • [ ] New functionality has tests
  • [ ] Tests are meaningful (not just coverage padding)
  • [ ] Tests cover both happy path and error cases
  • [ ] Tests are maintainable and readable

Documentation

  • [ ] Public API changes documented
  • [ ] README updated if user-facing behavior changed
  • [ ] Changelog entry if needed
  • [ ] Code comments for complex logic

Relationship Quality

  • [ ] PR intent matches linked issue intent
  • [ ] No mismatch between reported symptoms and implemented fix
  • [ ] Relationship quality noted (strong/medium/weak)

Breaking Changes

If breaking changes present:

  • [ ] Clearly documented in PR description
  • [ ] Migration path provided
  • [ ] Version bump appropriate (semver)

Risk Assessment

File Risk Levels

| Location | Risk | Reason | |----------|------|--------| | Core/critical paths | HIGH | Wide impact, careful review | | User-facing features | MEDIUM | Visible bugs, moderate impact | | Tests | LOW | Isolated, easy to fix | | Documentation | LOW | No runtime impact | | Configuration | VARIES | Depends on what's configured |

Change Size

| Size | Files | Lines | Review Approach | |------|-------|-------|-----------------| | Small | 1-3 | <50 | Quick review | | Medium | 4-10 | 50-200 | Careful review | | Large | 10+ | 200+ | Consider splitting |

Complexity Signals

Red flags requiring extra scrutiny:

  • Refactoring + new features in same PR
  • Changes to error handling or retry logic
  • Concurrency or async changes
  • Security-sensitive areas (auth, input validation)
  • Database schema changes
  • API contract changes

Issue Quality Assessment

Well-Formed Bug Report

  • [ ] Clear title describing the problem
  • [ ] Steps to reproduce
  • [ ] Expected behavior
  • [ ] Actual behavior
  • [ ] Environment details (OS, version, etc.)
  • [ ] Error messages/stack traces if applicable

Well-Formed Feature Request

  • [ ] Clear description of desired functionality
  • [ ] Use case / motivation explained
  • [ ] Consideration of alternatives
  • [ ] Scope is reasonable

Actionability Score

| Score | Criteria | |-------|----------| | High | All needed info present, can start work immediately | | Medium | Most info present, minor clarification needed | | Low | Missing critical info, needs follow-up | | None | Too vague to act on |

Agent Brief Quality

When creating agent briefs, ensure:

  • [ ] Clear problem statement (what to solve)
  • [ ] Specific acceptance criteria (how to verify)
  • [ ] Relevant context links (issues, PRs, files)
  • [ ] Constraints noted (don't change X, maintain compatibility with Y)
  • [ ] Scope bounded (what's NOT in scope)

Agent Brief Template

## Task: [Title]

**Intent:** [What problem this solves]

**Context:**
- Related issue: [ISSUE:XX]
- Key files: `src/path/file.ts`

**Acceptance Criteria:**
- [ ] [Specific, testable criterion]
- [ ] [Another criterion]

**Constraints:**
- Do not change [X]
- Must maintain backwards compatibility with [Y]

**Out of Scope:**
- [Related but excluded work]

Repo Health Checklist

Use during opportunity scans:

  • [ ] README has a clear quickstart and examples
  • [ ] Docs match current behavior
  • [ ] CI is reliable and fast enough
  • [ ] Tests cover critical paths
  • [ ] Releases are documented and easy to follow
Related skills