Command Palette

Search for a command to run...

Назад к скиллам
скилл № 45516

pr-review-expert

Reviews risky PRs by blast radius: what imports the changed files, breaking API and schema changes, sensitive paths and test deltas. Use when a PR touches…

БесплатноЗапускает вложенные скрипты
borgheiот borghei★ 1 250 звёзд на GitHub

Установить pr-review-expert в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

PR Review Expert

Structured, systematic code review for GitHub PRs and GitLab MRs. Goes beyond style nits to perform blast-radius analysis, security vulnerability scanning, breaking-change detection, test-coverage delta calculation, and performance impact assessment. Produces reviewer-ready reports with prioritized findings categorized as must-fix, should-fix, and suggestions.

Keywords: PR review, code review, pull request, merge request, blast radius, security scan, breaking changes, test coverage, review checklist, code quality

Core Capabilities

  • Blast radius analysis — trace which files, services, and downstream consumers a diff could break; quantify severity CRITICAL/HIGH/MEDIUM/LOW.
  • Security scanning — detect SQL injection, XSS vectors, hardcoded secrets, auth bypass, insecure crypto, path traversal, and prototype pollution in the diff.
  • Breaking-change detection — flag API removals/renames, response-schema and required-field changes, DB column removals, env-var changes, and TS interface edits.
  • Test coverage analysis — new-code vs new-test ratio, missing tests for new public functions, deleted tests without deleted code, coverage delta.
  • Performance assessment — N+1 query patterns, bundle-size regressions, unbounded queries, missing indexes.
  • Reviewer-ready output — prioritized must-fix / should-fix / suggestion report, a 35-item checklist, and consistent comment labels.

When to Use

  • Before merging any PR that touches shared libraries, APIs, or database schemas.
  • When a PR is large (>200 lines changed) and needs structured review.
  • For PRs in security-sensitive code paths (auth, payments, PII handling).
  • After an incident, to proactively review similar code changes.
  • For onboarding new contributors whose PRs need thorough feedback.

Clarify First

Before reviewing, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • Which PR and base branch: blast radius and coverage deltas are computed against the base; a stale base reports changes that aren't in the PR.
  • What the change is for: (linked ticket or one-line intent) — without it, intended behaviour changes get flagged as bugs.
  • Review depth: a full blast-radius and security pass, or a quick check of a small change — sets which workflow steps run.

Ask about the two or three inputs that matter most for this request. If the user says "just review it," proceed and state your assumptions at the top of the report.

Tools

Tool Purpose Command
blast_radius_calculator.py Calculate PR blast radius from import chains / dependency trees of changed files git diff --name-only main...HEAD | python scripts/blast_radius_calculator.py --root src
diff_analyzer.py Analyze a diff for risk indicators (large files, sensitive paths, config/breaking/security patterns) gh pr diff $PR | python scripts/diff_analyzer.py --json
review_checklist_generator.py Generate a tailored review checklist from changed file types/patterns git diff --name-only main...HEAD | python scripts/review_checklist_generator.py

Workflow

  1. Gather context: the PR description, linked issue and the list of changed files (git diff --name-only main...HEAD).
  2. Measure blast radius with blast_radius_calculator.py: which modules import the changed files, directly and transitively.
  3. Scan the diff with diff_analyzer.py for sensitive paths, config, removed exports and security patterns, and build the checklist with review_checklist_generator.py.
  4. Check breaking changes and tests: removed or renamed API fields, schema changes without a migration path, changed behaviour without a test that shows it.
  5. Write the review in the format from references/writeup-format-and-checklist.md: must fix, should fix, suggestions, looks good, each with file and line.
  6. Done when every blocking item names the file, the risk and the fix, high blast-radius changes have a test or a rollback note, and the verdict (approve, request changes) is stated.

Anti-Patterns

Reviewing style instead of substance

Mistake: Most comments are about naming and formatting. Why it happens: Style problems are visible on a first read; logic and security problems need context. Instead: Leave formatting to the linter. Spend the review on blast radius, security, correctness and error paths, and label every comment must:, nit: or question:.

Judging risk by diff size

Mistake: A five-line change to a shared utility is approved because it is five lines. Why it happens: The diff size is the only risk measure on the screen. Instead: Run blast_radius_calculator.py on the changed files. A small change in a shared module can break every service that imports it.

Approving an

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/best-practices-and-troubleshooting.md
  • references/review-workflow-commands.md
  • references/writeup-format-and-checklist.md
  • scripts/blast_radius_calculator.py
  • scripts/diff_analyzer.py
  • scripts/review_checklist_generator.py

FAQ

Что делает скилл pr-review-expert?

Reviews risky PRs by blast radius: what imports the changed files, breaking API and schema changes, sensitive paths and test deltas. Use when a PR touches shared libraries, APIs, schemas or auth (for general review use code-reviewer).

Как установить скилл pr-review-expert?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pr-review-expert запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить pr-review-expert с