commit 25cf4800a6f1fccf61b85a633bc9c270ced67734 Author: Zhongwei Li Date: Sun Nov 30 08:20:51 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..5c9d4d3 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,15 @@ +{ + "name": "capacity-planning-analyzer", + "description": "Analyze and plan for capacity requirements", + "version": "1.0.0", + "author": { + "name": "Claude Code Plugins", + "email": "[email protected]" + }, + "skills": [ + "./skills" + ], + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..9cdb33c --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# capacity-planning-analyzer + +Analyze and plan for capacity requirements diff --git a/commands/analyze-capacity.md b/commands/analyze-capacity.md new file mode 100644 index 0000000..b6a2a3c --- /dev/null +++ b/commands/analyze-capacity.md @@ -0,0 +1,43 @@ +--- +description: Analyze capacity and plan for growth +--- + +# Capacity Planning Analyzer + +Analyze current capacity and plan for future growth requirements. + +## Analysis Areas + +1. **Current Utilization**: Resource usage patterns +2. **Growth Trends**: Traffic and data growth rates +3. **Peak Capacity**: Maximum load handling +4. **Scaling Thresholds**: When to scale up/out +5. **Cost Projections**: Budget requirements for growth + +## Capacity Metrics + +- CPU and memory utilization trends +- Database storage growth +- Network bandwidth usage +- Request rate growth +- Connection pool saturation + +## Process + +1. Analyze current resource utilization +2. Identify growth trends from historical data +3. Project future capacity needs +4. Evaluate scaling strategies (vertical vs horizontal) +5. Calculate cost implications +6. Generate capacity roadmap + +## Output + +Provide: +- Current capacity utilization report +- Growth trend analysis with visualizations +- Capacity forecast for 6-12 months +- Scaling recommendations (when and how) +- Cost projections for capacity expansion +- Monitoring setup to track capacity metrics +- Early warning thresholds for capacity constraints diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..5fd744d --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,61 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:jeremylongshore/claude-code-plugins-plus:plugins/performance/capacity-planning-analyzer", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "342af9418c79bb0c918f9ba00b05f2aca2f04f1a", + "treeHash": "dc2a2466e5ded2b38d13c02f325528a5b242c3dca965eee9da59d09c87e7cb93", + "generatedAt": "2025-11-28T10:18:12.230551Z", + "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": "capacity-planning-analyzer", + "description": "Analyze and plan for capacity requirements", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "772ae3156e45e1dd3c4b5e19946c92b4dda4d1d6936c8e77462729ccbf055406" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "ea58b65baacf90f45686bf8f27b05106acf3dd0b20d8595577567b2b810b9e92" + }, + { + "path": "commands/analyze-capacity.md", + "sha256": "3641323a73a9a38e0e8c25106cffe81f5fabe1e8158d52eb93bf6472dc2e0e6d" + }, + { + "path": "skills/capacity-planning-analyzer/SKILL.md", + "sha256": "76d0839a3e3fc86cbb2fed902e0895aed84f6dfdbfb23afc1cc24c80a1583ee8" + }, + { + "path": "skills/capacity-planning-analyzer/references/README.md", + "sha256": "fcb025ab2790f8a6b33741caa43a396b464c2a53860bd42ebb1b4fd5ed9f7d21" + }, + { + "path": "skills/capacity-planning-analyzer/scripts/README.md", + "sha256": "2eb4c100328864c503f95b27120ef75896420573dd777723ddcd5fc84551791d" + }, + { + "path": "skills/capacity-planning-analyzer/assets/README.md", + "sha256": "75482abbcf57ddbf4d07ab5a1ee5b3eaf41548a2b2a54d5a92a0326f80e03ee5" + } + ], + "dirSha256": "dc2a2466e5ded2b38d13c02f325528a5b242c3dca965eee9da59d09c87e7cb93" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file diff --git a/skills/capacity-planning-analyzer/SKILL.md b/skills/capacity-planning-analyzer/SKILL.md new file mode 100644 index 0000000..f16682f --- /dev/null +++ b/skills/capacity-planning-analyzer/SKILL.md @@ -0,0 +1,54 @@ +--- +name: analyzing-capacity-planning +description: | + This skill enables Claude to analyze capacity requirements and plan for future growth. It uses the capacity-planning-analyzer plugin to assess current utilization, forecast growth trends, and recommend scaling strategies. Use this skill when the user asks to "analyze capacity", "plan for growth", "forecast infrastructure needs", or requests a "capacity roadmap". It is also useful when the user mentions specific capacity metrics like CPU usage, memory, database storage, network bandwidth, or connection pool saturation. This skill is ideal for proactive infrastructure planning and preventing performance bottlenecks. +allowed-tools: Read, Write, Edit, Grep, Glob, Bash +version: 1.0.0 +--- + +## Overview + +This skill empowers Claude to analyze current resource utilization, predict future capacity needs, and provide actionable recommendations for scaling infrastructure. It generates insights into growth trends, identifies potential bottlenecks, and estimates costs associated with capacity expansion. + +## How It Works + +1. **Analyze Utilization**: The plugin analyzes current CPU, memory, database storage, network bandwidth, and request rate utilization. +2. **Forecast Growth**: Based on historical data, the plugin forecasts future growth trends for key capacity metrics. +3. **Generate Recommendations**: The plugin recommends scaling strategies, including vertical and horizontal scaling options, and estimates associated costs. + +## When to Use This Skill + +This skill activates when you need to: +- Analyze current infrastructure capacity and identify potential bottlenecks. +- Forecast future resource requirements based on projected growth. +- Develop a capacity roadmap to ensure optimal performance and availability. + +## Examples + +### Example 1: Planning for Database Growth + +User request: "Analyze database capacity and plan for future growth." + +The skill will: +1. Analyze current database storage utilization and growth rate. +2. Forecast future storage requirements based on historical trends. +3. Recommend scaling options, such as adding storage or migrating to a larger instance. + +### Example 2: Identifying CPU Bottlenecks + +User request: "Analyze CPU utilization and identify potential bottlenecks." + +The skill will: +1. Analyze CPU utilization trends across different servers and applications. +2. Identify periods of high CPU usage and potential bottlenecks. +3. Recommend scaling options, such as adding more CPU cores or optimizing application code. + +## Best Practices + +- **Data Accuracy**: Ensure that the data used for analysis is accurate and up-to-date. +- **Metric Selection**: Choose the right capacity metrics to monitor based on your specific application requirements. +- **Regular Monitoring**: Regularly monitor capacity metrics to identify potential issues before they impact performance. + +## Integration + +This skill can be integrated with other monitoring and alerting tools to provide proactive capacity management. It can also be used in conjunction with infrastructure-as-code tools to automate scaling operations. \ No newline at end of file diff --git a/skills/capacity-planning-analyzer/assets/README.md b/skills/capacity-planning-analyzer/assets/README.md new file mode 100644 index 0000000..8f8b967 --- /dev/null +++ b/skills/capacity-planning-analyzer/assets/README.md @@ -0,0 +1,7 @@ +# Assets + +Bundled resources for capacity-planning-analyzer skill + +- [ ] capacity_report_template.md: Template for generating capacity analysis reports. +- [ ] scaling_roadmap_template.md: Template for creating capacity scaling roadmaps. +- [ ] example_capacity_data.csv: Example CSV file containing capacity data for testing and demonstration. diff --git a/skills/capacity-planning-analyzer/references/README.md b/skills/capacity-planning-analyzer/references/README.md new file mode 100644 index 0000000..3b3f937 --- /dev/null +++ b/skills/capacity-planning-analyzer/references/README.md @@ -0,0 +1,7 @@ +# References + +Bundled resources for capacity-planning-analyzer skill + +- [ ] capacity_metrics.md: Documentation of key capacity metrics and their definitions. +- [ ] scaling_strategies.md: Documentation of various scaling strategies and their pros/cons. +- [ ] cost_projection_model.md: Explanation of the cost projection model used for capacity planning. diff --git a/skills/capacity-planning-analyzer/scripts/README.md b/skills/capacity-planning-analyzer/scripts/README.md new file mode 100644 index 0000000..b962b13 --- /dev/null +++ b/skills/capacity-planning-analyzer/scripts/README.md @@ -0,0 +1,7 @@ +# Scripts + +Bundled resources for capacity-planning-analyzer skill + +- [ ] analyze_capacity.py: Script to execute capacity analysis and generate reports. +- [ ] forecast_capacity.py: Script to forecast future capacity needs based on historical data. +- [ ] recommend_scaling.py: Script to recommend scaling strategies based on analysis and forecasts.