← ClaudeAtlas

preprlisted

Pre-PR Rust quality gate. Run this before opening or updating a pull request on a Rust crate to surface dead code, unused dependencies, code bloat, unsafe, panics/unwraps, security advisories, and clippy/quality issues — scoped to the PR diff and triaged by severity with a clear go/no-go verdict. Invoke when the user says "prepr", "pre-PR check", "vet my Rust changes", or asks to clean up a Rust branch before a PR.
cadneowl/prepr · ★ 0 · Code & Development · score 70
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