self-review

self-review is a skill for Claude Code from lwalden/AIAgentMinder. It costs 9 tokens per session (1,333 once invoked), scanned A, original, MIT.

A code review performed before opening a pull request, using separate reviewers that each focus on a particular concern. A pull request is a proposed change submitted for review before it enters the main codebase.

In plain words
What is it for?
Use it to review changes against the main branch for security, performance, API design, cost, or user-experience issues.
Why use it?
It helps find problems before review by checking the changed code through focused lenses rather than relying on one general inspection.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Part of the aiagentminder plugin — 15 skills, 16 agents, 5 hooks shipped together

Good fit Use it to review changes against the main branch for security, performance, API design, cost, or user-experience issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lwalden/aiagentminder/self-review
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.

Any agent
npx skills add lwalden/AIAgentMinder --skill self-review
Clone the repo
git clone --depth 1 https://github.com/lwalden/AIAgentMinder

Made for: Claude Code.

Or install aiagentminder, the plugin that ships this one along with the rest of its 15 skills, 16 agents, 5 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lwalden/aiagentminder/self-review/github.svg)](https://agentmods.dev/skills/lwalden/aiagentminder/self-review)
Your own site
<a href="https://agentmods.dev/skills/lwalden/aiagentminder/self-review"><img src="https://agentmods.dev/badge/skills/lwalden/aiagentminder/self-review/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 self-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/lwalden/aiagentminder/self-review"><img src="https://agentmods.dev/badge/skills/lwalden/aiagentminder/self-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00009 $0.01333
Opus 5 $0.00005 $0.00666
Sonnet 5 $0.00002 $0.00267
Haiku 4.5 $0.00001 $0.00133

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

Security

Grade A, and why

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 8d 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/self-review/SKILL.md · 128 lines

How it starts

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

/aiagentminder:self-review - Pre-PR Code Review

Run a focused code review before creating a pull request. Spawns dedicated reviewer agents — each with a specific lens, read-only permissions, and its own context window.


Step 1: Get the Diff

Get the diff for the current branch vs main (or the base branch):

git diff main...HEAD

If the diff is empty: tell the user "No changes vs main — nothing to review."


Step 2: Choose Review Lens

During autonomous sprint execution: lens selection is the caller's responsibility (sprint-master selects lenses based on PR content type before invoking this skill). Run only the lenses passed in the invocation prompt. If no specific lenses are specified, ask the user which to apply (same as manual invocation below).

When invoked manually, ask the user which lens to apply:

A) Security — injection, auth bypass, data exposure, hardcoded secrets B) Performance — N+1 queries, unbounded loops, missing indexes, blocking I/O C) API Design — consistency with existing endpoints, naming conventions, error response shapes D) Cost Impact — paid API call patterns, retry/fallback designs, unbounded batch sizes E) UX Friction — error messages, CLI output, feedback, discoverability F) All five (default)


Step 3: Run the Review

For each selected lens, use the Agent tool to spawn the corresponding reviewer agent. Pass the diff as the prompt — the agent's own instructions define its focus areas and output format.

Lens Agent Notes
Security security-reviewer disallowedTools: [Edit, Write, Bash], model: sonnet, effort: high
Performance performance-reviewer disallowedTools: [Edit, Write, Bash], model: sonnet, effort: high
API Design api-reviewer disallowedTools: [Edit, Write, Bash], model: sonnet, effort: medium
Cost Impact cost-reviewer disallowedTools: [Edit, Write, Bash], model: sonnet, effort: medium
UX Friction ux-reviewer disallowedTools: [Edit, Write, Bash], model: sonnet, effort: medium

Read the full file on GitHub · 128 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. 8d ago First seen · 128 lines · 9 tokens per session scan A 64eb3d38d63b

Subscribe to this mod's changes

self-review is a skill published in the GitHub repository lwalden/AIAgentMinder (5 stars, last pushed 1mo ago), licensed MIT. It adds 9 tokens to every session and 1,333 once invoked, about $0.0000 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.