بنقرة واحدة
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.