setup-rust-pre-commit

Installation
SKILL.md

Setup Rust Pre-commit

A pre-commit hook is a convenience, never a gate. CI is the gate: it runs on every push whether or not a local hook ever fired. A hook that tries to be the gate gets slow, and a slow hook gets bypassed with --no-verify within a week — at which point the repo has neither a hook nor the honesty of admitting it. Like /setup-rust-ci, this skill runs only when the user invokes it — a hook executes on someone's behalf at every commit, and the model never decides that on its own.

The one rule, stated first

A hook that takes longer than about two seconds will be bypassed. Everything else in this skill follows from that: format and lint, never test; staged files, never the workspace; report and stop, never fix silently.

Ask which mechanism before writing anything

Three, and the choice is the user's:

Installs
38
GitHub Stars
14
First Seen
Aug 16, 2026