원클릭으로
performance
Data-driven performance optimization through profiling and infrastructure tuning
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Data-driven performance optimization through profiling and infrastructure tuning
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Comprehensive code review with security, patterns, and quality focus
Parallel execution using multiple Claude instances in Kitty terminal
Agile/Waterfall project planning, tracking, and delivery management
McKinsey-level strategic analysis with MECE frameworks and quantitative prioritization
Update project documentation (ADRs, CHANGELOG, running notes) in compact Claude-friendly format
Audit and harden any repository with standardized quality gates, hooks, and scripts
| name | performance |
| description | Data-driven performance optimization through profiling and infrastructure tuning |
| allowed-tools | ["Read","Glob","Grep","Bash","Edit"] |
| context | fork |
| user-invocable | true |
| version | 2.0.0 |
Reusable workflow extracted from otto-performance-optimizer expertise.
Systematically identify and eliminate performance bottlenecks through data-driven profiling, algorithmic optimization, and infrastructure tuning.
Performance degradation | Pre-release validation | Scalability planning | High-load optimization | Cost optimization | Database tuning | Frontend Core Web Vitals | Infrastructure right-sizing
| Step | Actions |
|---|---|
| 1. Define Goals | Specific targets (P95 < 200ms), throughput (req/sec), resource efficiency, UX requirements, baseline |
| 2. Baseline | Reproducible benchmarks, measure key metrics, representative workloads, document environment |
| 3. Profile | CPU (hot paths), Memory (leaks, GC), I/O (disk/network), Database (EXPLAIN), Frontend (Lighthouse) |
| 4. Bottlenecks | Analyze profiling data, root causes vs symptoms, quantify impact, prioritize by impact/effort |
| 5. Prioritize | Quick Wins (high/low), Strategic (high/med), Incremental (med/low), Deferred (low/high) |
| 6. Implement | Incremental changes, measure independently, before/after metrics, verify no regressions |
| 7. Validate | Compare vs baseline/goals, load tests at scale, edge cases, resource utilization, cost |
| 8. Monitor | Performance dashboards, degradation alerts, CI/CD tests, document decisions, review cadence |
| Category | Tools |
|---|---|
| CPU | Python: cProfile, py-spy • JS/Node: Chrome DevTools, clinic.js, 0x • C/C++: Instruments, perf, Valgrind • Java: JProfiler, JFR • Go: pprof |
| Memory | Python: memory_profiler, tracemalloc • JS/Node: heap profiler • C/C++: Valgrind, ASan • Java: VisualVM • Go: pprof heap |
| Database | PostgreSQL: EXPLAIN ANALYZE, pg_stat_statements • MySQL: EXPLAIN, slow log • MongoDB: explain() • Redis: SLOWLOG |
| System | Linux: perf, eBPF, sysstat • macOS: Instruments, dtrace • Network: Wireshark, tcpdump |
See metrics-checklist.md for latency, throughput, resource, and UX metrics.
Input: /api/users P95: 3.2s, target: <200ms
Steps:
1. Goal: P95 < 200ms, throughput 5x
2. Baseline: P95 = 3.2s, 50 req/sec
3. Profile: 80% in DB query, full table scan, no index
4. Bottleneck: Missing index, N+1 pattern
5. Prioritize: Add index (quick), fix N+1 (quick), cache (strategic)
6. Implement: CREATE INDEX, rewrite query, Redis (TTL: 5min)
7. Validate: P95 = 45ms (98.6% ↓), 400 req/sec (8x ↑), DB CPU 85% → 12%
8. Monitor: Grafana dashboard, alert if P95 > 200ms
Output: ✅ P95 = 45ms, ✅ 400 req/sec, ✅ $2,400/mo saved
| Anti-Pattern | Fix |
|---|---|
| Premature optimization | Profile first, then optimize |
| Micro-optimizations | Focus on measurable user impact |
| Benchmark gaming | Use production-like workloads |
| Complexity creep | Balance performance vs maintainability |
| Ignoring trade-offs | Document explicitly |
## [Feature/Page]
### Targets
- P95: < [x]ms
- Throughput: > [x] req/sec
- Page Load: < [x]s
- Bundle: < [x]KB
### Current
- P95: [y]ms
- Status: ✅/❌
### Action
[Optimization plan if exceeded]