Providing Performance Optimization Advice

by jeremylongshore

skill

Provide comprehensive prioritized performance optimization recommendations for frontend, backend, and infrastructure. Use when analyzing bottlenecks or seeking improvement strategies. Trigger with phrases like "optimize performance", "improve speed", or "performance recommendations".

Skill Details

Repository Files

7 files in this skill directory


name: providing-performance-optimization-advice description: Provide comprehensive prioritized performance optimization recommendations for frontend, backend, and infrastructure. Use when analyzing bottlenecks or seeking improvement strategies. Trigger with phrases like "optimize performance", "improve speed", or "performance recommendations". version: 1.0.0 allowed-tools: "Read, Write, Edit, Grep, Glob, Bash(profiling:), Bash(analysis:)" license: MIT author: Jeremy Longshore jeremy@intentsolutions.io

Performance Optimization Advisor

This skill provides automated assistance for performance optimization advisor tasks.

Overview

This skill empowers Claude to act as a performance optimization advisor, delivering a detailed report of potential improvements across various layers of a software application. It prioritizes recommendations based on impact and effort, allowing for a focused and efficient optimization strategy.

How It Works

  1. Analyze Project: Claude uses the plugin to analyze the project's codebase, infrastructure configuration, and architecture.
  2. Identify Optimization Areas: The plugin identifies potential optimization areas in the frontend, backend, and infrastructure.
  3. Prioritize Recommendations: The plugin prioritizes recommendations based on estimated performance gains and implementation effort.
  4. Generate Report: Claude presents a comprehensive report with actionable advice, performance gain estimates, and a phased implementation roadmap.

When to Use This Skill

This skill activates when you need to:

  • Identify performance bottlenecks in a software application.
  • Get recommendations for improving website loading speed.
  • Optimize database query performance.
  • Improve API response times.
  • Reduce infrastructure costs.

Examples

Example 1: Optimizing a Slow Website

User request: "My website is loading very slowly. Can you help me optimize its performance?"

The skill will:

  1. Analyze the website's frontend code, backend APIs, and infrastructure configuration.
  2. Identify issues such as unoptimized images, inefficient database queries, and lack of CDN usage.
  3. Generate a report with prioritized recommendations, including image optimization, database query optimization, and CDN implementation.

Example 2: Improving API Response Time

User request: "The API response time is too slow. What can I do to improve it?"

The skill will:

  1. Analyze the API code, database queries, and caching strategies.
  2. Identify issues such as inefficient database queries, lack of caching, and slow processing logic.
  3. Generate a report with prioritized recommendations, including database query optimization, caching implementation, and asynchronous processing.

Best Practices

  • Specificity: Provide specific details about the project and its performance issues to get more accurate and relevant recommendations.
  • Context: Explain the context of the performance problem, such as the expected user load or the specific use case.
  • Iteration: Review the recommendations and provide feedback to refine the optimization strategy.

Integration

This skill integrates well with other plugins that provide code analysis, infrastructure management, and deployment automation capabilities. For example, it can be used in conjunction with a code linting plugin to identify code-level performance issues or with an infrastructure-as-code plugin to automate infrastructure optimization tasks.

Prerequisites

  • Access to application codebase in {baseDir}/
  • Infrastructure configuration files
  • Performance profiling tools
  • Current performance metrics and baselines

Instructions

  1. Analyze frontend code for rendering and asset optimization
  2. Review backend code for query and processing efficiency
  3. Examine infrastructure for scaling and resource usage
  4. Identify high-impact optimization opportunities
  5. Prioritize recommendations by effort vs impact
  6. Generate phased implementation roadmap

Output

  • Comprehensive optimization report by layer (frontend/backend/infra)
  • Prioritized recommendations with impact estimates
  • Code examples for suggested improvements
  • Performance gain projections
  • Implementation effort estimates and timeline

Error Handling

If optimization analysis fails:

  • Verify codebase access permissions
  • Check profiling tool installation
  • Validate configuration file formats
  • Ensure sufficient analysis resources
  • Review project structure completeness

Resources

  • Web performance optimization guides
  • Database query optimization best practices
  • Infrastructure scaling patterns
  • Caching strategies and CDN usage

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
License:MIT
Version:1.0.0
Allowed Tools:Read, Write, Edit, Grep, Glob, Bash(profiling:*), Bash(analysis:*)
Last Updated:12/28/2025