本文へスキップ
Skillpedia
一般的なプログラミング29k · #9595

performance-profiler

できること

このスキルは、Node.js、Python、Goのアプリの性能問題を見つける手助けをします。遅いページ、メモリリーク、大きすぎるバンドルなどが対象です。測定に基づいて速度の問題を直したい開発者を対象としています。

使う場面

  • ✓エンドポイントやページが遅いが、原因が分からないとき。
  • ✓アプリのメモリ使用量が時間とともに増え続けるとき。
  • ✓パッケージを追加した後、Webアプリのバンドルが大きくなりすぎたとき。

スキルのリンク

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/performance-profiler/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/performance-profiler/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“当社のチェックアウトのエンドポイントが遅いです。ボトルネックを見つけて、修正後の変化を測定してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、まずアプリを測定し、重いクエリやCPUの使用などの一般的な遅い箇所を探します。変更を加え、もう一度測定して改善を確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Performance Profiler

Tier: POWERFUL
Category: Engineering
Domain: Performance Engineering


Overview

Systematic performance profiling for Node.js, Python, and Go applications. Identifies CPU, memory, and I/O bottlenecks; generates flamegraphs; analyzes bundle sizes; optimizes database queries; detects memory leaks; and runs load tests with k6 and Artillery. Always measures before and after.

Core Capabilities

  • CPU profiling — flamegraphs for Node.js, py-spy for Python, pprof for Go
  • Memory profiling — heap snapshots, leak detection, GC pressure
  • Bundle analysis — webpack-bundle-analyzer, Next.js bundle analyzer
  • Database optimization — EXPLAIN ANALYZE, slow query log, N+1 detection
  • Load testing — k6 scripts, Artillery scenarios, ramp-up patterns
  • Before/after measurement — establish baseline, profile, optimize, verify

When to Use

  • App is slow and you don't know where the bottleneck is
  • P99 latency exceeds SLA before a release
  • Memory usage grows over time (suspected leak)
  • Bundle size increased after adding dependencies
  • Preparing for a traffic spike (load test before launch)
  • Database queries taking >100ms

Quick Start

# Analyze a project for performance risk indicators
python3 scripts/performance_profiler.py /path/to/project

# JSON output for CI integration
python3 scripts/performance_profiler.py /path/to/project --json

# Custom large-file threshold
python3 scripts/performance_profiler.py /path/to/project --large-file-threshold-kb 256

Golden Rule: Measure First

# Establish baseline BEFORE any optimization
# Record: P50, P95, P99 latency | RPS | error rate | memory usage

# Wrong: "I think the N+1 query is slow, let me fix it"
# Right: Profile → confirm bottleneck → fix → measure again → verify improvement

Node.js Profiling

→ See references/profiling-recipes.md for details

References

よくある質問

どの言語に対応していますか?

Node.js、Python、Goのアプリに対応しています。

多数のユーザーに対する動作も試せますか?

はい。k6とArtilleryを使ったロードテストを書いて実行できます。

問題を推測するだけですか?

いいえ。各変更の前後で測定するので、実際の効果を確認できます。

詳細

作者による元の説明

Use for a slow endpoint, memory leak, CPU spike, large bundle or performance budget in Node.js, Python or Go, before optimizing. Measures before and after with performance_profiler.py, flamegraphs and k6 load tests.

repo: alirezarezvani/claude-skills

人気

GitHubのスター
29k
ランキング
#9595
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル