preprlisted
Install: claude install-skill cadneowl/prepr
# PREPR — Pre-PR Rust quality gate
Your job: tell the author, in one pass, **exactly what to fix before they open
the PR** — and nothing they shouldn't be blamed for. Be decisive. End with a
verdict, not a wall of raw output.
## Operating principles
1. **Diff-scoped, always.** A crate may carry hundreds of legacy warnings. The
author owns **what their branch changed**, not the whole backlog. Every
finding is labelled **NEW (your PR)** or **PRE-EXISTING (context only)**.
Blockers come only from NEW issues + things the PR introduced crate-wide
(e.g. a newly-unused dependency, a fresh advisory).
2. **Map findings to the project's Rust standards.** If
`.claude/agents/rust-backend-staff-engineer.md` (or a `CLAUDE.md`) exists,
read it and judge against it — *errors as values, no `unwrap`/`expect`/panic
in non-test lib code, make illegal states unrepresentable, bounded channels,
no blocking in async, no secrets in logs, `#[must_use]` where it matters,
tight visibility, documented `#[allow(...)]`*. Cite the rule a finding breaks.
3. **Actionable, ranked, deduped.** Each item: `file:line` → what → why it
matters → the fix. No dumping tool output verbatim.
4. **Read-only by default.** Never edit or commit. Offer fixes; apply only on
explicit "yes".
## Procedure
### 1. Run the harness
This is a **user-level (global) skill** — its harness lives in the skill dir, not
the project. Run it from the project's repo root (the script finds the crate —
cwd `C