Back to Skills

detecting-performance-bottlenecks

jeremylongshore
Updated Yesterday
25 views
712
74
712
View on GitHub
Metaaidata

About

This skill helps developers identify and fix performance bottlenecks in applications by analyzing CPU, memory, I/O, and database metrics. It uncovers root causes of slowdowns and suggests optimization strategies. Use it when prompted to "detect bottlenecks" or "analyze performance" for diagnosing or preventing issues.

Documentation

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.

Quick Install

/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus/tree/main/bottleneck-detector

Copy and paste this command in Claude Code to install this skill

GitHub 仓库

jeremylongshore/claude-code-plugins-plus
Path: backups/skills-batch-20251204-000554/plugins/performance/bottleneck-detector/skills/bottleneck-detector
aiautomationclaude-codedevopsmarketplacemcp

Related Skills

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

llamaguard

Other

LlamaGuard is Meta's 7-8B parameter model for moderating LLM inputs and outputs across six safety categories like violence and hate speech. It offers 94-95% accuracy and can be deployed using vLLM, Hugging Face, or Amazon SageMaker. Use this skill to easily integrate content filtering and safety guardrails into your AI applications.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill