# Performance optimization

> Performance optimization is an open-source agent skill for developer tools. Guides an agent through diagnosing and speeding up a slow web frontend. 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/ajyadav013/claude-kit/tree/main/skills/performance-optimization
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** performance-optimization
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through making a slow web frontend faster, covering bundle size, route-level code splitting, chunking strategy, render behaviour and Core Web Vitals. It asks the agent to first pick a target (bundle, rendering or vitals), gather baseline numbers with the project's bundler analyzer or a Lighthouse trace, apply framework-specific fixes for React, Vue or Angular, then re-measure and run the build to confirm nothing broke. It also includes size budgets for initial JS, the largest chunk and CSS, plus guidance on list virtualization, font loading and image sizing.

The skill adds a measurement discipline for comparing variants: take many interleaved samples, report 95% confidence intervals and only claim a change when the intervals separate. API throughput and latency are out of scope and are pointed to a separate load-testing skill.

It expects a web project that has a build step and a bundler such as Vite, webpack or Angular CLI, and it refers to tools such as Chrome DevTools and the project's own design system. Its examples use TypeScript, JavaScript and Vue, React and Angular code.

## When your agent uses it

> Make a slow web frontend faster — web vitals, bundle size, code splitting, chunking, render behaviour. Use when a page is slow, the bundle grew, or web vitals regressed. API throughput and latency belong to load-testing.

## What it can access

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

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/performance-optimization)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/performance-optimization)

## Features

- **Route-level code splitting:** Shows how to lazy-load pages in React, Vue and Angular routers to shrink the initial bundle.
- **Bundle chunking strategy:** Provides a target chunk layout and Vite and webpack configuration examples for vendor splitting.
- **Bundle size budgets:** Lists target and alert thresholds for initial JavaScript, largest chunk and total CSS size.
- **Render re-render reduction:** Covers memoization, computed getters and OnPush change detection to avoid unnecessary renders.
- **Core Web Vitals fixes:** Maps LCP, FID, CLS and INP targets to common fixes such as font preloading and image dimensions.
- **Statistical benchmarking method:** Describes interleaved repeated sampling and confidence intervals for trustworthy before and after timings.

## Good for

- Find out why a product listing page takes several seconds to load
- Split a React dashboard so chart libraries load only on demand
- Reduce a Vue app's initial JavaScript after the bundle grew
- Fix layout shift and slow interactions flagged by Lighthouse
- Compare two rendering approaches with a before and after report

## Install

### Claude Code

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

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/performance-optimization` 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/ajyadav013/claude-kit.git --path skills/performance-optimization
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

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

## FAQ

### When should Performance optimization trigger?

When a page is slow, the bundle has grown or web vitals have regressed, according to its description.

### Does Performance optimization cover API latency or throughput?

No. The skill states that API throughput and latency belong to the load-testing skill.

### Which frameworks does Performance optimization cover?

Its examples cover React and Preact, Vue and Angular, with bundler configs for Vite and webpack.

### Does Performance optimization run scripts or bundle analyzers itself?

It has no bundled scripts. It tells the agent to use the project's own bundle analyzer and build command.

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

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

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

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 optimization?

The closest alternatives to Performance optimization are Performance optimization, Frontend perf, Performance audit edho ferdian, Vue performance and Web perf.

## Where this comes from

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

## Alternatives

- [Performance optimization](https://ai-powered.com/skills/performance-optimization): Performance optimization 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 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.
- [Vue performance](https://ai-powered.com/skills/vue-performance): Vue performance 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.
- [React native best practices](https://ai-powered.com/skills/react-native-best-practices): React native best practices is an open-source agent skill for developer tools.
- [Performance audit](https://ai-powered.com/skills/performance-audit): Performance audit is an open-source agent skill for developer tools.
- [Frontend UI engineering](https://ai-powered.com/skills/frontend-ui-engineering): Frontend UI engineering is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/performance-optimization-ajyadav013-2
