Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:21:33 +08:00
commit 2ea08bb83b
8 changed files with 187 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{
"name": "throughput-analyzer",
"description": "Analyze and optimize system throughput",
"version": "1.0.0",
"author": {
"name": "Claude Code Plugins",
"email": "[email protected]"
},
"skills": [
"./skills"
],
"commands": [
"./commands"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# throughput-analyzer
Analyze and optimize system throughput

View File

@@ -0,0 +1,33 @@
---
description: Analyze and optimize system throughput
---
# Throughput Analyzer
Analyze system throughput and identify optimization opportunities.
## Analysis Areas
1. **Request Throughput**: Requests per second capacity
2. **Data Throughput**: Data processing rates
3. **Concurrency Limits**: Parallelization opportunities
4. **Queue Processing**: Message/job processing rates
5. **Resource Saturation**: Bottleneck identification
## Process
1. Identify throughput-critical components
2. Analyze current throughput metrics
3. Identify limiting factors
4. Evaluate scaling strategies
5. Generate optimization recommendations
## Output
Provide report with:
- Current throughput measurements
- Bottleneck identification
- Concurrency optimization strategies
- Scaling recommendations (vertical/horizontal)
- Code-level optimizations
- Expected throughput improvements

61
plugin.lock.json Normal file
View File

@@ -0,0 +1,61 @@
{
"$schema": "internal://schemas/plugin.lock.v1.json",
"pluginId": "gh:jeremylongshore/claude-code-plugins-plus:plugins/performance/throughput-analyzer",
"normalized": {
"repo": null,
"ref": "refs/tags/v20251128.0",
"commit": "c7facac75019db57dfc77dc792f24d6c235f8586",
"treeHash": "654b5af14ca701ea8e871bdf190b1cbc69ef7dc377ce442b1b70590dd922b3f3",
"generatedAt": "2025-11-28T10:18:50.006749Z",
"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": "throughput-analyzer",
"description": "Analyze and optimize system throughput",
"version": "1.0.0"
},
"content": {
"files": [
{
"path": "README.md",
"sha256": "8dc5eb475f31d8dcbbb500447cd5fd444862312e7b239c258d7b4efc195c6a9e"
},
{
"path": ".claude-plugin/plugin.json",
"sha256": "f636000d7348b54223ddbef1426a659b4ecfcd6717dfb89471f2b5f80a4322eb"
},
{
"path": "commands/analyze-throughput.md",
"sha256": "89133f442c952ee5d54a32a3994ea8d9fdaba9a49f9e45860033f3e608c6246e"
},
{
"path": "skills/throughput-analyzer/SKILL.md",
"sha256": "c760a761a06da805dc48b8ca1fdd2d00e4823b86548c1e1ad3e3d38c5172aa6d"
},
{
"path": "skills/throughput-analyzer/references/README.md",
"sha256": "dcff196ccde3f3148e2547272bbd7292a427a90989757c5c790a749494d83adc"
},
{
"path": "skills/throughput-analyzer/scripts/README.md",
"sha256": "0e9289c6c6f5d0fda7bd3de2e65951e27d722ae89f285cf58fa4cbe2762fa833"
},
{
"path": "skills/throughput-analyzer/assets/README.md",
"sha256": "983ff34f07219c66f2edae3f4538c36acb47ecd3ac42f5f5f2afb70fccce42b1"
}
],
"dirSha256": "654b5af14ca701ea8e871bdf190b1cbc69ef7dc377ce442b1b70590dd922b3f3"
},
"security": {
"scannedAt": null,
"scannerVersion": null,
"flags": []
}
}

View File

@@ -0,0 +1,55 @@
---
name: analyzing-system-throughput
description: |
This skill enables Claude to analyze and optimize system throughput. It is triggered when the user requests throughput analysis, performance improvements, or bottleneck identification. The skill uses the `throughput-analyzer` plugin to assess request throughput, data throughput, concurrency limits, queue processing, and resource saturation. Use this skill when the user mentions "analyze throughput", "optimize performance", "identify bottlenecks", or asks about system capacity. It helps determine limiting factors and evaluate scaling strategies.
allowed-tools: Read, Write, Bash, Grep
version: 1.0.0
---
## Overview
This skill allows Claude to analyze system performance and identify areas for throughput optimization. It uses the `throughput-analyzer` plugin to provide insights into request handling, data processing, and resource utilization.
## How It Works
1. **Identify Critical Components**: Determines which system components are most relevant to throughput.
2. **Analyze Throughput Metrics**: Gathers and analyzes current throughput metrics for the identified components.
3. **Identify Limiting Factors**: Pinpoints the bottlenecks and constraints that are hindering optimal throughput.
4. **Evaluate Scaling Strategies**: Explores potential scaling strategies and their impact on overall throughput.
## When to Use This Skill
This skill activates when you need to:
- Analyze system throughput to identify performance bottlenecks.
- Optimize system performance for increased capacity.
- Evaluate scaling strategies to improve throughput.
## Examples
### Example 1: Analyzing Web Server Throughput
User request: "Analyze the throughput of my web server and identify any bottlenecks."
The skill will:
1. Activate the `throughput-analyzer` plugin.
2. Analyze request throughput, data throughput, and resource saturation of the web server.
3. Provide a report identifying potential bottlenecks and optimization opportunities.
### Example 2: Optimizing Data Processing Pipeline
User request: "Optimize the throughput of my data processing pipeline."
The skill will:
1. Activate the `throughput-analyzer` plugin.
2. Analyze data throughput, queue processing, and concurrency limits of the data processing pipeline.
3. Suggest improvements to increase data processing rates and overall throughput.
## Best Practices
- **Component Selection**: Focus the analysis on the most throughput-critical components to avoid unnecessary overhead.
- **Metric Interpretation**: Carefully interpret throughput metrics to accurately identify limiting factors.
- **Scaling Evaluation**: Thoroughly evaluate the potential impact of scaling strategies before implementation.
## Integration
This skill can be used in conjunction with other monitoring and performance analysis tools to gain a more comprehensive understanding of system behavior. It provides a starting point for further investigation and optimization efforts.

View File

@@ -0,0 +1,6 @@
# Assets
Bundled resources for throughput-analyzer skill
- [ ] throughput_report_template.md: Markdown template for generating throughput analysis reports.
- [ ] concurrency_optimization_strategies.json: JSON file containing various concurrency optimization strategies based on system characteristics.

View File

@@ -0,0 +1,7 @@
# References
Bundled resources for throughput-analyzer skill
- [ ] throughput_analysis_best_practices.md: Document outlining best practices for throughput analysis, including key metrics and analysis techniques.
- [ ] concurrency_optimization_guide.md: Guide on optimizing concurrency limits for different system architectures and workloads.
- [ ] performance_metrics_glossary.md: Glossary defining key performance metrics related to throughput analysis.

View File

@@ -0,0 +1,7 @@
# Scripts
Bundled resources for throughput-analyzer skill
- [ ] analyze_throughput.py: Script to automate throughput analysis, collect metrics, and generate reports.
- [ ] optimize_concurrency.py: Script to dynamically adjust concurrency limits based on real-time throughput data.
- [ ] identify_bottlenecks.sh: Script to identify system bottlenecks using standard Linux tools (e.g., top, iostat).