Detecting Performance Bottlenecks

by jeremylongshore

skill

|

Skill Details

Repository Files

4 files in this skill directory


name: detecting-performance-bottlenecks description: | This skill enables Claude to detect and resolve performance bottlenecks in applications. It analyzes CPU, memory, I/O, and database performance to identify areas of concern. Use this skill when you need to diagnose slow application performance, optimize resource usage, or proactively prevent performance issues. The skill is triggered by requests to "detect bottlenecks", "analyze performance", "find performance issues", or similar phrases related to performance optimization. It helps uncover root causes and suggest remediation strategies.

Overview

This skill empowers Claude to identify and address performance bottlenecks across different layers of an application. By pinpointing performance issues in CPU, memory, I/O, and database operations, it assists in optimizing resource utilization and improving overall application speed and responsiveness.

How It Works

  1. Architecture Analysis: Claude analyzes the application's architecture and data flow to understand potential bottlenecks.
  2. Bottleneck Identification: The plugin identifies bottlenecks across CPU, memory, I/O, database, lock contention, and resource exhaustion.
  3. Remediation Suggestions: Claude provides remediation strategies with code examples to resolve the identified bottlenecks.

When to Use This Skill

This skill activates when you need to:

  • Diagnose slow application performance.
  • Optimize resource usage (CPU, memory, I/O, database).
  • Proactively prevent performance issues.

Examples

Example 1: Diagnosing Slow Database Queries

User request: "detect bottlenecks in my database queries"

The skill will:

  1. Analyze database query performance and identify slow-running queries.
  2. Suggest optimizations like indexing or query rewriting to improve database performance.

Example 2: Identifying Memory Leaks

User request: "analyze performance and find memory leaks"

The skill will:

  1. Profile memory usage patterns to identify potential memory leaks.
  2. Provide code examples and recommendations to fix the memory leaks.

Best Practices

  • Comprehensive Analysis: Always analyze all potential bottleneck areas (CPU, memory, I/O, database) for a complete picture.
  • Prioritize by Severity: Focus on addressing the most severe bottlenecks first for maximum impact.
  • Test Thoroughly: After implementing remediation strategies, thoroughly test the application to ensure the bottlenecks are resolved and no new issues are introduced.

Integration

This skill can be used in conjunction with code generation plugins to automatically implement the suggested remediation strategies. It also integrates with monitoring and logging tools to provide real-time performance data.

Related Skills

Attack Tree Construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

skill

Grafana Dashboards

Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.

skill

Matplotlib

Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.

skill

Scientific Visualization

Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.

skill

Seaborn

Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.

skill

Shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Query Writing

For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Scientific Visualization

Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.

skill

Skill Information

Category:Skill
Last Updated:11/8/2025