# Performance

> Performance is an open-source agent skill for developer tools. Guides an agent to measure before and after any performance change and log the result. 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/JasGujral/mokata-oss/tree/main/src/mokata/skills/performance
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** performance
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill turns performance work into a measured experiment. When an agent touches a hot path, a database query, a cache, or a batch loop, or is asked to make something faster, it is directed to record a baseline measurement of the target metric, make the change, and take a comparable after measurement before keeping it.

The guidance covers lab versus field measurement, and it summarizes Google's Core Web Vitals (LCP, INP and CLS) for user-facing web work, pointing to the web.dev definitions for the current thresholds. It also asks the agent to find where time is actually spent before choosing what to change, and to flag any figure it could not reproduce as unverified.

The skill is written for the mokata pipeline, which records before and after results through a human-approved write step and an audit ledger. It contains no scripts, and it does not restrict which tools the agent may use. Measurement itself depends on the stack in use.

## When your agent uses it

> mokata · Performance optimization — measure-first, before/after to the ledger, no guessing.

## What it can access

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

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/performance)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/performance)

## Features

- **Baseline before every change:** Requires a before measurement of the target metric under stated conditions, followed by an after measurement taken the same way.
- **Hot path identification:** Directs the agent to locate where time is spent before choosing which code to optimize.
- **Core Web Vitals reference:** Explains LCP, INP and CLS for user-facing web performance and links to the web.dev definitions.
- **Lab versus field distinction:** Keeps controlled synthetic runs separate from real-user measurements when comparing results.
- **Recorded before and after:** Logs the metric, delta and conditions of each optimization to memory and the audit ledger.
- **Verification checklist:** Provides a checklist confirming a baseline, comparable after measurement and recorded decision exist.

## Good for

- Speed up a slow database query and prove the improvement with timings
- Reduce latency on a hot request handler without guessing
- Check whether a page change improves Largest Contentful Paint
- Review a performance pull request for a recorded baseline
- Decide whether a cache change is worth its added complexity

## Install

### Claude Code

This skill ships in the `mokata` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

Or copy only this skill to `~/.claude/skills/performance`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/performance &&
cp -R "$tmp/src/mokata/skills/performance" ~/.claude/skills/performance &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/performance &&
cp -R "$tmp/src/mokata/skills/performance" ~/.agents/skills/performance &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/performance &&
cp -R "$tmp/src/mokata/skills/performance" ~/.cursor/skills/performance &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/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/JasGujral/mokata-oss.git --path src/mokata/skills/performance
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/performance &&
cp -R "$tmp/src/mokata/skills/performance" ~/.copilot/skills/performance &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

Then copy `mokata-oss/src/mokata/skills/performance` into your agent's skills folder as `performance`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Performance trigger?

It engages when an approach touches a hot path, database query, cache or batch loop, when a spec names performance as a domain, when an acceptance criterion sets a latency, throughput or size budget, or when a change is made for speed. It should not be used for correctness-only changes or for changes whose cost has not been measured.

### Does Performance change my code or run any scripts?

The skill ships no scripts. It is instruction text that guides the agent through measuring and comparing performance before and after a change.

### Is the performance budget enforced as a hard gate?

No. The perf budget is advisory in this release. Durable writes that record measurements are human-gated within the mokata pipeline.

### Which tools does Performance require?

The skill does not set allowed tools. Measurement tooling depends on the stack and is left to the user.

### How do I install Performance in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/performance to use it in all your projects, or to .claude/skills/performance in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

### Does 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 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 Performance?

The closest alternatives to Performance are Optimize, Frontend perf, Performance reasoning, Benchmark checklist and Benchmark.

## Where this comes from

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

## Alternatives

- [Optimize](https://ai-powered.com/skills/optimize-jasgujral): Optimize is an open-source agent skill for developer tools.
- [Frontend perf](https://ai-powered.com/skills/frontend-perf): Frontend perf 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.
- [Benchmark checklist](https://ai-powered.com/skills/benchmark-checklist): Benchmark checklist is an open-source agent skill for developer tools.
- [Benchmark](https://ai-powered.com/skills/benchmark): Benchmark is an open-source agent skill for developer tools.
- [Benchmark optimization loop](https://ai-powered.com/skills/benchmark-optimization-loop): Benchmark optimization loop is an open-source agent skill for developer tools.
- [Web perf](https://ai-powered.com/skills/web-perf): Web perf is an open-source agent skill for developer tools.
- [Principle explain the number](https://ai-powered.com/skills/principle-explain-the-number): Principle explain the number is an open-source agent skill for developer tools.

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