smart-reviewlisted
Install: claude install-skill williamblair333/Uncle-J-s-Refinery
# Smart Review — Auto-Classifying Router
## Step 0 — Get the diff
```bash
git diff @{upstream}...HEAD 2>/dev/null || git diff main...HEAD 2>/dev/null || git diff HEAD~1
git diff --name-only @{upstream}...HEAD 2>/dev/null || git diff --name-only HEAD~1
```
If an argument was passed (PR number, branch, file path), use that as the target instead. Also capture `git diff HEAD` if there are uncommitted changes.
Capture:
- `DIFF_STAT`: total lines added + removed (`git diff --stat`)
- `FILES_CHANGED`: list of changed file paths
---
## Step 1 — Rules floor (deterministic, no model judgment)
Match `FILES_CHANGED` against the table below. The HIGHEST matching tier is the floor. If nothing matches, floor = **Medium**.
| Pattern in any changed file path or content | Floor tier |
|---|---|
| `auth`, `session`, `token`, `password`, `credential`, `secret`, `permission`, `oauth`, `jwt`, `api_key`, `.env` | **Critical** |
| `hooks/`, `.claude/`, `settings.json`, `CLAUDE.md`, `*.service`, `cron`, `systemd`, `@reboot` | **Critical** |
| `migration`, `schema`, `ALTER TABLE`, `DROP TABLE`, `DROP COLUMN` | **Critical** |
| Any file the pre-mortem fired on in this session, AND the change goes beyond what the pre-mortem cleared | **Critical** (floor enforced by collision) |
| Any file the pre-mortem fired on in this session, AND the change IS exactly what the pre-mortem cleared | **High** (collision floor; pre-mortem already covered the risk) |
| New function or class added (diff contains `^