Skip to main content

rust-validation

Validate Rust work after substantial Rust code changes by running `just check`, `just clippy`, then `just format`. Use before the final response after a significant Rust implementation or cleanup task; batch edits first instead of running after every small change.

来源信息

仓库
macro-inc/macro
最近来源活动
2026年7月16日 17:40
检测到的 SKILL.md 语言
英语
星标
4,713
Forks
460

安装方式

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

检查来源文件

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

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
rust-validation
description
Validate Rust work after substantial Rust code changes by running `just check`, `just clippy`, then `just format`. Use before the final response after a significant Rust implementation or cleanup task; batch edits first instead of running after every small change.
allowed-tools
Bash Read Edit Glob Grep
disable-model-invocation
true
# Rust Validation Use this skill when you have changed Rust code or Rust build inputs and are nearing the end of a substantial implementation, refactor, or bug-fix task. Do not run these commands after every individual edit. Batch related edits first, then validate once at the end of a major work pass or before handing the task back to the user. ## Working Directory Run validation from the repository root. If the root `justfile` or one of the required recipes is missing, stop and tell the user what prevented validation instead of inventing alternate commands. ## Validation Commands Run these commands one at a time, in this exact order: ```bash just rust-check just clippy just format just hakari ``` If `just rust-check` or `just clippy` fails, do not continue to later commands. Inspect the failure, fix it if it is in scope, then rerun the full sequence starting at `just rust-check`. If `just format` changes files, review the resulting changes before the final response. ## Final Response Briefly report whether validation passed and list the commands that ran. If validation was skipped because no Rust code was changed, or because the user explicitly asked to skip it, say so.
在 GitHub 查看