AGENT SKILL

run-checks

Runs fmt, clippy, and tests after modifying the Rust implementation, or before committing. Use when asked to "run checks", "cargo check", "run checks", or "make CI pass".

License 许可
MIT
所属仓库
rikeda71/cxbridge
最近更新
2026-10-15
Stars
★ 1
Forks
1

01 前言 Front Matter

name
run-checks
description
Runs fmt, clippy, and tests after modifying the Rust implementation, or before committing. Use when asked to "run checks", "cargo check", "run checks", or "make CI pass".
allowed-tools
[ "Bash(cargo *)" ]

03 SKILL.md 正文

Steps

Execute the following in order. If a step fails, fix the issue before proceeding to the next step.

1. Format check

cargo fmt --check

If this fails, run cargo fmt and then re-verify.

2. Clippy (warnings as errors)

cargo clippy -- -D warnings

If this fails, fix each clippy finding. When suppressing with #[allow(...)], always include a reason comment.

3. Tests

cargo test

Fix any failing tests. If snapshots (insta) were updated, run cargo insta review to inspect the diff before accepting.

Completion condition

Report completion once all 3 steps pass with exit code 0.

04 同仓库更多 Skills