Skip to main content
skill CX Codex

auditing-performance — Claude Code skill: app performance audit

A skill that audits app performance: bundle size, rendering, database queries and Core Web Vitals. Useful when pages load slowly or the UI stutters.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a claude-code
Open on GitHub

What auditing-performance does

The skill kicks in when you ask to optimize performance, cut load times or audit Core Web Vitals. The agent then walks through steps: bundle size, rendering, data fetching, database queries and assets.

For the bundle it runs npx @next/bundle-analyzer on Next.js or npx vite-bundle-visualizer on Vite, hunting for heavy dependencies, duplicates and broken tree-shaking. On rendering it looks for needless re-renders, expensive work that belongs in useMemo, index-based key props and layout thrashing. On data fetching — request waterfalls that Promise.all could collapse, plus missing pagination. On the database — N+1 patterns, missing indexes for WHERE, ORDER BY and JOIN, and SELECT * where specific columns would do. Assets get checked for WebP/AVIF, loading="lazy" and font-display: swap.

What you get back is a prioritized list of fixes marked High / Medium / Low with an effort estimate for each. The skill tells you to profile before optimizing: Lighthouse, WebPageTest or the DevTools Performance tab, and React DevTools Profiler for React apps. It assumes a project with a bundler and a database — on static markup with no build step the bundle and query steps have nothing to bite on.

What it helps with

  • spot heavy dependencies in the bundle and swap them for lighter ones
  • stop unnecessary React component re-renders
  • parallelize sequential API calls
  • find N+1 queries and missing indexes
  • compress images and drop render-blocking CSS and JS

Example prompts for the agent

  • run a performance audit on this app
  • why is the homepage so slow? check the bundle and the queries
  • review our Core Web Vitals and tell me what to fix first

How to install auditing-performance

1Skills CLI (Vercel)

npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a claude-code

2Manually: put the files in place

~/.claude/skills/auditing-performance/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/auditing-performance/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about auditing-performance

How do I install auditing-performance in Claude?

Run npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a claude-code. The skill lands at ~/.claude/skills/auditing-performance/SKILL.md.

What does auditing-performance do?

It audits performance step by step: bundle, rendering, data fetching, database queries and assets. The output is a prioritized optimization list with effort estimates.

Which bundlers does the skill cover?

The bundle step names Next.js and Vite: it runs npx @next/bundle-analyzer for the first and npx vite-bundle-visualizer for the second.

Source text

SKILL.md · CC0-1.0
---
name: auditing-performance
description: Audit and optimize application performance, including bundle size, rendering, database queries, and Core Web Vitals.
---

# Performance Audit

Use this skill when the user asks to optimize performance, reduce load times, fix slow pages, or audit Core Web Vitals.

## Steps

1. **Analyze bundle size**
   - Run `npx @next/bundle-analyzer` (Next.js) or `npx vite-bundle-visualizer` (Vite) to identify large dependencies.
   - Look for large libraries that could be replaced with lighter alternatives (e.g. `moment` → `date-fns`, `lodash` → individual imports or native methods).
   - Check for duplicated dependencies in the bundle.
   - Verify tree-shaking is working (no barrel file re-exports pulling in unused code).

2. **Audit rendering performance**
   - Identify components that re-render unnecessarily — look for inline object/array/function creation in JSX props.
   - Check for expensive computations in render paths that should use `useMemo`.
   - Verify lists use proper `key` props (not array index for dynamic lists).
   - Look for layout thrashing (reading DOM measurements then writing styles in a loop).

3. **Check data fetching**
   - Identify request waterfalls — sequential API calls that could be parallelized with `Promise.all`.
   - Look for data fetched on the client that could be fetched on the server.
   - Check for missing pagination on large data sets.
   - Verify API responses aren't over-fetching (returning fields the client doesn't need).

4. **Database query optimization**
   - Look for N+1 query patterns (a query per item in a list).
   - Check for missing indexes on columns used in WHERE, ORDER BY, and JOIN clauses.
   - Identify queries that could use `SELECT` with specific columns instead of `SELECT *`.
   - Look for missing connection pooling.

5. **Check assets**
   - Verify images use modern formats (WebP/AVIF) and are properly sized.
   - Check for missing `loading="lazy"` on below-the-fold images.
   - Verify fonts use `font-display: swap` and are preloaded.
   - Check for render-blocking CSS or JavaScript.

6. **Generate recommendations** — produce a prioritized list of optimizations ranked by impact (High / Medium / Low) with estimated effort for each.

## Notes

- Focus on measurable improvements — use Lighthouse, WebPageTest, or the Performance tab in DevTools.
- Don't prematurely optimize — profile first, optimize bottlenecks.
- For React apps, use React DevTools Profiler to identify slow components.

© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills

Similar skills

Everything for Frontend and UI →

From the same set60

writing-tests Inspects existing code, detects your test runner, and drafts unit and integration tests with mocks and edge cases. CX Codex +1 499installs api-smoke-testing Finds API endpoints across your codebase, spins up the local dev server, and tests every route with curl. Spots unmounted 404 routes and 500 server crashes before release. CX Codex +1 495installs saving-workspace-context The skill writes research, decisions and templates into your workspace files, so the next session starts with context instead of a blank slate. CX Codex +1 495installs codebase-onboarding Fires five explore subagents in parallel to cover architecture, data models, APIs, auth and deployment, then merges their findings into one onboarding doc. CX Codex +1 476installs suggesting-cursor-hooks Watches for repetitive check requests and suggests automating them with Cursor hooks. Useful when you find yourself repeatedly asking the agent to run linters or tests. CX Codex +1 475installs building-skills-from-patterns Turns repeated multi-step workflows into reusable SKILL.md files. It triggers when an agent re-derives the same routine or needs the same user correction three times. CX Codex +1 466installs creating-pr A skill that walks the agent through opening a pull request: branch prep, title, structured description, self-review and reviewer requests. CX Codex +1 465installs database-design Designs relational database schemas, foreign keys, indexes, and constraints from raw requirements, with output tailored for SQL, Prisma, or Drizzle. CX Codex +1 462installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor