# M10 performance

> M10 performance is an open-source agent skill for developer tools. Guides an agent through profiling and optimizing Rust code before changing it. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/k1-c/linear-tui/tree/main/.claude/skills/m10-performance
- **Repository:** https://github.com/k1-c/linear-tui
- **GitHub stars:** 21
- **License:** MIT
- **Skill name:** m10-performance
- **Collection:** https://github.com/k1-c/linear-tui
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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, 性能优化, 基准测试

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/k1-c/linear-tui/tree/HEAD/.claude/skills/m10-performance)
- [License: MIT](https://github.com/k1-c/linear-tui/tree/HEAD/.claude/skills/m10-performance)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Go performance review](https://ai-powered.com/skills/go-performance-review): Go performance review is an open-source agent skill for developer tools.
- [Optimize](https://ai-powered.com/skills/optimize-jasgujral): Optimize is an open-source agent skill for developer tools.
- [Performance reasoning](https://ai-powered.com/skills/performance-reasoning): Performance reasoning is an open-source agent skill for developer tools.
- [M11 ecosystem](https://ai-powered.com/skills/m11-ecosystem): M11 ecosystem is an open-source agent skill for developer tools.
- [Performance audit edho ferdian](https://ai-powered.com/skills/performance-audit-edho-ferdian): Performance audit edho ferdian is an open-source agent skill for developer tools.
- [Benchmark checklist](https://ai-powered.com/skills/benchmark-checklist): Benchmark checklist is an open-source agent skill for developer tools.
- [M01 ownership](https://ai-powered.com/skills/m01-ownership): M01 ownership is an open-source agent skill for developer tools.
- [M15 anti pattern](https://ai-powered.com/skills/m15-anti-pattern): M15 anti pattern is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/m10-performance
