Use when writing Rust code, configuring Cargo workspaces, setting up Clippy lints, designing error handling, or optimizing build profiles. Guides compiler-driven development and idiomatic Rust patterns.
<when_to_use> Use this skill when writing new Rust code, adding crates, configuring Cargo workspaces or lints, designing error types, choosing async patterns, or building container images from Rust binaries. </when_to_use>
edition = "2024". Apply clippy pedantic at workspace level.thiserror for libraries, anyhow for binaries.impl Trait where possible.docs/rust-engineering-patterns.md for our specific patterns, Justfile tasks, and musl static linking instructions.cargo check -> 2. cargo clippy -> 3. cargo test -> 4. cargo buildModel the domain in types first. Let the compiler reject invalid programs. For complex lifecycle or state transitions, refer to the Pattern Library in docs/rust-engineering-patterns.md.
| Layer | Tool | What it proves |
|-------|------|----------------|
| 1 — Compiler | cargo check | Invalid states don't compile |
| 2 — Lints | cargo clippy | Idiomatic patterns, no obvious bugs |
| 3 — Property tests | proptest | Invariants hold for arbitrary inputs |
| 4 — Unit/Integration | cargo test | Business logic and interaction |
.unwrap() in library code. Use Result or .expect("reason") in tests.String where &str suffices.#[allow(clippy::...)] without a // reason: comment.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer