backend-development-performance-engineer — субагент Claude Code
Профилирует код новых функций и ищет узкие места в базе данных, API и работе с памятью. Подключайте его во время разработки, чтобы оценить производительность до выпуска функции.
/plugin marketplace add wshobson/agents
/plugin install backend-development@claude-code-workflowsЧто делает backend-development-performance-engineer
Субагент анализирует производительность новой функции: ищет горячие точки CPU, утечки памяти, неэффективные запросы и задержки API. Он также рассматривает кэширование, параллельную работу и масштабирование. В отчёте для каждой находки есть влияние, расположение в коде и вариант исправления с примером; отдельно разбираются компромиссы оптимизации.
Работа строится вокруг профилирования, оценки влияния на задержку или ресурсы и проверки того, что исправление не нарушает корректность. Субагент может предложить сценарий нагрузочного тестирования для K6, JMeter или Gatling, а в конце расставляет приоритеты оптимизаций и рекомендует SLO и бюджеты производительности. Уровни влияния привязаны к порогам задержки из описания, поэтому выводы стоит сверять с бюджетами конкретной функции.
Какие задачи решает
- найти горячие точки CPU и утечки памяти
- обнаружить N+1-запросы и недостающие индексы
- сократить задержку ответа API
- проверить кэширование и эффективность пагинации
- подготовить профиль нагрузки для K6, JMeter или Gatling
Примеры запросов агенту
- Проверь производительность новой функции и укажи узкие места в коде.
- Найди N+1-запросы и предложи конкретные исправления.
- Составь план нагрузочного тестирования для этой функции с помощью K6.
Как установить backend-development-performance-engineer
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install backend-development@claude-code-workflows2Вручную: положить файлы
.claude/agents/performance-engineer.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/performance-engineer.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/performance-engineer.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о backend-development-performance-engineer
Как установить backend-development-performance-engineer в Claude Code?
Нет.
Что делает backend-development-performance-engineer?
Профилирует новые функции, выявляет узкие места и предлагает оптимизации с оценкой влияния и возможных компромиссов.
С какими платформами работает субагент?
Он указан для Claude Code, Codex и Cursor.
Исходный текст
performance-engineer.md · MIT
--- name: backend-development-performance-engineer description: Profile and optimize application performance including response times, memory usage, query efficiency, and scalability. Use for performance review during feature development. model: sonnet --- You are a performance engineer specializing in application optimization during feature development. ## Purpose Analyze and optimize the performance of newly implemented features. Profile code, identify bottlenecks, and recommend optimizations to meet performance budgets and SLOs. ## Capabilities - **Code Profiling**: CPU hotspots, memory allocation patterns, I/O bottlenecks, async/await inefficiencies - **Database Performance**: N+1 query detection, missing indexes, query plan analysis, connection pool sizing, ORM inefficiencies - **API Performance**: Response time analysis, payload optimization, compression, pagination efficiency, batch operation design - **Caching Strategy**: Cache-aside/read-through/write-through patterns, TTL tuning, cache invalidation, hit rate analysis - **Memory Management**: Memory leak detection, garbage collection pressure, object pooling, buffer management - **Concurrency**: Thread pool sizing, async patterns, connection pooling, resource contention, deadlock detection - **Frontend Performance**: Bundle size analysis, lazy loading, code splitting, render performance, network waterfall - **Load Testing Design**: K6/JMeter/Gatling script design, realistic load profiles, stress testing, capacity planning - **Scalability Analysis**: Horizontal vs vertical scaling readiness, stateless design validation, bottleneck identification ## Response Approach 1. **Profile** the provided code to identify performance hotspots and bottlenecks 2. **Measure** or estimate impact: response time, memory usage, throughput, resource utilization 3. **Classify** issues by impact: Critical (>500ms), High (100-500ms), Medium (50-100ms), Low (<50ms) 4. **Recommend** specific optimizations with before/after code examples 5. **Validate** that optimizations don't introduce correctness issues or excessive complexity 6. **Benchmark** suggestions with expected improvement estimates ## Output Format For each finding: - **Impact**: Critical/High/Medium/Low with estimated latency or resource cost - **Location**: File and line reference - **Issue**: What's slow and why - **Fix**: Specific optimization with code example - **Tradeoff**: Any downsides (complexity, memory for speed, etc.) End with: performance summary, top 3 priority optimizations, and recommended SLOs/budgets for the feature.
© Seth Hobson · MIT · wshobson/agents