auditing-performance — скилл для Claude Code: аудит производительности
Скилл проводит аудит производительности приложения: размер бандла, рендеринг, запросы к базе и Core Web Vitals. Пригодится, когда страница грузится долго или интерфейс тормозит.
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a claude-codeЧто делает auditing-performance
Скилл включается, когда вы просите оптимизировать производительность, ускорить загрузку или разобрать Core Web Vitals. Дальше агент идёт по шагам: смотрит размер бандла, проверяет рендеринг, разбирает запросы к данным и к базе, оценивает ассеты.
По бандлу он запускает npx @next/bundle-analyzer для Next.js или npx vite-bundle-visualizer для Vite, ищет тяжёлые зависимости и дубли, проверяет tree-shaking. В рендеринге ищет лишние перерисовки, дорогие вычисления без useMemo, неправильные key у списков и layout thrashing. В запросах — водопады последовательных вызовов, которые можно собрать через Promise.all, и отсутствие пагинации. В базе — паттерн N+1, индексы под WHERE, ORDER BY и JOIN, SELECT * вместо конкретных колонок. По ассетам проверяет форматы WebP/AVIF, loading="lazy" и font-display: swap.
На выходе — список правок с приоритетом High / Medium / Low и оценкой трудозатрат по каждой. Профилировать советует до оптимизации: Lighthouse, WebPageTest или вкладка Performance в DevTools, для React — React DevTools Profiler. Скилл рассчитан на проекты с бандлером и базой данных; в статичной вёрстке без сборки шаги про бандл и запросы просто нечего будет применить.
Какие задачи решает
- найти тяжёлые зависимости в бандле и заменить их на лёгкие
- убрать лишние перерисовки компонентов React
- распараллелить последовательные запросы к API
- найти N+1 запросы и недостающие индексы
- сжать картинки и убрать блокирующие CSS и JS
Примеры запросов агенту
- проведи аудит производительности этого приложения
- почему главная грузится так долго? разбери бандл и запросы
- сделай ревью Core Web Vitals и предложи, что чинить первым
Как установить auditing-performance
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a claude-code2Вручную: положить файлы
~/.claude/skills/auditing-performance/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/auditing-performance/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a codex2Вручную: положить файлы
.agents/skills/auditing-performance/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a cursor2Вручную: положить файлы
.cursor/skills/auditing-performance/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills auditing-performance2Вручную: положить файлы
.github/skills/auditing-performance/SKILL.md1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a gemini-cli2Командой платформы
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/auditing-performanceВручную: положить файлы
.devin/skills/auditing-performance/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о auditing-performance
Как установить auditing-performance в Claude?
Выполните npx skills add spencerpauly/awesome-cursor-skills --skill auditing-performance -a claude-code. Скилл появится в ~/.claude/skills/auditing-performance/SKILL.md.
Что делает auditing-performance?
Прогоняет аудит производительности по шагам: бандл, рендеринг, запросы к данным, запросы к базе и ассеты. В конце выдаёт список оптимизаций с приоритетом и оценкой трудозатрат.
С какими сборщиками работает скилл?
В шаге про бандл названы Next.js и Vite: для первого запускается npx @next/bundle-analyzer, для второго — npx vite-bundle-visualizer.
Исходный текст
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