
Performance
Guides an agent to measure before and after any performance change and log the result
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
- 19
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Performance
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.
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 (14 KB) on GitHub on 1 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
This skill ships in the mokata plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostackOr copy only this skill to ~/.claude/skills/performance:
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.
Copy the skill folder to ~/.agents/skills/performance to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/performance to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/performanceOr copy the folder to ~/.gemini/skills/performance yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/performance:
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.
Get the folder:
git clone --depth 1 https://github.com/JasGujral/mokata-oss.gitThen 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.
What it does
- 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
Performance 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.
More from JasGujral/mokata-oss

Makes the agent design API contracts first and check callers before changing them
- Open source
- 19 GitHub stars
- Developer tools

Gives an agent NestJS rules for guards, DTO validation, modules and tests
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent through Socratic exploration of an approach before any spec or code
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent to capture live browser console, network and page state for tests
- Open source
- 19 GitHub stars
- Developer tools

Guides the agent to reproduce a reported bug with a failing test before fixing it
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent on CI/CD pipelines, release builds and pinned supply-chain posture
- Open source
- 19 GitHub stars
- Developer tools



