Profiling Application Performance

by jeremylongshore

skill

|

Skill Details

Repository Files

4 files in this skill directory


name: profiling-application-performance description: | This skill enables Claude to profile application performance, analyzing CPU usage, memory consumption, and execution time. It is triggered when the user requests performance analysis, bottleneck identification, or optimization recommendations. The skill uses the application-profiler plugin to identify performance bottlenecks and suggest code-level optimizations. Use it when asked to "profile application", "analyze performance", or "find bottlenecks". It is also helpful when the user mentions specific performance metrics like "CPU usage", "memory leaks", or "execution time". allowed-tools: Read, Write, Edit, Grep, Glob, Bash version: 1.0.0

Overview

This skill empowers Claude to analyze application performance, pinpoint bottlenecks, and recommend optimizations. By leveraging the application-profiler plugin, it provides insights into CPU usage, memory allocation, and execution time, enabling targeted improvements.

How It Works

  1. Identify Application Stack: Determines the application's technology (e.g., Node.js, Python, Java).
  2. Locate Entry Points: Identifies main application entry points and critical execution paths.
  3. Analyze Performance Metrics: Examines CPU usage, memory allocation, and execution time to detect bottlenecks.
  4. Generate Profile: Compiles the analysis into a comprehensive performance profile, highlighting areas for optimization.

When to Use This Skill

This skill activates when you need to:

  • Analyze application performance for bottlenecks.
  • Identify CPU-intensive operations and memory leaks.
  • Optimize application execution time.

Examples

Example 1: Identifying Memory Leaks

User request: "Analyze my Node.js application for memory leaks."

The skill will:

  1. Activate the application-profiler plugin.
  2. Analyze the application's memory allocation patterns.
  3. Generate a profile highlighting potential memory leaks.

Example 2: Optimizing CPU Usage

User request: "Profile my Python script and find the most CPU-intensive functions."

The skill will:

  1. Activate the application-profiler plugin.
  2. Analyze the script's CPU usage.
  3. Generate a profile identifying the functions consuming the most CPU time.

Best Practices

  • Code Instrumentation: Ensure the application code is instrumented for accurate profiling.
  • Realistic Workloads: Use realistic workloads during profiling to simulate real-world scenarios.
  • Iterative Optimization: Apply optimizations iteratively and re-profile to measure improvements.

Integration

This skill can be used in conjunction with code editing plugins to implement the recommended optimizations directly within the application's source code. It can also integrate with monitoring tools to track performance improvements over time.

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
Version:1.0.0
Allowed Tools:Read, Write, Edit, Grep, Glob, Bash
Last Updated:11/8/2025