Skip to content
Agentmart
Submit a tool

review-pr

Skill by sajadn

IndexedApache-2.0
Write a review

Chalk Labs

Need help deploying review-pr?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sajadn-review-pr

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The publisher has not written a description yet.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
review-pr
Description
None
License
Apache-2.0
Instructions
237 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • invalid YAML frontmatter: Unexpected flow-seq-start at node end at line 3, column 30:
  • name: missing
  • description: missing

Files (2)

  • SKILL.md
  • advanced.md

SKILL.md (first lines)

# Interactive PR Review — NVIDIA-NeMo/RL

Review a pull request or local branch interactively, applying the project's coding guidelines.

## Parse Arguments

- If `$ARGUMENTS` contains a number → **PR mode** with that PR number
- If `$ARGUMENTS` is empty or has no number → **LOCAL mode** (review current branch vs main)
- If `$ARGUMENTS` contains `update` → **UPDATE** mode (PR mode only)
- If `$ARGUMENTS` contains `--deep` → use parallel subagents for deeper review

**Repo**: `NVIDIA-NeMo/RL`

**Examples:**
- `/review-pr 123` — review PR #123, single agent
- `/review-pr 123 --deep` — review PR #123 with parallel subagents
- `/review-pr 123 update` — follow up on existing threads for PR #123
- `/review-pr` — review current branch vs main, terminal output only

---

## Phase 1: Setup

### PR mode
```bash
git fetch origin pull/$PRNUM/head:pr-$PRNUM-review
git checkout pr-$PRNUM-review
```

### LOCAL mode
Already on the correct branch. Determine the merge base:
```bash
git merge-base main HEAD
```

---

## Phase 2: Gather Context

### PR mode — parallel MCP fetches

All with `owner=NVIDIA-NeMo`, `repo=RL`, `pullNumber=$PRNUM`:

1. `mcp__github__pull_request_read` method=`get` → PR title, description, author, base branch, labels, head SHA
2. `mcp__github__pull_request_read` method=`get_diff` → full diff
3. `mcp__github__pull_request_read` method=`get_files` → list of changed files
4. `mcp__github__pull_request_read` method=`get_review_comments` → existing review threads
5. `mcp__github__pull_request_read` method=`get_reviews` → existing reviews
6. `mcp__github__pull_request_read` method=`get_comments` → general PR comments

### LOCAL mode — git diff

```bash
git diff $(git merge-base main HEAD)..HEAD
git diff $(git merge-base main HEAD)..HEAD --name-only
```

No MCP calls needed.

### Both modes — local reads

7. Read `CLAUDE.md` from repo root for review philosophy
8. Read all `.claude/skills/*/SKILL.md` files (except `review-pr`) for guideline rules
9. Glob `.claude/review-memory/*.md` — if any exist, read them for learned patterns

---

## Phase 3: Analyze

### Single-agent mode (default)

Analyze all changes yourself. Return a list of candidate issues — each with file, line, category, and description. Do NOT score them yet; scoring happens in the validation step (Phase 3b).

### Deep mode (`--deep`) — parallel subagents

Launch 3 opus subagents in parallel using the `Agent` tool. Provide each with the diff, PR description (if PR mode), and the guideline skills content. Each returns a list of candidate issues (file, line, category, description). Do NOT ask them to score — scoring happens in Phase 3b.

**Subagent 1 — Guideline compliance:**
Review the diff against all guideline skills (code-style, config-conventions, error-handling, testing, copyright, docs). For each violation, return the file, line, description, and which skill it violates.

**Subagent 2 — Bug scan (diff only):**
Scan for obvious bugs in the diff without reading surrounding context. Flag syntax errors, type errors, clear logic errors, missing imports, unresolved references.

**Subagent 3 — Contextual bug scan:**
Read surrounding code and git history for each changed file. Look for bugs that only become apparent with context: incorrect API usage (especially megatron-bridge, megatron-lm, automodel, gym), race conditions, broken assumptions.

After all subagents return: merge results and deduplicate (same file+line+issue = one finding). Then proceed to Phase 3b.

### Analysis rules (all modes)

#### NEW mode
- Analyze the diff against all guideline skills
- For each changed file, read surrounding context locally using `Read` and `Grep` to understand the change in context
- Cross-reference existing review comments (PR mode only, from step 4) to avoid duplicating points already raised by other reviewers
- Also apply any patterns from review memory files
- Categorize findings:
  - **[BUG]** — Logic errors, null refs, race conditions, syntax errors
  - **[TEST]** — Missing or insufficient test coverage
  - **[GUIDELINE]** — Violations of coding guidelines from skills
  - **[DOC]** — Outdated or missing documentation

#### UPDATE mode (PR mode only)
- Review all unresolved review threads on the PR
- For each thread, determine if action is needed:
  1. **We disagree with the response** → draft a comment like "We can resolve this thread because XYZ"
  2. **The author asked a question** or made a comment that needs a response → draft an answer
- CAN also create new comments if you notice something warranted while reviewing threads
- Skip threads that are resolved or where no response is needed

---

## Phase 3b: Validate & Score

For each candidate issue from Phase 3, launch a **separate opus validation subagent** using the `Agent` tool. Launch these in parallel (batch all at once).

Each validation subagent receives:
- The candidate issue (file, line, category, description)
- The relevant code context (the diff hunk + surrounding lines)
- The PR title and description (if PR mode)

From sajadn/diffusion_RL, Apache-2.0.

More from sajadn/diffusion_RL

Signals

Stars
0
Forks
1
Open issues
0
Last commit (this folder)
Apr 16, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sajadn

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get review-pr running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying review-pr?

CallGet help
Cite this page

review-pr skill. Agent Mart. https://agentmart.dev/skills/sajadn-review-pr (last updated 2026-10-24)