rust-deps-visualizer — Claude Code skill: Rust dependency tree
Draws your Rust project's dependency tree as ASCII art. Handy when you need to see what a Cargo.toml actually pulls in.
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a claude-codeWhat rust-deps-visualizer does
The skill reads Cargo.toml, runs cargo tree, and formats the result with ├── and └── characters. Tree depth defaults to 3 and can be changed with --depth N. Add --features to list the enabled feature flags next to each crate.
Three steps sit behind it: parse the manifest with cargo metadata, pull the full tree with cargo tree, then format. There is a category view that groups crates into runtime, serialization and development, plus an optional size bar chart. The skill uses Bash, Read and Glob, so run it from the directory that holds Cargo.toml.
No cargo binary, or the wrong working directory, and you get nothing back. For crate selection and workspace questions the author points to a separate skill, m11-ecosystem.
What it helps with
- see the full dependency tree of a Rust project
- cap output depth when a project has many crates
- check which feature flags a dependency enables
- group dependencies into runtime, serialization and development
- estimate crate sizes in the tree
Example prompts for the agent
- show me the dependency tree for this project
- /rust-deps-visualizer --depth 2
- /rust-deps-visualizer --features
How to install rust-deps-visualizer
1Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a claude-code2Manually: put the files in place
~/.claude/skills/rust-deps-visualizer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/rust-deps-visualizer/
1Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a codex2Manually: put the files in place
.agents/skills/rust-deps-visualizer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a cursor2Manually: put the files in place
.cursor/skills/rust-deps-visualizer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install actionbook/rust-skills rust-deps-visualizer2Manually: put the files in place
.github/skills/rust-deps-visualizer/SKILL.md1Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a gemini-cli2Platform CLI
gemini skills install https://github.com/actionbook/rust-skills --path skills/rust-deps-visualizerManually: put the files in place
.devin/skills/rust-deps-visualizer/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about rust-deps-visualizer
How do I install rust-deps-visualizer in Claude?
Run npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a claude-code. The skill lands in ~/.claude/skills/rust-deps-visualizer/SKILL.md.
What does rust-deps-visualizer do?
It builds an ASCII dependency tree for a Rust project from cargo tree and cargo metadata. It can also show feature flags and group crates by category.
Which flags does the skill take?
--depth N limits tree depth and defaults to 3. --features adds the enabled feature flags to each dependency.