performance
БесплатноБез исполняемых скриптовНе проверенComprehensive performance specialist covering analysis, optimization, load testing, and framework-specific performance. Use when identifying bottlenecks…
от aiskillstore★ 509 звёзд на GitHubОб этом скилле
Performance
This skill provides comprehensive performance capabilities including performance analysis, optimization, load testing, stress testing, capacity planning, and framework-specific performance patterns.
When to Use This Skill
- When identifying performance bottlenecks
- When investigating memory leaks or high memory usage
- When optimizing slow database queries
- When analyzing frontend performance (Core Web Vitals, bundle size)
- When setting up performance monitoring
- When conducting performance audits before deployment
- When creating load test scenarios
- When analyzing performance under stress
- When identifying system bottlenecks under load
- When planning capacity
- When setting up performance benchmarks
- When optimizing React rendering performance
- When reducing bundle size
- When improving Core Web Vitals (LCP, FID, CLS)
- When fixing memory leaks in React apps
- When implementing advanced React patterns
What This Skill Does
- Performance Profiling: Analyzes CPU, memory, and network performance
- Bottleneck Identification: Pinpoints specific performance issues
- Memory Analysis: Detects memory leaks and high memory usage
- Database Optimization: Identifies slow queries and optimization opportunities
- Frontend Analysis: Analyzes bundle size, rendering performance, Core Web Vitals
- Load Testing: Creates and executes load test scenarios
- Stress Testing: Identifies breaking points and limits
- Capacity Planning: Analyzes scalability and capacity
- React Optimization: Optimizes React rendering, bundle size, and Core Web Vitals
- Monitoring Setup: Creates performance monitoring and alerting
How to Use
Analyze Performance
Analyze the performance of this application and identify bottlenecks
Profile the memory usage and find any leaks
Create Load Tests
Create load test scenarios for this API
Test performance under 1000 concurrent users
Optimize React Apps
Optimize this React app for better performance
Analyze bundle size and reduce it
Analysis Areas
Application Performance
Metrics to Track:
- Response times and latency
- Throughput (requests per second)
- Error rates
- CPU utilization
- Memory usage patterns
Common Issues:
- Slow API endpoints
- High CPU usage
- Memory leaks
- Inefficient algorithms
- Blocking operations
Database Performance
Analysis Focus:
- Slow query identification
- Missing indexes
- N+1 query problems
- Connection pool exhaustion
- Lock contention
Tools:
- Query execution plans (EXPLAIN ANALYZE)
- Slow query logs
- Database monitoring tools
- Connection pool metrics
Frontend Performance
Core Web Vitals:
- Largest Contentful Paint (LCP) < 2.5s
- First Input Delay (FID) < 100ms
- Cumulative Layout Shift (CLS) < 0.1
Bundle Analysis:
- Bundle size optimization
- Code splitting opportunities
- Unused code removal
- Asset optimization
React Performance
Rendering Optimization:
- React.memo for component memoization
- useMemo for expensive computations
- useCallback for function memoization
- Virtualization for long lists
- Code splitting and lazy loading
Bundle Optimization:
- Code splitting by route
- Component lazy loading
- Tree shaking unused code
- Dynamic imports
- Bundle analysis
Performance Testing
Load Testing
Purpose: Test system under expected load Metrics: Response time, throughput, error rate Tools: k6, Artillery, JMeter, Locust
Example (k6):
import http from 'k6/http';
import { check } from 'k6';
export const options = {
stages: [
{ duration: '2m', target: 100 }, // Ramp up
{ duration: '5m', target: 100 }, // Stay at 100
{ duration: '2m', target: 200 }, // Ramp up to 200
{ duration: '5m', target: 200 }, // Stay at 200
{ duration: '2m', target: 0 }, // Ramp down
],
};
export default function() {
const res = http.get('https://api.example.com/users');
check(res, {
'status is 200': (r) => r.status === 200,
'response time < 500ms': (r) => r.timings.duration < 500,
});
}
Stress Testing
Purpose: Find breaking points Metrics: Maximum capacity, failure points Approach: Gradually increase load until failure
Capacity Planning
Purpose: Determine resource needs Metrics: Resource utilization, scaling requirements Analysis: Current capacity vs. future needs
Analysis Process
1. Establish Baseline
Measure Current Performance:
- Response time percentiles (p50, p90, p95, p99)
- Throughput metrics
- Error rates
- Resource utilization (CPU, memory, network)
Set Targets:
- Define acceptable performance thresholds
- Set SLA targets
- Identify critical paths
2. Identify Bottlenecks
Profiling Techniques:
- CPU profiling to find hot functions
- Memory profiling to find leaks
- Network analysis for API calls
- Database query analysis
Установить performance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл performance?
Comprehensive performance specialist covering analysis, optimization, load testing, and framework-specific performance. Use when identifying bottlenecks, optimizing code, conducting load tests, analyzing Core Web Vitals, fixing memory leaks, or improving application performance across all layers (application, database, frontend). Includes React-specific optimization patterns.
Как установить скилл performance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл performance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic