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.
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/auditing-performance/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/auditing-performance/
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a codex2Manually: put the files in place
.agents/skills/auditing-performance/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a cursor2Manually: put the files in place
.cursor/skills/auditing-performance/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills auditing-performance2Manually: put the files in place
.github/skills/auditing-performance/SKILL.md1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a gemini-cli2Platform CLI
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/auditing-performanceManually: put the files in place
.devin/skills/auditing-performance/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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