review-pr

review-pr is a skill for Claude Code from viknesh20-20/claude-code-tool-kit. It costs 34 tokens per session (663 once invoked), scanned A, original, MIT.

A pull request review that examines changed code for correctness, security, speed, tests, and coding standards. A pull request is a proposed set of changes waiting to be merged into a shared codebase.

In plain words
What is it for?
Use it to review a pull request or recent code changes before merging. It checks the diff, recent commits, and every changed file.
Why use it?
It helps catch bugs, security risks, missing tests, and maintainability problems before code is merged. Findings include file locations, severity, explanations, and suggested fixes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/viknesh20-20/claude-code-tool-kit/review-pr
Any agent
npx skills add viknesh20-20/claude-code-tool-kit --skill review-pr
Clone the repo
git clone --depth 1 https://github.com/viknesh20-20/claude-code-tool-kit

Made for: Claude Code.

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/skills/viknesh20-20/claude-code-tool-kit/review-pr.svg)](https://agentmods.dev/skills/viknesh20-20/claude-code-tool-kit/review-pr)
Your own site
<a href="https://agentmods.dev/skills/viknesh20-20/claude-code-tool-kit/review-pr"><img src="https://agentmods.dev/badge/skills/viknesh20-20/claude-code-tool-kit/review-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 663 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00034 $0.00663
Opus 5 $0.00017 $0.00331
Sonnet 5 $0.00007 $0.00133
Haiku 4.5 $0.00003 $0.00066

Measured 6d ago against content hash 3942e23c8ec1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

review-pr scanned grade A with 0 findings 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/review-pr/SKILL.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.

Pull Request Code Review

Gather Context

Changed Files

!git diff --name-only HEAD~1 2>/dev/null || echo "No commits to diff"

Diff Summary

!git diff --stat HEAD~1 2>/dev/null || echo "No diff available"

Full Diff

!git diff HEAD~1 2>/dev/null | head -500

Recent Commits

!git log --oneline -10 2>/dev/null


Review Checklist

Analyze every changed file against the following categories. For each finding, provide:

  • File path and line number
  • Severity: Critical / High / Medium / Low
  • Description of the issue
  • Suggested fix with code snippet

1. Correctness

  • Logic errors or off-by-one mistakes
  • Missing null/undefined/nil checks
  • Incomplete error handling
  • Race conditions or concurrency issues
  • Incorrect use of APIs or library functions

2. Security

  • Input validation gaps (SQL injection, XSS, command injection, path traversal)
  • Hardcoded secrets, tokens, or credentials
  • Authentication/authorization bypass risks
  • Insecure data handling (PII exposure, logging sensitive data)
  • Missing CSRF/CORS protections where applicable

3. Performance

  • N+1 query patterns
  • Unnecessary loops or redundant computations
  • Missing pagination for unbounded queries
  • Blocking operations in async contexts
  • Large memory allocations in hot paths
  • Missing indexes for new database queries

4. Test Coverage

  • Are new code paths covered by tests?
  • Are edge cases and error paths tested?
  • Are mocks appropriate and not over-mocking?
  • Do test names clearly describe the scenario?

5. Code Quality

  • Readability and naming clarity
  • Unnecessary complexity that can be simplified
  • Code duplication that should be extracted
  • Dead code or unused imports
  • Missing or misleading comments

6. Conventions

  • Adherence to project coding standards (check CLAUDE.md)
  • Consistent formatting and style
  • Proper commit message format
  • Documentation for public APIs

Output Format

Findings

Group findings by severity:

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. 6d ago First seen · 103 lines · 34 tokens per session scan A 3942e23c8ec1

Subscribe to this mod's changes

review-pr is a skill published in the GitHub repository viknesh20-20/claude-code-tool-kit (7 stars, last pushed 4mo ago), licensed MIT. It adds 34 tokens to every session and 663 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.