m10-performance — Claude Code skill: what it does, how to install
System guidance for agents to optimize Rust code systematically, focusing on profiling and memory allocation control.
npx skills add actionbook/rust-skills --skill m10-performance -a claude-codeWhat m10-performance does
The skill provides an agent with an evaluation ladder for Rust performance. It prevents the model from rewriting code blindly and insists on profiling through perf, flamegraph, or criterion first. The assistant learns to attack high-level algorithmic bottlenecks before diving into lower-level micro-optimizations.
Inside, it outlines practical Rust techniques: pre-allocating capacity, moving small collections onto the stack with SmallVec, and using references or Cow instead of redundant .clone() operations. It flags anti-patterns directly, including the use of LinkedList or running benchmarks on unoptimized debug builds.
Because the configuration sets user-invocable: false, the assistant loads these instructions autonomously when discussing performance or allocations. It offers zero value for non-Rust repositories because every recommendation depends on the Rust standard library and tooling.
What it helps with
- Profile Rust execution hotspots before refactoring algorithms
- Eliminate excessive heap allocations using capacity pre-allocation
- Remove accidental clone operations along critical hot paths
- Configure statistical benchmarks in release mode using criterion
Example prompts for the agent
- This hot loop in Rust is running slowly, help me profile and optimize it
- How can I reduce memory allocations in this parser using SmallVec or Cow?
- Set up a benchmark suite with cargo bench to measure throughput
How to install m10-performance
1Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill m10-performance -a claude-code2Manually: put the files in place
~/.claude/skills/m10-performance/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/m10-performance/
1Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill m10-performance -a codex2Manually: put the files in place
.agents/skills/m10-performance/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill m10-performance -a cursor2Manually: put the files in place
.cursor/skills/m10-performance/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install actionbook/rust-skills m10-performance2Manually: put the files in place
.github/skills/m10-performance/SKILL.md1Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill m10-performance -a gemini-cli2Platform CLI
gemini skills install https://github.com/actionbook/rust-skills --path skills/m10-performanceManually: put the files in place
.devin/skills/m10-performance/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add actionbook/rust-skills --skill m10-performance -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 m10-performance
How to install m10-performance in Claude Code?
Run npx skills add actionbook/rust-skills --skill m10-performance -a claude-code in your terminal.
What does m10-performance do?
It guides your coding agent on measuring bottlenecks, avoiding unnecessary heap allocations, and selecting optimal Rust data structures.
Can I invoke m10-performance directly?
No, the skill sets user-invocable: false. The model triggers this context automatically when you ask about profiling, slow code, or memory bottlenecks.