Imported from Miyamura80/Rust-Template (
.claude/skills/prek/SKILL.md). Install upstream withnpx skills add Miyamura80/Rust-Template --skill prek. Copyright stays with the author.
Prek Skill
This skill provides instructions for using prek in the Rust-Template project. prek replaces pre-commit for managing Git hooks and running checks.
Commands
prek run: Run hooks on changed files.prek run --all-files: Run hooks on all files in the repository.prek install: Install Git hooks to run automatically on commit.prek uninstall: Remove Git hooks.
Configuration
The configuration is located in prek.toml.
Workflow
- Before Committing: Run
prek runto check your changes. - CI: The CI pipeline runs
make cidirectly. Runningprek run --all-fileslocally is a good pre-push sanity check, but the authoritative gate ismake ci.