analyze-performance

Identify performance bottlenecks in codebases and propose prioritized optimizations.

3|2|Updated Jun 25, 2024
One-click install
npx skills add https://github.com/Hopin-inc/civicship-api --skill analyze-performance-hopin-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyze-performance
Source: https://github.com/Hopin-inc/civicship-api/tree/main/.claude/skills/analyze-performance
Command: npx skills add https://github.com/Hopin-inc/civicship-api --skill analyze-performance-hopin-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

パフォーマンスのボトルネックを特定し、最適化提案を提示します。N+1問題、不要なクエリ、非効率なアルゴリズムを検出します。

Core Features & Use Cases

  • N+1問題の検出と回避: 実装のボトルネックを抽出し、DataLoader等の最適化によってクエリ数を削減します。
  • 不要なクエリの検出と削減: 重複データ取得を特定し、適切なクエリ設計へと改善します。
  • SELECT句最適化とインデックス分析: 必要なカラムのみ取得するための設計指針とインデックス推奨を提供します。
  • パフォーマンスレポート生成と優先度付き計画: 全体のボトルネックを可視化し、実装優先度を示す改善計画を出力します。
  • 実世界の適用例: 大規模データ処理でN+1を解消し、システム全体の応答性を向上させる具体的シナリオ。

Quick Start

Analyze a domain or file to generate a comprehensive performance report and improvement plan.

Frequently Asked Questions about analyze-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect and fix N+1 query problems in my backend codebase?

N+1 queries are detected by analyzing backend data access layers to pinpoint redundant fetches across services. The analysis proposes actionable fixes like DataLoader usage to batch requests, reducing query counts and improving response times.

What is the best way to identify performance bottlenecks in database operations?

Performance bottlenecks are identified by analyzing domain logic and data access to locate slow database operations. The analysis generates a prioritized optimization plan recommending indexing and cache strategies to improve overall responsiveness.

How can I optimize SELECT queries and database indexing for slow operations?

Optimizing SELECT queries involves analyzing data access patterns to retrieve only necessary columns. The analysis provides indexing recommendations to accelerate slow database operations and eliminate redundant fetches.

Can I generate a prioritized optimization plan for large-scale data processing?

Yes, a prioritized optimization plan is generated by visualizing overall bottlenecks in large-scale data processing. The plan outlines implementation priorities for cache strategies and indexing to improve system responsiveness.

Does this analysis work for backend data access and domain logic across multiple services?

Yes, the analysis covers backend data access, domain logic, and batch processing across multiple services. It detects inefficiencies like N+1 queries and proposes concrete fixes such as DataLoader usage and selective field retrieval.

What cache strategies are recommended for resolving performance bottlenecks?

Cache strategies are proposed based on detected inefficiencies in data access patterns. The analysis suggests concrete caching fixes alongside indexing and DataLoader usage to eliminate redundant fetches and optimize slow database operations.