performance-engineering — скилл для Claude Code: как установить
Скилл performance-engineering для Claude Code помогает оптимизировать производительность веб-приложений. Включается при падении показателей Core Web Vitals, росте бандла и замедлении работы страниц или API.
MIT 144 установок ★ 114 обновлён 2026-11-10
npx skills add travisjneuman/.claude --skill performance-engineering -a claude-codeЧто делает performance-engineering
Скилл направляет агента при анализе Core Web Vitals (LCP, INP, CLS), оптимизации бандла, сжатии изображений и настройке серверного и клиентского кэширования. Инструкция задаёт принцип измерений перед любыми изменениями кода: сначала профилирование через RUM, Lighthouse или DevTools, затем правки.
В правила заложены конкретные бюджеты производительности: размер JavaScript до 200 КБ, LCP до 2.5 с, INP до 200 мс и CLS до 0.1. Нагрузочное тестирование на базе k6 и Artillery запускается только по прямому запросу пользователя, чтобы не перегружать рутинные задачи.
Подробные шаблоны вынесены в отдельные файлы в папке references: антипаттерны, чеклисты и стратегии кэширования с неизменяемыми хешами и stale-while-revalidate.
Какие задачи решает
- настроить бюджеты Core Web Vitals для LCP, INP и CLS
- разбить бандлы и уменьшить объём JavaScript до целевых лимитов
- спроектировать стратегию кэширования для статики и динамических API
- подготовить сценарии нагрузочного тестирования через k6 или Artillery
Примеры запросов агенту
- Проверь бандл сборки и предложи разделение кода, чтобы уложиться в бюджет 200 КБ
- Помоги настроить кэширование статических файлов и API со stale-while-revalidate
- Напиши сценарий k6 для нагрузочного тестирования оформления заказа
Как установить performance-engineering
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill performance-engineering -a claude-code2Вручную: положить файлы
~/.claude/skills/performance-engineering/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/performance-engineering/
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill performance-engineering -a codex2Вручную: положить файлы
.agents/skills/performance-engineering/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill performance-engineering -a cursor2Вручную: положить файлы
.cursor/skills/performance-engineering/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install travisjneuman/.claude skills/performance-engineering2Вручную: положить файлы
.github/skills/performance-engineering/SKILL.md1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill performance-engineering -a gemini-cli2Командой платформы
gemini skills install https://github.com/travisjneuman/.claude --path skills/performance-engineeringВручную: положить файлы
.devin/skills/performance-engineering/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill performance-engineering -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о performance-engineering
Как установить performance-engineering в Claude Code?
Выполните команду npx skills add travisjneuman/.claude --skill performance-engineering -a claude-code в терминале проекта.
Что делает performance-engineering?
Он задаёт правила аудита скорости фронтенда и бэкенда: отслеживание метрик LCP, INP и CLS, проверку лимитов на размер бандла и настройку заголовков кэширования.
Что нужно для работы performance-engineering?
Для профилирования требуются данные Lighthouse, RUM или DevTools, а для нагрузочных тестов — установленные утилиты k6 или Artillery.
Исходный текст
SKILL.md · MIT
--- name: performance-engineering description: Web Vitals, bundle optimization, CDN, caching, and load analysis. Use when diagnosing slow pages or APIs, reducing bundle size, or designing caching and performance budgets. --- # Performance Engineering ## Overview This skill covers measuring, optimizing, and maintaining web application performance across the full stack. It addresses Core Web Vitals (LCP, INP, CLS), bundle analysis and code splitting, image optimization, browser and server-side caching, CDN configuration, database query performance, and load testing with k6 and Artillery. Use this skill when Core Web Vitals scores are below targets, bundle sizes are growing, page load times are degrading, or when preparing for traffic spikes. Performance work should be measurement-driven: profile first, optimize second, measure the impact third. --- ## Core Principles 1. **Measure before optimizing** - Profile with real data (RUM, Lighthouse, DevTools) before writing any optimization code. Intuition about performance bottlenecks is usually wrong. 2. **Budget everything** - Set performance budgets for bundle size (< 200kb JS), LCP (< 2.5s), INP (< 200ms), CLS (< 0.1). Check changes against them in review. 3. **Optimize the critical path** - Focus on what blocks the user from seeing and interacting with content. Everything else can load later. 4. **Cache aggressively, invalidate precisely** - Use immutable hashes for static assets, short TTLs for dynamic content, and stale-while-revalidate for the best of both worlds. 5. **Reason at realistic scale** - Judge designs against production-like data volumes and traffic, not toy datasets with 10 concurrent users; run load tests only when the user asks for them. --- ## Reference files Detailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this `SKILL.md` (in the full toolkit install, `~/.claude/skills/performance-engineering/`). | Topic | File | Covers | | --- | --- | --- | | Key Patterns | [`references/key-patterns.md`](references/key-patterns.md) | Pattern 1: Core Web Vitals Monitoring; Pattern 2: Bundle Optimization and Code Splitting; Pattern 3: Image Optimization; Pattern 4: Caching Strategy; Pattern 5: Load Testing with k6 | | Performance Budget Reference | [`references/performance-budget-reference.md`](references/performance-budget-reference.md) | 14 lines | | Anti-Patterns | [`references/anti-patterns.md`](references/anti-patterns.md) | 14 lines | | Checklist | [`references/checklist.md`](references/checklist.md) | 16 lines | ## Related Resources - **Skills:** `monitoring-observability` (performance monitoring), `serverless-development` (cold start optimization) - **Rules:** `docs/reference/checklists/ui-visual-changes.md` (visual performance) - **Rules:** `docs/reference/stacks/react-typescript.md` (React performance patterns)
© travisjneuman · MIT · travisjneuman/.claude