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.

来源信息

仓库
breferrari/weave
最近来源活动
2026年3月22日 14:58
检测到的 SKILL.md 语言
英语
星标
13
分支
3

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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
在 GitHub 查看