llm-wiki: Command for Claude Code

.claude/commands/review-pr.md

review-pr is a command for Claude Code from Pratiyush/llm-wiki. It costs 0 tokens per session (950 once invoked), scanned C, original, MIT.

A pull-request review command for the llmwiki code repository. A pull request is a proposed set of code changes waiting to be checked before merging.

In plain words
What is it for?
It reviews a pull request's files and changes, classifies concerns as blockers or minor issues, and checks tests, security, architecture, and contribution requirements.
Why use it?
It applies the repository's review rules consistently and ties each finding to the relevant documentation.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is Pratiyush/llm-wiki's own configuration. It tells Claude Code how to work on llm-wiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llm-wiki configures →

Part of the llm-wiki plugin — 6 skills, 18 commands shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Pratiyush/llm-wiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Pratiyush/llm-wiki/master/.claude/commands/review-pr.md
Clone the repo
git clone --depth 1 https://github.com/Pratiyush/llm-wiki

Made for: Claude Code.

Or install llm-wiki, the plugin that ships this one along with the rest of its 6 skills, 18 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for review-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/pratiyush/llm-wiki/review-pr/github.svg)](https://agentmods.dev/commands/pratiyush/llm-wiki/review-pr)
Your own site
<a href="https://agentmods.dev/commands/pratiyush/llm-wiki/review-pr"><img src="https://agentmods.dev/badge/commands/pratiyush/llm-wiki/review-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for review-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/pratiyush/llm-wiki/review-pr"><img src="https://agentmods.dev/badge/commands/pratiyush/llm-wiki/review-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 950 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00950
Opus 5 $0.00000 $0.00475
Sonnet 5 $0.00000 $0.00190
Haiku 4.5 $0.00000 $0.00095

Measured 9d ago against content hash f5a889c36337, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

review-pr scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- What the contributor should do to get to Approve -->
.claude/commands/review-pr.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run the canonical llmwiki code review against a pull request and post findings.

Usage: /review-pr

This slash command loads docs/maintainers/REVIEW_CHECKLIST.md and applies every section to the diff of the given PR. The rule is: one concern per bullet, blocker-vs-nit classification, link to the relevant doc section for every finding.

Workflow

  1. Resolve the PR number — accept either 123 or https://github.com/Pratiyush/llm-wiki/pull/123. Use gh pr view <N> to fetch the title, body, author, and file list.

  2. Read the governance docs first — load all of:

    • docs/maintainers/REVIEW_CHECKLIST.md (the full bar)
    • docs/maintainers/ARCHITECTURE.md (layer boundaries)
    • docs/maintainers/DECLINED.md (prior rejections that may apply)
    • CONTRIBUTING.md (TL;DR rules)
    • SECURITY.md (privacy + security bar)
  3. Fetch the diffgh pr diff <N> for the raw patch. Walk the diff file by file, mapping each to its layer via docs/maintainers/ARCHITECTURE.md.

  4. Run the checklist — apply every section of REVIEW_CHECKLIST.md to the diff:

    • Meta (linked issue, one concern, commit title, CHANGELOG, tests, CI)
    • Layer boundaries (layer-appropriate changes, no new runtime deps)
    • Security + privacy (no real session data, XSS, no network, localhost binding, no telemetry)
    • Code quality (docstrings, comments, error handling, type hints, dead code)
    • Tests (happy + edge, descriptive names, regression, tmp_path, run locally)
    • Docs (README, CHANGELOG, docs/, docstrings)
    • Build + runtime smoke
  5. Classify each finding — two categories only:

    • Blocker — Meta section failures, security/privacy issues, failing tests, failing build, broken layer boundaries
    • Nit — style, wording, missing comment, cosmetic
  6. Post the review — group findings by file, then by severity within each file. Blockers first. Every finding cites the relevant section of REVIEW_CHECKLIST.md so the contributor can look up the rule.

  7. Final verdict — one of:

    • Approve — no blockers, maybe a few nits
    • Request changes — at least one blocker
    • Comment — questions only, no blockers, no nits (rare)

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 103 lines · 0 tokens per session scan C f5a889c36337

Subscribe to this mod's changes

review-pr is a command published in the GitHub repository Pratiyush/llm-wiki (386 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 950 tokens. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.