From Rust Code Studio
Add a Rust dependency / add-dep / vet a crate — run the full vetting pipeline (RUSTSEC, license, MSRV, features) before touching Cargo.toml.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rust-studio:add-dep [crate name][crate name]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a crate through the full vetting pipeline before it touches `Cargo.toml`, honoring the
Run a crate through the full vetting pipeline before it touches Cargo.toml, honoring the
collaboration protocol (${CLAUDE_PLUGIN_ROOT}/docs/coordination-protocol.md). You are the
orchestrator: you do not edit manifests or lock files yourself — you delegate writes to
rust-builder.
$ARGUMENTS is the crate name. If empty, ask: "Which crate do you want to add?" If the
caller also specifies a version constraint or feature list, record it for validation in Phase 2.
Before vetting, decide tactical questions yourself and state the rationale:
cargo tree or serena.no_std, MSRV).If the intended use is genuinely ambiguous (no $ARGUMENTS, no context), ask once: "What problem does this crate solve?" Then proceed.
Spawn dependency-manager to run the full vetting checklist. Use the exa MCP
(mcp__exa__web_search_exa, mcp__exa__get_code_context_exa) for external evidence —
crates.io trajectory, RUSTSEC advisories, peer-project adoption — rather than guessing.
Every item below must be reported; "unknown" is valid, silence is not.
cargo audit and cargo deny check; cross-reference the RUSTSEC advisory DB.deny.toml${CLAUDE_PLUGIN_ROOT}/rules/cargo-manifest.md and the project's deny.toml.rust-version in Cargo.toml.cargo tree -f "{p} {f}" and cargo hack for feature-combination analysis.default-features = false, then opt in only to needed features.tokio, serde, openssl, or other heavy transitive
trees unless already in the workspace.${CLAUDE_PLUGIN_ROOT}/docs/templates/dependency-review.md with the findings.
dependency-manager drafts the record; do not write it yourself.Show the vetting report to the user:
default-features = false + explicit list).If any item is a hard block (active critical advisory, license conflict, MSRV regression with no workaround), state BLOCKED with the reason and suggested remediation and stop.
Soft concerns (unmaintained, heavy feature pull) are presented as risks for the user to accept.
AskUserQuestion: present the recommended cargo add invocation (crate, version constraint,
--no-default-features, --features <list>) and the completed review record. Get explicit
approval before any manifest is touched.
Delegate to rust-builder with the approved invocation:
cargo add <crate>[@<version>] [--no-default-features] [--features <f1,f2,...>]
rust-builder runs the command and reports the resulting Cargo.toml diff and any change
to Cargo.lock. Show the diff.
Run /deps-check to verify the workspace still builds cleanly and no new advisory was
introduced by the transitive update. If issues surface, hand them back to rust-builder
(adjust features, pin a version, or revert) — do not proceed to verdict until clean.
Summarize: crate added, version pinned, features selected, MSRV status, license verdict, advisory status, anything deferred. End with COMPLETE / NEEDS WORK / BLOCKED.
Suggest next steps: /dev-task to wire up the new API, /review if the integration
touches a public surface, /release if this bumps MSRV or changes the public dependency
surface of a published crate.
If dependency-manager returns BLOCKED (cannot resolve advisory, deny.toml conflict,
MSRV hard stop): surface the blocker immediately, do not add the crate, and
AskUserQuestion with options — (a) pick an alternative, (b) accept the risk explicitly,
(c) stop and resolve the prerequisite (e.g. update deny.toml, bump MSRV after /dev-task
confirms compatibility). Never discard a completed review record.
npx claudepluginhub vanyastaff/rust-studio --plugin rust-studioProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.