perf
БесплатноБез исполняемых скриптовНе проверенProfile and optimize bottlenecks. Use for performance issues or caching strategies.
от htlin222★ 78 звёзд на GitHubОб этом скилле
Performance Engineering
Profile, analyze, and optimize application performance.
When to Use
- Application is slow or unresponsive
- User reports performance issues
- Before scaling infrastructure
- Optimizing critical paths
- Setting up monitoring
Optimization Process
- Measure - Profile before optimizing
- Identify - Find the biggest bottlenecks
- Optimize - Fix highest-impact issues first
- Verify - Confirm improvements with metrics
Profiling Commands
# Node.js profiling
node --prof app.js
node --prof-process isolate-*.log > profile.txt
# Python profiling
python -m cProfile -o output.prof script.py
python -m pstats output.prof
# Go profiling
go tool pprof http://localhost:6060/debug/pprof/profile
Common Bottlenecks
Database
- Missing indexes (add indexes on WHERE/JOIN columns)
- N+1 queries (use eager loading)
- Large result sets (add pagination)
Memory
- Memory leaks (check event listeners, closures)
- Large objects (stream instead of buffer)
- Cache without TTL (add expiration)
CPU
- Synchronous operations (make async)
- Complex algorithms (optimize or cache)
- Unnecessary computation (memoize)
Network
- Too many requests (batch/combine)
- Large payloads (compress, paginate)
- No caching (add CDN, browser cache)
Performance Budgets
| Metric | Target |
|---|---|
| Load Time (3G) | <3s |
| Load Time (4G) | <1s |
| API Response | <200ms |
| Bundle Size | <500KB |
| LCP | <2.5s |
| FID | <100ms |
| CLS | <0.1 |
Output Format
## Performance Report
**Before:** [baseline metrics]
**After:** [improved metrics]
**Improvement:** [percentage]
### Bottlenecks Identified
1. [Issue] - Impact: High/Medium/Low
### Optimizations Applied
1. [Change] → [Result]
Examples
Input: "The API is slow" Action: Profile endpoints, identify slow queries, optimize, verify improvement
Input: "Page load is taking too long" Action: Analyze bundle, check network, optimize critical path, add caching
Установить perf в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл perf?
Profile and optimize bottlenecks. Use for performance issues or caching strategies.
Как установить скилл perf?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл perf запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic