Review pr

From denoland/deno · View interactive version

Review pr is an AI agent skill from the GitHub repository denoland/deno. Review a Deno runtime pull request for correctness, tests, security, and conventions. Use when asked to review a PR or when a PR number/URL is provided for review.

How to use this skill

Skill file

Deno PR Reviewer

Review PR $ARGUMENTS on the denoland/deno repository.

Step 1: Gather PR context

Fetch the PR metadata, diff, and comments:

gh pr view $ARGUMENTS --json number,title,body,author,labels,state,reviewDecision,commits,files,isDraft,createdAt,url
gh pr diff $ARGUMENTS
gh pr view $ARGUMENTS --comments --json comments
gh pr checks $ARGUMENTS --json name,state,conclusion 2>/dev/null || echo "No checks found"

Step 2: Gate checks

Before reviewing code, check these gates. If any fail, flag them prominently at

the top of your review and do not approve.

  1. CI status — All checks must pass. Point the author to specific failing

checks. Known flaky tests (labeled ci-test-flaky) can be re-run.

  1. PR title format — Must follow type(scope): description. Types: feat,

fix, perf, refactor, chore, docs, test, revert, BREAKING.

Scope examples: ext/node, ext/fetch, cli, lsp, runtime.

  1. No force pushes — PRs are squash-merged. Authors should push new commits,

not rewrite history.

  1. Focused scope — No drive-by cleanups or unrelated changes. Those belong

in separate PRs.

  1. AI disclosure — If the PR looks AI-generated (boilerplate-heavy, generic

comments, suspiciously broad) but has no disclosure, ask about it.

  1. Linked issue (external contributors) — If the PR author is not a

denoland org member, the PR must link to an issue. If there is no linked

issue, request changes and ask the author to open an issue and discuss the

change first.

Step 3: Code review

Read every changed file in the diff. Use the repo tools (Read, Grep, Glob)

to understand surrounding context when needed.

Rust code

errors.

path traversal, or permission bypasses.

Watch ext/node/ especially — Node.js APIs sometimes assume full access.

deps or stdlib.

JavaScript/TypeScript code

behavior? Check against Node.js docs and/or source code.

(globalThis.__bootstrap.primordials) to avoid prototype pollution. Built-in

methods must not be called on user-controlled objects without primordial

wrappers.

WPT coverage is preferred.

reduce startup cost.

Tests

happy-path + edge-case tests.

when the behavior requires CLI-level validation.

non-deterministic output, [UNORDERED_START]/[UNORDERED_END] for

non-deterministic ordering.

conflicts.

Security-sensitive areas

Pay extra attention to changes in:

Step 4: PR-type-specific checks

Apply additional checks based on the PR type:

source code, not just what "seems right". New polyfills must be registered in

ext/node/polyfills/01_require.js.

the improvement. Watch for correctness regressions.

security updates.

Expectation file updates must match actual results. Suggest ci-wpt-test

label if not present.

yourself.

Step 5: Write your review

Post a review using gh pr review. Structure:

  1. Summary (1-2 sentences): What the PR does and your overall assessment.
  2. Gate issues (if any): Blocking problems that must be fixed.
  3. Code comments: Specific, actionable feedback referencing exact files and

lines. Use nit: prefix for non-blocking suggestions. Suggest fixes when

possible, not just "this is wrong."

  1. Verdict: Approve, request changes, or comment.

Tone

here."

Posting the review

Prefer inline comments on specific lines where possible. Use a single review

with both a summary body and inline comments:

gh api repos/denoland/deno/pulls/{number}/reviews -f event=COMMENT -f body="summary" -f comments='[{"path":"file.rs","line":42,"body":"comment"}]'

Use event=APPROVE or event=REQUEST_CHANGES as appropriate instead of

COMMENT.

For simple reviews without inline comments, fall back to:

gh pr review $ARGUMENTS --comment --body "review text"

Merge readiness

You do NOT have merge permissions. When a PR is ready:

@bartlomieju LGTM, needs maintainer signoff (first-time contributor)

Rules

discussion.

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.