一键导入
rust
Rust idioms for this repo: async/tokio, anyhow error handling, serde, clippy discipline, and cargo conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Rust idioms for this repo: async/tokio, anyhow error handling, serde, clippy discipline, and cargo conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Operate Harkonnen through the repo-local MCP server and CLI. TRIGGER: user asks about run history, PackChat threads or messages, checkpoints, board snapshots, reasoning trails, benchmark suites or reports, wants to diagnose a failure, wants a run report, or wants to start, queue, or watch a run. Preferred over raw shell commands for Harkonnen interactions.
Databricks on Azure: cluster lifecycle, Delta Lake operations, MLflow tracking, and Unity Catalog patterns for this repo.
Azure cloud resources: ARM/Bicep templates, Azure CLI patterns, RBAC, service principals, and subscription safety for this repo.
Docker and Compose: image builds, container lifecycle, networking, volume management, and safety conventions for this repo.
SQL database patterns: schema migrations, query safety, index design, and transaction hygiene for this repo.
WinCC OA SCADA: CTRL scripts, panels, datapoint operations, manager lifecycle, and live-system safety for this repo.
| name | rust |
| description | Rust idioms for this repo: async/tokio, anyhow error handling, serde, clippy discipline, and cargo conventions. |
| user-invocable | false |
| allowed-tools | ["Bash(cargo *)"] |
This repo is written in Rust. Apply these conventions.
anyhow::Result for fallible functions that cross module boundaries.anyhow::bail!("message") to return early with a string error..with_context(|| format!("while doing {}", detail)) to annotate error sites.unwrap() or expect() in non-test code — every panic site is a bug.? propagates errors; use it consistently rather than match on Err.tokio; use #[tokio::main] for the entry point.tokio::fs over std::fs in async contexts..await inside iterators — collect futures into Vec and join_all.Arc<Mutex<T>> for shared state; prefer message passing (mpsc) when possible.Deserialize, Serialize for all config and model types.#[serde(default)] on optional collection fields so missing keys deserialize to empty vec/map.#[serde(rename_all = "snake_case")] for JSON consistency.#[serde(tag = "type")] for readable JSON output.edition = "2021" in Cargo.toml.cargo clippy --no-default-features -- -D warnings in CI.[workspace.dependencies] to avoid version skew.#[cfg(test)].tests/ — they compile as separate crates.cargo test -q for a compact summary; --nocapture when debugging output.