Skip to content
Skill

M10 performance

Guides an agent through profiling and optimizing Rust code before changing it

M10 performance is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
21
Last commit
License
MIT
Listing updated

Similar skills

About M10 performance

This skill gives the agent a decision framework for performance work. It starts from the question of whether a bottleneck has been measured and whether optimization is worth the added complexity, then points to profiling and benchmarking tools such as flamegraph, perf, criterion and cargo bench before any code is changed.

The skill ranks common optimization levers by typical payoff, running from algorithm choice and data structure down to allocation reduction, cache layout and SIMD or parallelism. It maps each goal, such as cutting allocations or avoiding copies, to a design choice and a concrete Rust technique like with_capacity, Cow or SmallVec. It also lists common mistakes, such as benchmarking in debug mode or optimizing without a profile.

The skill is written for Rust code and cross-references other Rust-focused skills for ownership, resource handling and concurrency. It is a reference for reasoning rather than a script runner, and it includes no bundled scripts.

When your agent uses it

CRITICAL: Use for performance optimization. Triggers: performance, optimization, benchmark, profiling, flamegraph, criterion, slow, fast, allocation, cache, SIMD, make it faster, 性能优化, 基准测试

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (11 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/m10-performance to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/m10-performance &&
cp -R "$tmp/.claude/skills/m10-performance" ~/.claude/skills/m10-performance &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/m10-performance inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/m10-performance to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/m10-performance &&
cp -R "$tmp/.claude/skills/m10-performance" ~/.agents/skills/m10-performance &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/m10-performance inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/m10-performance to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/m10-performance &&
cp -R "$tmp/.claude/skills/m10-performance" ~/.cursor/skills/m10-performance &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/m10-performance inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/k1-c/linear-tui.git --path .claude/skills/m10-performance

Or copy the folder to ~/.gemini/skills/m10-performance yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/m10-performance:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/m10-performance &&
cp -R "$tmp/.claude/skills/m10-performance" ~/.copilot/skills/m10-performance &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/m10-performance inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/k1-c/linear-tui.git

Then copy linear-tui/.claude/skills/m10-performance into your agent's skills folder as m10-performance. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Measure before optimizing
Directs the agent to profile and benchmark first to find the real hotspot.
Profiling tool guidance
Covers flamegraph, perf, criterion, cargo bench, heaptrack and cachegrind and what each is for.
Optimization priority ranking
Orders levers from algorithm choice down to SIMD and parallelism with typical gains.
Rust allocation techniques
Explains pre-allocation, reuse, references, Cow and SmallVec for hot paths.
Common performance mistakes
Lists pitfalls such as debug-mode benchmarks, hidden clones and premature optimization.
Trade-off checklist
Prompts the agent to weigh complexity against speed and memory against CPU.

Good for

  • Find out why a Rust service is slow before changing anything
  • Set up criterion benchmarks for a hot function
  • Reduce heap allocations in a tight loop
  • Decide whether parallelizing a batch job with rayon is worthwhile
  • Review code for hidden clones and unnecessary copies

M10 performance FAQ

When does M10 performance trigger?

It is meant to be used for performance optimization tasks, and its trigger list includes words such as performance, benchmark, profiling, flamegraph, slow, allocation, cache and make it faster, including Chinese terms.

Does M10 performance run any tools or scripts?

No. The skill bundles no scripts. It guides the agent to use tools such as cargo bench, criterion, perf and flamegraph.

Which languages does M10 performance target?

Its examples and techniques are Rust-specific, using crates and types such as criterion, rayon, SmallVec and Cow.

How do I install M10 performance in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/m10-performance to use it in all your projects, or to .claude/skills/m10-performance in one project.

Does M10 performance run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use M10 performance?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to M10 performance?

The closest alternatives to M10 performance are Go performance review, Optimize, Performance reasoning, M11 ecosystem and Performance audit edho ferdian.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from k1-c/linear-tui

  1. Gives the agent a quick reference of Rust-specific naming, error handling and async rules

    • Open source
    • 21 GitHub stars
    • Developer tools
  2. Guides the agent to write Conventional Commits, splitting mixed changes into several

    • Open source
    • 21 GitHub stars
    • Developer tools
  3. Guides an agent through building Rust command-line tools with clap, config layers

    • Open source
    • 21 GitHub stars
    • Developer tools
  4. Guides the agent through Rust ownership, borrow and lifetime compiler errors

    • Open source
    • 21 GitHub stars
    • Developer tools
  5. Guides an agent in choosing Rust smart pointers like Box, Rc, Arc, Weak and RefCell

    • Open source
    • 21 GitHub stars
    • Developer tools
  6. Guides a Rust agent through E0596/E0499/E0502 borrow errors and interior mutability

    • Open source
    • 21 GitHub stars
    • Developer tools