Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By xobotyiv1.0.1MITIn 1 marketplace
Steers Rust code toward idiomatic ownership instead of cloning past the borrow checker, and keeps rayon threads apart from Tokio async. Needs rust-analyzer on PATH for symbol navigation.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
cargo, clippy, rust-analyzer, tokio, rayon, async-rust, rust-testing, conventions ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
Idiomatic Rust 2024 that restructures ownership when the borrow checker objects and keeps CPU parallelism apart from
async, navigated through rust-analyzer instead of text search.
Rust's ownership model, borrow checker, and trait system make it unforgiving — code that compiles is not necessarily
idiomatic, and idiomatic shapes are also the faster ones. AI coding agents reliably reproduce a known cluster of
anti-patterns: cloning to silence the borrow checker, scattering .unwrap() through library code, reaching for
Rc<RefCell<T>> and lifetime annotations instead of restructuring ownership, and modeling domains with raw strings. Two
further traps are specific to newcomers: conflating CPU-bound parallelism (threads/rayon) with I/O-bound async (Tokio),
and the compiler-invisible async footguns (holding a lock across .await, select! cancellation safety).
Beyond conventions, Claude Code's default code navigation — Grep and Glob — misses Rust's semantic structure. Text
search can't resolve use paths, distinguish shadowed bindings, find trait implementations, expand macros, or trace
call hierarchies.
This plugin provides language-discipline skills and a rust-analyzer language-server configuration. The rust skill
covers core conventions (ownership/borrowing, error handling, traits, iterators, idioms, anti-patterns, project
structure, the cargo/clippy/rustfmt toolchain, rustdoc, and Rust 2024 edition specifics) and folds in concurrency — both
CPU-bound parallelism (threads/rayon) and I/O-bound async (Tokio) — so the high-stakes footguns load before any async
code is written. The rust-testing skill covers the testing ecosystem. Both enforce LSP-first navigation.
Install rust-analyzer and ensure it is available in PATH:
rustup component add rust-analyzer
Then install the plugin:
/plugin install rust --marketplace xobotyi/cc-foundry
Core Rust language conventions and idioms across all Rust code. Covers ownership/borrowing/lifetimes, error handling
(Result/?, thiserror for libraries vs anyhow for applications, panic/unwrap policy), traits and generics
(impl Trait vs dyn), iterators over manual loops, pattern matching (match/if let/let else), idioms (newtype,
builder, From/Into/TryFrom, C-CONV cost semantics), the Rust API Guidelines checklist, AI-specific anti-patterns
mapped to Clippy lints, concurrency (threads/rayon for CPU-bound parallelism; Future/Tokio for I/O-bound async, with
the cancellation and lock-across-.await footguns), project structure (mod.rs-free layout, cargo workspaces, the
[lints] table), the cargo/clippy/rustfmt/nextest toolchain gates, rustdoc conventions, and Rust 2024 edition
specifics. Enforces LSP-first navigation.
Use when: writing, reviewing, refactoring, debugging, or exploring any Rust code.
Rust testing conventions and frameworks. Covers built-in test layout (#[cfg(test)] mod tests for unit tests, tests/
for integration tests, doctests), the cargo-nextest runner (and pairing it with cargo test --doc since nextest skips
doctests), property testing (proptest, quickcheck), snapshot testing (insta), benchmarking (criterion), mocking
(mockall, used judiciously), parameterized/fixture tests (rstest), and async test patterns (#[tokio::test]).
Use when: writing, running, configuring, or debugging Rust tests.
This plugin bundles a rust-analyzer LSP server configuration. Once installed, Claude Code automatically starts
rust-analyzer for .rs files, enabling precise code intelligence:
| LSP Operation | What It Does |
|---|---|
goToDefinition | Jump to where a symbol is defined |
findReferences | Find all usages of a symbol |
hover | Get inferred type signature and docs |
documentSymbol | List all symbols in a file |
workspaceSymbol | Search for symbols across the workspace |
goToImplementation | Find types implementing a trait |
incomingCalls | Find what calls a function |
outgoingCalls | Find what a function calls |
7-day copy clicks
Plugins from other owners that cover similar ground
npx claudepluginhub xobotyi/cc-foundry --plugin rustBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.