Rust
Advanced Rust skills for ownership, error handling, and async programming.
Installation
First, install the Han CLI tool:
npm install -g @thebushidocollective/hanThen install the plugin:
han plugin install buki-rustOverview
Advanced Rust skills for ownership, error handling, and async programming.
Skills
This plugin provides the following skills:
- Async Patterns
- Error Handling
- Ownership System
Usage
Once enabled, Claude will automatically apply these skills when working with relevant code. The plugin provides context and expertise that Claude uses to:
- Write idiomatic code following best practices
- Suggest appropriate patterns and architectures
- Catch common mistakes and anti-patterns
- Provide framework-specific guidance
License
Licensed under MIT - see repository for details.
Skills
rust-async-patterns
Use when Rust async programming with tokio, async/await, and futures. Use when writing asynchronous Rust code.
rust-error-handling
Use when Rust error handling with Result, Option, custom errors, thiserror, and anyhow. Use when handling errors in Rust applications.
rust-ownership-system
Use when Rust's ownership system including ownership rules, borrowing, lifetimes, and memory safety. Use when working with Rust memory management.
Hooks
Stop
Runs when the main Claude Code agent has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with Cargo.toml -- cargo fmt --checknpx -y @thebushidocollective/han hook run --fail-fast --dirs-with Cargo.toml -- cargo clippy -- -D warningsnpx -y @thebushidocollective/han hook run --fail-fast --dirs-with Cargo.toml -- cargo testSubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with Cargo.toml -- cargo fmt --checknpx -y @thebushidocollective/han hook run --fail-fast --dirs-with Cargo.toml -- cargo clippy -- -D warningsnpx -y @thebushidocollective/han hook run --fail-fast --dirs-with Cargo.toml -- cargo test