一键导入
rust
Apply when writing or editing Rust code in this crate — idioms, error handling, logging, and lint rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply when writing or editing Rust code in this crate — idioms, error handling, logging, and lint rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Apply for build/test/lint, dependency or feature changes, and editing Cargo.toml or .cargo config in this repo.
Apply when starting work, branching, committing, opening/reading PRs, reading issues, or checking CI — the git + GitHub (gh) workflow.
Apply when creating or tracking a GitHub issue, or planning multi-step work — the issue template and the task convergence loop.
Apply when writing, editing, reviewing, or refactoring ANY code in this repo — coding-behavior rules to avoid overcomplication and make surgical, verifiable changes.
Apply when changing the REST API surface — actix handlers, utoipa annotations, or request/response types under server/.
Apply when editing .proto files or the generated protobuf types (src/pbs/*) in this repo.
| name | rust |
| description | Apply when writing or editing Rust code in this crate — idioms, error handling, logging, and lint rules. |
anyhow::Result for application/CLI paths (add .context(...)); thiserror enums for library error types (src/errors.rs).unwrap/expect/panic!/todo! on reachable paths — return Result. Tests may unwrap.tracing spans/events, not println!. Verbosity via clap-verbosity-flag.rayon iterators for data-parallel work.nutype where a wrapper adds real invariants/safety; don't wrap for its own sake.cargo clippy --workspace --all-features (no -D warnings here, but fix warnings anyway). Run cargo fmt before finishing.