when-profiling-performance-use-performance-profiler
Profile performance and find bottlenecks
Application performance issues are hard to identify without proper tooling. This skill measures CPU usage, memory allocation, I/O latency, and network requests to pinpoint bottlenecks and generate optimization recommendations.
スキルZIPをダウンロード
Claudeでアップロード
設定 → 機能 → スキル → スキルをアップロードへ移動
オンにして利用開始
テストする
「when-profiling-performance-use-performance-profiler」を使用しています。 Profile my Node.js API with standard CPU and memory analysis
期待される結果:
- Baseline throughput: 1,247 requests/second
- Hot path: processData() uses 34% CPU (O(n²) algorithm)
- Memory leak: SessionManager grows 2.3 MB/hour
- Recommendation: Replace nested loops with hash map lookup
「when-profiling-performance-use-performance-profiler」を使用しています。 Analyze database performance and find optimization opportunities
期待される結果:
- Slow queries detected: 12 queries exceed 100ms
- Missing index on users.email column
- N+1 pattern in orders listing (45 extra queries)
- Add index: CREATE INDEX idx_users_email ON users(email)
セキュリティ監査
安全All 269 static findings are false positives. The scanner flagged documentation examples, YAML frontmatter, and GraphViz diagram syntax as security issues. No actual malicious code present. This is a legitimate performance profiling skill for Claude Code.
リスク要因
🌐 ネットワークアクセス (12)
⚡ スクリプトを含む (2)
⚙️ 外部コマンド (173)
📁 ファイルシステムへのアクセス (14)
品質スコア
作れるもの
Debug slow applications
Identify which functions consume the most CPU time and memory so you know where to focus optimization efforts.
Pre-deployment checks
Establish performance baselines before deployments and detect regressions in CI/CD pipelines.
Database optimization
Find slow queries, missing indexes, and N+1 patterns that slow down application response times.
これらのプロンプトを試す
Run a quick 30-second CPU and memory profile on my application at ./src to identify the top bottlenecks.
Run a deep 5-minute analysis targeting all performance dimensions. Generate flame graphs and find memory leaks.
Profile the database queries in my application. Find slow queries, missing indexes, and N+1 patterns. Suggest fixes.
Profile my application in standard mode, save as baseline. Then profile after my changes and compare to show any regressions.
ベストプラクティス
- Profile under realistic production-like load for accurate results
- Use deep mode for complex applications with multiple bottlenecks
- Always benchmark before and after applying optimizations to verify improvement
回避
- Do not optimize based on guesses; always profile first to confirm bottlenecks
- Avoid profiling in production without proper sampling to minimize overhead
- Do not ignore p95/p99 latency metrics; averages can hide performance issues