Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add actionbook/rust-skills --skill m10-performance -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/m10-performance/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/m10-performance/

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.

Similar skills

All skills for Programming languages →

From the same set33

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor