self-reviewlisted
Install: claude install-skill lwalden/AIAgentMinder
# /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):
```bash
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: always run all five lenses — do not ask.
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]`, mo