hadimiftahulf/antigravity-skills

optimize-perf

Systematic performance tuning workflow to identify bottlenecks in Database, Backend, and Frontend layers.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/hadimiftahulf/antigravity-skills --skill optimize-perf

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

Optimize Performance (The Racer 🏎️)

Merged: performance-profiler + optimize-perf.

When to Activate

  • User mentions: "slow", "optimize", "performance", "benchmark", "N+1", "memory".

Phase 1: Profiling (formerly performance-profiler)

Detect anti-patterns before optimizing:

  1. Database: N+1 queries, missing indexes, full table scans, unbounded queries.
  2. Backend: Synchronous IO in request cycle, blocking calls, missing caching.
  3. Frontend: Large bundle size, unoptimized images, excessive re-renders, layout thrashing.
  4. Memory: Object retention, circular references, unbounded lists.

Phase 2: Optimization

After profiling, apply fixes:

  1. Database: Add indexes, eager loading, query optimization, pagination.
  2. Backend: Async processing, queue jobs, Redis/Memcached caching, connection pooling.
  3. Frontend: Code splitting, lazy loading, image optimization, memoization.

Rules

  • Profile FIRST, optimize SECOND. Never guess.
  • Measure before and after. Quantify improvement.
  • One optimization at a time to isolate impact.

Cost: High (Explicit Trigger Required)

タスクに関連する項目