Skip to main content

rust-pre-commit

Run the Weave quality gate (cargo fmt, clippy, tests) before committing. Use when you want to verify the working tree is clean and CI-ready.

Source facts

Repository
breferrari/weave
Last source activity
March 22, 2026 at 14:58
Detected SKILL.md language
English
Stars
13
Forks
3

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
rust-pre-commit
description
Run the Weave quality gate (cargo fmt, clippy, tests) before committing. Use when you want to verify the working tree is clean and CI-ready.
allowed-tools
Bash, Read, Grep, Glob
## Weave pre-commit quality gate Run the three checks in order. Stop and report on the first failure — do not proceed to the next step if one fails. 1. `cargo fmt --all` — formats all code in place; then run `git diff --name-only` to list any files that were changed and need to be staged before committing 2. `cargo clippy -- -D warnings` — lint, deny all warnings 3. `cargo test` — run all unit + integration + E2E tests Report clearly: - Which checks passed ✓ - Which failed ✗ and what output was produced - What the developer needs to fix before committing
View on GitHub