Skill Detail

Pull Request Size Analyzer

Analyzes PR size and reviewability using the GitHub GraphQL API and git diff-stat. Enforces size limits, suggests PR splitting strategies, and tracks team review velocity metrics via GitHub Checks API.

Code Quality & ReviewOpenClaw
Code Quality & Review OpenClaw Security Reviewed
Tool match: graphql
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill pull-request-size-analyzer-agent Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Author
GraphQL Foundation
Last updated
Mar 24, 2026
Quick brief

The Pull Request Size Analyzer promotes healthy code review practices by analyzing PR size, complexity, and reviewability. Using the GitHub GraphQL API, it fetches PR diff statistics, file change patterns, and review history to assess whether a PR is appropriately scoped for effective review.

How it works

What this skill actually does

The agent calculates multiple size metrics beyond simple line counts: logical change units (related changes grouped by feature), cognitive load estimation based on file diversity and complexity scores, and test-to-code change ratios. It integrates with GitHub Checks API to provide inline PR feedback with specific size warnings and splitting suggestions.

When a PR exceeds configurable thresholds, the agent suggests concrete splitting strategies based on the change types detected โ€” separating refactoring from feature work, splitting database migrations from application changes, or breaking apart cross-cutting concerns. It tracks team-level metrics including average PR size, review turnaround time, and review thoroughness correlation with PR size. Dashboards show trends to help teams maintain healthy review practices.