Initial commit
This commit is contained in:
15
.claude-plugin/plugin.json
Normal file
15
.claude-plugin/plugin.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "bottleneck-detector",
|
||||
"description": "Detect and resolve performance bottlenecks",
|
||||
"version": "1.0.0",
|
||||
"author": {
|
||||
"name": "Claude Code Plugins",
|
||||
"email": "[email protected]"
|
||||
},
|
||||
"skills": [
|
||||
"./skills"
|
||||
],
|
||||
"commands": [
|
||||
"./commands"
|
||||
]
|
||||
}
|
||||
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# bottleneck-detector
|
||||
|
||||
Detect and resolve performance bottlenecks
|
||||
34
commands/detect-bottlenecks.md
Normal file
34
commands/detect-bottlenecks.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
description: Detect performance bottlenecks in application
|
||||
---
|
||||
|
||||
# Bottleneck Detector
|
||||
|
||||
Identify and resolve performance bottlenecks across the application stack.
|
||||
|
||||
## Detection Areas
|
||||
|
||||
1. **CPU Bottlenecks**: Computation-heavy operations
|
||||
2. **Memory Bottlenecks**: Memory allocation/deallocation issues
|
||||
3. **I/O Bottlenecks**: Disk and network operations
|
||||
4. **Database Bottlenecks**: Query performance issues
|
||||
5. **Lock Contention**: Synchronization overhead
|
||||
6. **Resource Exhaustion**: Connection pools, file descriptors
|
||||
|
||||
## Process
|
||||
|
||||
1. Analyze application architecture and data flow
|
||||
2. Identify potential bottleneck locations
|
||||
3. Review code for common bottleneck patterns
|
||||
4. Evaluate resource utilization
|
||||
5. Generate prioritized remediation plan
|
||||
|
||||
## Output
|
||||
|
||||
Provide comprehensive report with:
|
||||
- Identified bottlenecks with severity ratings
|
||||
- Root cause analysis for each bottleneck
|
||||
- Impact assessment on overall performance
|
||||
- Specific remediation strategies with code examples
|
||||
- Monitoring recommendations to prevent recurrence
|
||||
- Priority order for addressing issues
|
||||
61
plugin.lock.json
Normal file
61
plugin.lock.json
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"$schema": "internal://schemas/plugin.lock.v1.json",
|
||||
"pluginId": "gh:jeremylongshore/claude-code-plugins-plus:plugins/performance/bottleneck-detector",
|
||||
"normalized": {
|
||||
"repo": null,
|
||||
"ref": "refs/tags/v20251128.0",
|
||||
"commit": "84420842de29ccf1f2de58b432a4f5e3d6d24af1",
|
||||
"treeHash": "74a3fb6600178c30688c701eaec8afd717b12ce3da3bb93132da7452d939cb2b",
|
||||
"generatedAt": "2025-11-28T10:18:11.397252Z",
|
||||
"toolVersion": "publish_plugins.py@0.2.0"
|
||||
},
|
||||
"origin": {
|
||||
"remote": "git@github.com:zhongweili/42plugin-data.git",
|
||||
"branch": "master",
|
||||
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
|
||||
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
|
||||
},
|
||||
"manifest": {
|
||||
"name": "bottleneck-detector",
|
||||
"description": "Detect and resolve performance bottlenecks",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"content": {
|
||||
"files": [
|
||||
{
|
||||
"path": "README.md",
|
||||
"sha256": "eeecfd97b3998cf1eb3101d17dd38a347632232e280ed1958bc605c143f5b7a6"
|
||||
},
|
||||
{
|
||||
"path": ".claude-plugin/plugin.json",
|
||||
"sha256": "26508de494cb44a9fd6703980b3325141f2a104071bc9a0ceed0c0fca4e27d3e"
|
||||
},
|
||||
{
|
||||
"path": "commands/detect-bottlenecks.md",
|
||||
"sha256": "0d62227eb9d6e1101b361328438eaf2e2f9b735a15027f22d910d1c9478b5cc9"
|
||||
},
|
||||
{
|
||||
"path": "skills/bottleneck-detector/SKILL.md",
|
||||
"sha256": "38f87485f5ab377aac573d865999914669325bd8d930eb43b3dc55f026421d0c"
|
||||
},
|
||||
{
|
||||
"path": "skills/bottleneck-detector/references/README.md",
|
||||
"sha256": "e94058599c857f6128a5e0a944bcea39dae29bde012c0397c0a076580f67eebf"
|
||||
},
|
||||
{
|
||||
"path": "skills/bottleneck-detector/scripts/README.md",
|
||||
"sha256": "7a36043e0c425d33e3967c6d3af33d3065debbb95c614b7ae2aa41467995b6c2"
|
||||
},
|
||||
{
|
||||
"path": "skills/bottleneck-detector/assets/README.md",
|
||||
"sha256": "20afc530d15a9cf23712214ed2df35abad71d5043141bb729c3e78750ad65b9b"
|
||||
}
|
||||
],
|
||||
"dirSha256": "74a3fb6600178c30688c701eaec8afd717b12ce3da3bb93132da7452d939cb2b"
|
||||
},
|
||||
"security": {
|
||||
"scannedAt": null,
|
||||
"scannerVersion": null,
|
||||
"flags": []
|
||||
}
|
||||
}
|
||||
52
skills/bottleneck-detector/SKILL.md
Normal file
52
skills/bottleneck-detector/SKILL.md
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
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.
|
||||
allowed-tools: Read, Bash, Grep, Glob
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
## 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.
|
||||
8
skills/bottleneck-detector/assets/README.md
Normal file
8
skills/bottleneck-detector/assets/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Assets
|
||||
|
||||
Bundled resources for bottleneck-detector skill
|
||||
|
||||
- [ ] example_cpu_analysis.txt: Example output of CPU analysis script.
|
||||
- [ ] example_memory_analysis.txt: Example output of memory analysis script.
|
||||
- [ ] example_io_analysis.txt: Example output of I/O analysis script.
|
||||
- [ ] example_db_analysis.txt: Example output of database analysis script.
|
||||
9
skills/bottleneck-detector/references/README.md
Normal file
9
skills/bottleneck-detector/references/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# References
|
||||
|
||||
Bundled resources for bottleneck-detector skill
|
||||
|
||||
- [ ] cpu_performance_metrics.md: Documentation on CPU performance metrics and how to interpret them.
|
||||
- [ ] memory_management_best_practices.md: Best practices for memory management in applications.
|
||||
- [ ] io_optimization_techniques.md: Techniques for optimizing I/O performance.
|
||||
- [ ] database_tuning_guide.md: Guide to tuning database performance for optimal speed.
|
||||
- [ ] bottleneck_detection_methodology.md: Detailed explanation of the bottleneck detection methodology used by the skill.
|
||||
8
skills/bottleneck-detector/scripts/README.md
Normal file
8
skills/bottleneck-detector/scripts/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Scripts
|
||||
|
||||
Bundled resources for bottleneck-detector skill
|
||||
|
||||
- [ ] analyze_cpu.sh: Script to analyze CPU usage and identify bottlenecks.
|
||||
- [ ] analyze_memory.sh: Script to analyze memory usage and identify memory leaks.
|
||||
- [ ] analyze_io.sh: Script to analyze I/O performance and identify slow disk operations.
|
||||
- [ ] analyze_db.sh: Script to analyze database performance and identify slow queries.
|
||||
Reference in New Issue
Block a user