Review pr

From Asymmetric-al/core · View interactive version

Review pr is an AI agent skill from the GitHub repository Asymmetric-al/core. Use only when the user explicitly invokes review-pr (Anthropic pr-review-toolkit) for a multi-agent review of a pull request or local diff by aspect - comments, tests, errors, types, code, simplify, or all.

How to use this skill

Skill file

Comprehensive PR Review

Run a comprehensive pull request review using multiple specialized agents, each focusing on a different aspect of code quality.

Review Aspects (optional): "$ARGUMENTS"

Review Workflow:

  1. Determine Review Scope
  1. Available Review Aspects:
  1. Identify Changed Files
  1. Determine Applicable Reviews

Based on changes:

  1. Launch Review Agents

Sequential approach (one at a time):

Parallel approach (user can request):

  1. Aggregate Results

After agents complete, summarize:

  1. Provide Action Plan

Organize findings:

```markdown

# PR Review Summary

## Critical Issues (X found)

## Important Issues (X found)

## Suggestions (X found)

## Strengths

## Recommended Action

1. Fix critical issues first

2. Address important issues

3. Consider suggestions

4. Re-run review after fixes

```

Usage Examples:

Full review (default):

/pr-review-toolkit:review-pr

Specific aspects:

/pr-review-toolkit:review-pr tests errors
# Reviews only test coverage and error handling

/pr-review-toolkit:review-pr comments
# Reviews only code comments

/pr-review-toolkit:review-pr simplify
# Simplifies code after passing review

Parallel review:

/pr-review-toolkit:review-pr all parallel
# Launches all agents in parallel

Agent Descriptions:

comment-analyzer:

pr-test-analyzer:

silent-failure-hunter:

type-design-analyzer:

code-reviewer:

code-simplifier:

Tips:

Workflow Integration:

Before committing:

1. Write code
2. Run: /pr-review-toolkit:review-pr code errors
3. Fix any critical issues
4. Commit

Before creating PR:

1. Stage all changes
2. Run: /pr-review-toolkit:review-pr all
3. Address all critical and important issues
4. Run specific reviews again to verify
5. Create PR

After PR feedback:

1. Make requested changes
2. Run targeted reviews based on feedback
3. Verify issues are resolved
4. Push updates

Notes:

<!-- CORE-OVERLAY-START -->

This repository (Asymmetric-al/core)

Adapted from Anthropic's pr-review-toolkit plugin (Apache-2.0). Modified by Asymmetric-al/core: the plugin's /review-pr command became this skill (new frontmatter, no allowed-tools), and this overlay was added. The workflow above is otherwise the upstream command text with Prettier formatting. Provenance is in references/upstream.md, and LICENSE is the upstream Apache-2.0 text.

On conflict, the current user request, root AGENTS.md, the nearest nested AGENTS.md, and the matching docs/ai/rules/* rulebook win over this skill.

Triggers

Workflow

  1. Scope. Use the PR or files the user named (gh pr diff <number>). Otherwise review the current branch against origin/develop plus staged, unstaged, and untracked changes (git status --porcelain lists untracked files; read them in full), not only git diff.
  2. Reviewers. The six reviewer prompts are in references/agents/. Dispatch them by client:
  1. Applicable reviewers. Run pr-test-analyzer whenever the change alters behavior, even when no test file changed, because missing coverage is itself a finding under Core's TDD rule.
  2. Read-only reviewers. Every reviewer except code-simplifier only reports. Run code-simplifier only when the user asked for the simplify aspect and authorized edits. Never run it beside another writer. After it edits, run the checks for the touched packages and report what changed.
  3. Project rules. Where a reviewer prompt says CLAUDE.md, read root AGENTS.md (CLAUDE.md imports it), the nearest nested AGENTS.md, and the matching rulebooks under docs/ai/rules/. Tests follow docs/ai/rules/testing.md and Core's TDD rule. Types follow docs/ai/rules/typescript-future-proofing.md.
  4. Upstream-only conventions. silent-failure-hunter names logForDebugging, logError, logEvent, and constants/errorIds.ts. They come from the upstream project and do not exist in Core. Judge error handling against the touched package's existing logging and Sentry use and Core's product-safety invariants. code-simplifier lists example standards (the function keyword, explicit return types, avoiding try/catch). Apply Core's ESLint, Prettier, and rulebook conventions instead of that list.
  5. Severity. Classify every finding with the rubric in docs/ai/rules/review-bots.md by its actual impact. Treat the reviewers' own labels and scores (Critical, Important, 1-10 ratings, confidence) as inputs, not as the P-level. P0 is only for data loss, a security, auth, or permission bypass, a payment or webhook error, a migration hazard, a crash, or a broken core flow. A misleading comment or a broad catch is P1 or P2 unless its impact meets that bar. Every behavior finding needs file:line evidence.
  6. Output. Report locally. Post PR comments or reviews only when the user asks. Never put secrets, .env values, or tokens in a reviewer brief.

Checklist

Edit this canonical copy in docs/ai/skills/review-pr/, then run bun run skills:sync and bun run skills:verify. Edit the native subagents in .cursor/agents/, never in .claude/agents/.

<!-- CORE-OVERLAY-END -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.