Ask me what skills you need
What are you building?
Tell me what you're working on and I'll find the best agent skills for you.
Use this skill whenever editing `*.rs` files in the `rust/` SDK in order to write idiomatic, efficient, well-structured Rust code
Opinionated Rust rules for the Copilot Rust SDK (rust/). Priority order:
The SDK's public error type is crate::Error (rust/src/error.rs). Add new
variants there rather than introducing parallel error enums per module — every
public failure mode is part of the API contract and should be expressible in one
type. Internal modules can use thiserror enums when a richer local taxonomy
helps; convert at the boundary.
anyhow is reserved for binaries and example code. Library code never returns
anyhow::Result — callers can't pattern-match on anyhow::Error, so it would
prevent them from handling specific failures.
In production code, prefer ?, let-else, and if let. Reach for expect("…")
when an invariant cannot fail and the message would help debug a future
regression. unwrap() belongs in tests only — Clippy enforces this in the SDK
via #![cfg_attr(test, allow(clippy::unwrap_used))] in lib.rs.
npx skills add github/copilot-sdk --skill rust-coding-skillHow clear and easy to understand the SKILL.md instructions are, rated from 1 to 5.
Very clear and well structured, with almost no room for misunderstanding.
How directly an agent can act on the SKILL.md instructions, rated from 1 to 5.
Mostly actionable with clear steps; only a few small gaps remain.