pr-self-review

pr-self-review is a skill for Claude Code, Codex from petekp/claude-code-setup. It costs 110 tokens per session (1,823 once invoked), scanned A, original, MIT.

A short review of your own pull request or local code changes, focused on choices and behavior that the code does not explain clearly.

In plain words
What is it for?
Writing brief reviewer notes for an open pull request you authored or for changes that exist only in your local branch.
Why use it?
It helps teammates understand unusual decisions, boundaries, and preserved behavior without adding unnecessary documentation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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/petekp/claude-code-setup/pr-self-review
Any agent
npx skills add petekp/claude-code-setup --skill pr-self-review
Clone the repo
git clone --depth 1 https://github.com/petekp/claude-code-setup

Made for: Claude Code, Codex.

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 pr-self-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/petekp/claude-code-setup/pr-self-review.svg)](https://agentmods.dev/skills/petekp/claude-code-setup/pr-self-review)
Your own site
<a href="https://agentmods.dev/skills/petekp/claude-code-setup/pr-self-review"><img src="https://agentmods.dev/badge/skills/petekp/claude-code-setup/pr-self-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,823 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.00110 $0.01823
Opus 5 $0.00055 $0.00911
Sonnet 5 $0.00022 $0.00365
Haiku 4.5 $0.00011 $0.00182

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

Security

Grade A, and why

pr-self-review 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 5d 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.

skills/pr-self-review/SKILL.md · 181 lines

How it starts

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

PR self-review notes

Read the diff as a reviewer and answer the few questions the code cannot answer for itself. Zero notes is a good result when the change is already clear. Most PRs need zero to three; larger or unusually subtle changes may need more.

These are quick asides to a teammate, not documentation or a defense of the change.

1. Establish the target and authorship

Default to the PR for the current branch. If the user names a PR number or URL, use that target and its repository for every command.

gh pr view \
  --json number,title,body,author,headRefName,headRefOid,state,url
gh api user --jq .login

Add the PR number or URL after view when the user names a target. Pass --repo <owner/repo> when a numbered target belongs to a repository other than the current one. A full PR URL can be used directly.

Record the PR URL, owner/repo, number, author, and headRefOid. Only write self-review notes when the signed-in account is the PR author and the PR is open. If the identities differ, stop rather than speaking as someone else.

If no PR exists, continue in draft-only mode. Read the local branch diff against its intended base plus any staged and unstaged changes. Ask for the base only if it cannot be discovered safely. Explain that the notes cannot be posted until a PR exists.

2. Gather the context before choosing notes

Read, in this order:

  1. The user's stated intent, PR title and body, and any linked issue.
  2. Existing PR discussion and review comments.
  3. The whole diff, then the nearby code and tests for any candidate note.
  4. Relevant history when the reason still is not clear.
gh pr diff <target> --repo <owner/repo>
gh api --paginate "repos/<owner>/<repo>/pulls/<number>/comments?per_page=100"
gh api --paginate "repos/<owner>/<repo>/pulls/<number>/reviews?per_page=100"
gh api --paginate "repos/<owner>/<repo>/issues/<number>/comments?per_page=100"

Check recent comments the author wrote or approved in the same repository when you need a voice sample:

Read the full file on GitHub · 181 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 181 lines · 110 tokens per session scan A c3a8c8a703cd

Subscribe to this mod's changes

pr-self-review is a skill published in the GitHub repository petekp/claude-code-setup (47 stars, last pushed 2d ago), licensed MIT. It adds 110 tokens to every session and 1,823 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

implementation-final-review

Perform the repository's risk-tiered independent final review before implementation completion. Use only when explicitly invoked or when repository instructions require it after behavior-impacting implementation work; audit the complete task diff, supported contracts, lifecycle and security boundaries, complexity, and…

openai/openai-agents-python · 58 tokens

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

baby-sit

Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.

langchain-ai/open-swe · 30 tokens

api-docs

Document a module or public API surface (functions, classes, CLI commands, endpoints) from the code itself. Use when the user asks for API reference, to document a module, or to write usage docs for a public interface.

omnigent-ai/omnigent · 50 tokens

continual-learning

Nightly refinement of an existing per-repo review-style prompt using this reviewer's own finding outcomes. Read confirmed (resolved-by-commit / thumbs-up) and dismissed (thumbs-down) findings, promote the bug patterns the team actually fixes, demote the false-positive patterns, reconcile against the current prompt…

langchain-ai/open-swe · 89 tokens

benchmark-tune

Use this skill when running, debugging, interpreting, or documenting mesh-llm benchmark tune model-serving throughput trials, including choosing ctx/batch/ubatch/mmap/mlock/speculative-decoding sweeps, running benchmark tune on local or SSH hosts, collecting JSON evidence, and applying tolerance-aware recommendations.…

Mesh-LLM/mesh-llm · 106 tokens