Skip to content
Skill

Performance optimization

Guides an agent through diagnosing and speeding up a slow web frontend

Performance optimization 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
13
Last commit
License
MIT
Listing updated

Similar skills

About Performance optimization

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.

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 (18 KB) on GitHub on 4 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 claude-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

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/ajyadav013/claude-kit.git --path skills/performance-optimization

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Performance optimization 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.

More from ajyadav013/claude-kit

  1. Guides an agent through pytest, async fixtures and security-regression tests for FastAPI

    • Open source
    • 13 GitHub stars
    • Developer tools
  2. Lets your agent inspect and debug live browser pages via Chrome DevTools MCP

    • Open source
    • 13 GitHub stars
    • Browser automation
  3. Runs concurrent load and stress tests against API endpoints to find latency and throughput

    • Open source
    • 13 GitHub stars
    • Developer tools
  4. Lets an agent click through a feature in a real browser and check how it behaves

    • Open source
    • 13 GitHub stars
    • Developer tools
  5. Runs quick health checks on backend, frontend and login to catch obvious breakage

    • Open source
    • 13 GitHub stars
    • Developer tools
  6. Guides an agent through red-green-refactor, bug reproduction tests and test pyramid

    • Open source
    • 13 GitHub stars
    • Developer tools