Bottleneck Detector
Detect and diagnose performance bottlenecks across CPU, memory, I/O, database, and lock contention layers with targeted 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
- Architecture Analysis: Claude analyzes the application's architecture and data flow to understand potential bottlenecks.
- Bottleneck Identification: The plugin identifies bottlenecks across CPU, memory, I/O, database, lock contention, and resource exhaustion.
- 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:
- Analyze database query performance and identify slow-running queries.
- 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:
- Profile memory usage patterns to identify potential memory leaks.
- 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.
Prerequisites
- Appropriate file access permissions
- Required dependencies installed
Instructions
- Invoke this skill when the trigger conditions are met
- Provide necessary context and parameters
- Review the generated output
- Apply modifications as needed
Output
The skill produces structured output relevant to the task.
Error Handling
- Invalid input: Prompts for correction
- Missing dependencies: Lists required components
- Permission errors: Suggests remediation steps
Resources
- Project documentation
- Related skills and commands
1---
2name: detecting-performance-bottlenecks
3description: |
4 Execute this skill enables AI assistant 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, op... Use when optimizing performance. Trigger with phrases like 'optimize', 'performance', or 'speed up'.
5allowed-tools: Read, Bash(cmd:*), Grep, Glob
6version: 1.0.0
7author: Jeremy Longshore <jeremy@intentsolutions.io>
8license: MIT
9compatible-with: claude-code, codex, openclaw
10metadata:
11 source: https://skillmd.com/skills/micsapp/detecting-performance-bottlenecks
12---
13
14# Bottleneck Detector
15
16Detect and diagnose performance bottlenecks across CPU, memory, I/O, database, and lock contention layers with targeted remediation strategies.
17
18## Overview
19
20This 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.
21
22## How It Works
23
241. **Architecture Analysis**: Claude analyzes the application's architecture and data flow to understand potential bottlenecks.
252. **Bottleneck Identification**: The plugin identifies bottlenecks across CPU, memory, I/O, database, lock contention, and resource exhaustion.
263. **Remediation Suggestions**: Claude provides remediation strategies with code examples to resolve the identified bottlenecks.
27
28## When to Use This Skill
29
30This skill activates when you need to:
31- Diagnose slow application performance.
32- Optimize resource usage (CPU, memory, I/O, database).
33- Proactively prevent performance issues.
34
35## Examples
36
37### Example 1: Diagnosing Slow Database Queries
38
39User request: "detect bottlenecks in my database queries"
40
41The skill will:
421. Analyze database query performance and identify slow-running queries.
432. Suggest optimizations like indexing or query rewriting to improve database performance.
44
45### Example 2: Identifying Memory Leaks
46
47User request: "analyze performance and find memory leaks"
48
49The skill will:
501. Profile memory usage patterns to identify potential memory leaks.
512. Provide code examples and recommendations to fix the memory leaks.
52
53## Best Practices
54
55- **Comprehensive Analysis**: Always analyze all potential bottleneck areas (CPU, memory, I/O, database) for a complete picture.
56- **Prioritize by Severity**: Focus on addressing the most severe bottlenecks first for maximum impact.
57- **Test Thoroughly**: After implementing remediation strategies, thoroughly test the application to ensure the bottlenecks are resolved and no new issues are introduced.
58
59## Integration
60
61This 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.
62
63## Prerequisites
64
65- Appropriate file access permissions
66- Required dependencies installed
67
68## Instructions
69
701. Invoke this skill when the trigger conditions are met
712. Provide necessary context and parameters
723. Review the generated output
734. Apply modifications as needed
74
75## Output
76
77The skill produces structured output relevant to the task.
78
79## Error Handling
80
81- Invalid input: Prompts for correction
82- Missing dependencies: Lists required components
83- Permission errors: Suggests remediation steps
84
85## Resources
86
87- Project documentation
88- Related skills and commands