一键导入
sanity
Quick sanity check — clippy, test, audit. Lightweight alternative to /preflight.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Quick sanity check — clippy, test, audit. Lightweight alternative to /preflight.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | sanity |
| description | Quick sanity check — clippy, test, audit. Lightweight alternative to /preflight. |
Run in order. Stop and report on the first failure — don't continue past errors.
cargo clippy -- -D warnings — report each lint with file:line and fix suggestioncargo test -- --nocapture — show all output; any failure is a hard stopcargo audit — scan for CVEs; if not installed, note cargo install cargo-audit and skipIf the user passes an argument (e.g. /cargo build), run that specific subcommand instead of the suite.
Cross-compile note: if the user asks to build for musl, use cargo build --target x86_64-unknown-linux-musl --features vendored.
-D warnings turns all warnings into errors — do not suggest suppressing them here.
Sanity is a quick pass, not a polish pass. If clippy fails, report the lint and a fix suggestion. Don't add #![allow(...)] suppressions; that belongs in /rust-polish Phase 2 where suppressions are deliberate and documented.
Ultimate pre-push gate — rust-polish, then parallel specialist subagents across async safety, API surface, refactoring signals, and test strategy, then rust-audit
Audit Rust code against the Microsoft Pragmatic Rust Guidelines checklist and report violations with file:line references
Full ordered Rust code quality pipeline — clippy all → clippy pedantic+nursery → simplify agents → test + audit → verify