/vibe:ghcopilot-instr-rustfrom vibe
Provides Rust coding conventions and best practices including ownership, borrowing, error handling, and async patterns. Activates when working with .rs files.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Follow idiomatic Rust practices and community standards when writing Rust code.
These instructions are based on The Rust Book, Rust API Guidelines, RFC 430 naming conventions, and the broader Rust community at users.rust-lang.org.
Result<T, E> and provide meaningful error messages.mod) and public interfaces (pub) to encapsulate logic.?, match, or if let.serde for serialization and thiserror or anyhow for custom errors.async/await and tokio or async-std.main.rs vs lib.rs) for testability and reuse.rayon for data parallelism and CPU-bound tasks.&str instead of String for function parameters when you don't need ownership.&T) over cloning unless ownership transfer is necessary.&mut T when you need to modify borrowed data.Rc<T> for single-threaded reference counting and Arc<T> for thread-safe reference counting.RefCell<T> for interior mutability in single-threaded contexts and Mutex<T> or RwLock<T> for multi-threaded contexts.unwrap() or expect() unless absolutely necessary—prefer proper error handling.Result instead.unsafe unless required and fully documented.clone(), use borrowing instead of cloning unless ownership transfer is needed.collect(), keep iterators lazy until you actually need the collection.rustfmt for automatic formatting.///.cargo clippy to catch common mistakes and enforce best practices.Result<T, E> for recoverable errors and panic! only for unrecoverable errors.? operator over unwrap() or expect() for error propagation.thiserror or implement std::error::Error.Option<T> for values that may or may not exist.Eagerly implement common traits where appropriate:
Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Display, DefaultFrom, AsRef, AsMutFromIterator and ExtendSend and Sync are auto-implemented by the compiler when safe; avoid manual implementation unless using unsafe codebool parametersOption<T> appropriately for truly optional valuesDeref and DerefMutDebug#[cfg(test)] modules and #[test] annotations.mod tests { ... }).tests/ directory with descriptive filenames./// comments) following the API Guidelines.#[doc(hidden)] to hide implementation details from public documentation.? operator, not unwrap() or deprecated try! macro.Cargo.toml.description, license, repository, keywords, categories.mod.rs or named files.main.rs or lib.rs minimal - move logic to modules.Before publishing or reviewing Rust code, ensure:
Debug, Clone, PartialEq where appropriateResult<T, E> and provides meaningful error typesunsafe code, proper error handlingcargo fmt, cargo clippy, and cargo testWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job