원클릭으로
rust-polish
Full ordered Rust code quality pipeline — clippy all → clippy pedantic+nursery → simplify agents → test + audit → verify
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Full ordered Rust code quality pipeline — clippy all → clippy pedantic+nursery → simplify agents → test + audit → verify
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | rust-polish |
| description | Full ordered Rust code quality pipeline — clippy all → clippy pedantic+nursery → simplify agents → test + audit → verify |
Run the full Rust polish pipeline in order. Each phase must complete before the next starts. Do not skip phases even if a phase looks clean.
cargo clippy -- -W clippy::allRun cargo clippy -- -W clippy::all 2>&1 and fix every warning. Prefer targeted edits; do not rewrite whole functions.
After fixing, re-run until the output is warning-free.
cargo clippy -- -W clippy::pedantic -W clippy::nurseryRun cargo clippy -- -W clippy::pedantic -W clippy::nursery 2>&1.
For each warning, decide:
#![allow(clippy::lint_name)] at the crate root if it's intentional style noise. Every suppression must have an inline comment explaining why (e.g., concurrency model, intentional truncation, poise API requirement).Common suppressions for this project (already in main.rs — do not re-add):
significant_drop_tightening — DashMap Ref shard locks; acceptable contention in Discord botcast_precision_loss, cast_possible_truncation, cast_possible_wrap, cast_sign_loss — bounded game-math castsmissing_errors_doc, missing_panics_doc, must_use_candidate — not a public APIwildcard_imports, items_after_statements, too_many_lines, manual_let_else — project stylestring_add, format_push_string — embed building idiomoption_if_let_else, similar_names, redundant_else — readability preferenceRe-run until the output contains only expected/suppressed lints.
Invoke the simplify skill. This launches three parallel agents:
Fix all real findings. Skip false positives with a one-line note.
cargo test -- --nocapture — all tests must pass; any failure is a hard stopcargo audit — scan for CVEs; if not installed, note cargo install cargo-audit and skipRun cargo build 2>&1 (or cargo run if the user wants a live smoke test).
The build must be warning-free and error-free. If warnings remain, return to the relevant phase and fix them before marking done.
Report at the end: one line per phase — what was found and fixed, or "clean".
#![expect] fires unfulfilled_lint_expectations under clippy::all for pedantic lints.
Pedantic/nursery lints are not active at the clippy::all level. If a suppression uses #![expect(clippy::some_pedantic_lint)], Phase 1 will warn that the expectation was never fulfilled. Fix: use #![allow(clippy::...)] // reason for lints that only fire under --pedantic. Reserve #![expect] for lints that fire at clippy::all or lower.
Do not re-add suppression attributes already present in main.rs.
The common suppressions list in Phase 2 documents what's already there. Adding a duplicate #![allow(...)] compiles fine but creates confusing redundancy. Check main.rs before adding any new crate-level allow.
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
Quick sanity check — clippy, test, audit. Lightweight alternative to /preflight.