Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:21:17 +08:00
commit d175bf4178
8 changed files with 219 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{
"name": "performance-optimization-advisor",
"description": "Get comprehensive performance optimization recommendations",
"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 @@
# performance-optimization-advisor
Get comprehensive performance optimization recommendations

60
commands/optimize.md Normal file
View File

@@ -0,0 +1,60 @@
---
description: Get performance optimization recommendations
---
# Performance Optimization Advisor
Receive comprehensive, prioritized performance optimization recommendations.
## Optimization Areas
1. **Frontend Optimization**
- Bundle size reduction
- Code splitting
- Lazy loading
- Image optimization
- Caching strategies
2. **Backend Optimization**
- Database query optimization
- API response time improvement
- Caching layers
- Connection pooling
- Async processing
3. **Infrastructure Optimization**
- CDN implementation
- Load balancing
- Auto-scaling configuration
- Resource right-sizing
4. **Architecture Optimization**
- Service decomposition
- Event-driven patterns
- Read replicas
- Queue-based processing
## Process
1. Analyze current application architecture
2. Review code for performance anti-patterns
3. Evaluate infrastructure setup
4. Identify quick wins and long-term improvements
5. Prioritize recommendations by impact and effort
6. Generate implementation roadmap
## Output
Provide comprehensive report with:
- Executive summary of performance state
- Categorized optimization opportunities
- Prioritization matrix (impact vs effort)
- Detailed recommendations with:
- Current state analysis
- Proposed improvement
- Implementation steps
- Expected performance gains
- Code examples
- Quick wins (low effort, high impact)
- Long-term architectural improvements
- Implementation roadmap with phases

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/performance-optimization-advisor",
"normalized": {
"repo": null,
"ref": "refs/tags/v20251128.0",
"commit": "95a4da598c034d7445c9b58c289ed248f1eb5ecb",
"treeHash": "2a534c0bc832a00fe2e9c79b61560c3dfd06328857389e40deb4847875851833",
"generatedAt": "2025-11-28T10:18:39.688252Z",
"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": "performance-optimization-advisor",
"description": "Get comprehensive performance optimization recommendations",
"version": "1.0.0"
},
"content": {
"files": [
{
"path": "README.md",
"sha256": "f9ccb41b5a68f26b3f1fd4ae9222ba862a72e2259342d368f167b0c0ad51ce91"
},
{
"path": ".claude-plugin/plugin.json",
"sha256": "8fdac0cf4872cb402083fd8880963be90dec63fe6938b83fce6e7e65720ab718"
},
{
"path": "commands/optimize.md",
"sha256": "f2e48a3ff4508b62a455712c1f1c9019e3a214910b0b156def5d5a0653d80124"
},
{
"path": "skills/performance-optimization-advisor/SKILL.md",
"sha256": "97145d300ad8c8e2c2e1a09d51e6c74364dc6760d0128e66635f66ebff9c1882"
},
{
"path": "skills/performance-optimization-advisor/references/README.md",
"sha256": "9006dec6dea2a75e0eb313a236fd827a1cde7773e2a23014f4d61bc85d016b60"
},
{
"path": "skills/performance-optimization-advisor/scripts/README.md",
"sha256": "f459e9532b1933b6120698c232b5936e5a44a4f5c56c113f3722b63f2e0adb2e"
},
{
"path": "skills/performance-optimization-advisor/assets/README.md",
"sha256": "fd6ba5cf30f1d6ad776af9acdffa0e6b6db9ea15bcf7914773c176e7a62f85f7"
}
],
"dirSha256": "2a534c0bc832a00fe2e9c79b61560c3dfd06328857389e40deb4847875851833"
},
"security": {
"scannedAt": null,
"scannerVersion": null,
"flags": []
}
}

View File

@@ -0,0 +1,57 @@
---
name: providing-performance-optimization-advice
description: |
This skill enables Claude to provide comprehensive, prioritized performance optimization recommendations for software projects. It is triggered when the user requests performance improvements, optimization suggestions, or asks for a performance review. The skill analyzes frontend, backend, and infrastructure aspects of the project to identify bottlenecks and anti-patterns. It then provides actionable advice, estimates potential performance gains, and suggests a phased implementation roadmap. Use this skill when the user mentions "optimize performance", "performance recommendations", "performance review", "improve speed", or asks about "bottlenecks".
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
version: 1.0.0
---
## Overview
This skill empowers Claude to act as a performance optimization advisor, delivering a detailed report of potential improvements across various layers of a software application. It prioritizes recommendations based on impact and effort, allowing for a focused and efficient optimization strategy.
## How It Works
1. **Analyze Project**: Claude uses the plugin to analyze the project's codebase, infrastructure configuration, and architecture.
2. **Identify Optimization Areas**: The plugin identifies potential optimization areas in the frontend, backend, and infrastructure.
3. **Prioritize Recommendations**: The plugin prioritizes recommendations based on estimated performance gains and implementation effort.
4. **Generate Report**: Claude presents a comprehensive report with actionable advice, performance gain estimates, and a phased implementation roadmap.
## When to Use This Skill
This skill activates when you need to:
- Identify performance bottlenecks in a software application.
- Get recommendations for improving website loading speed.
- Optimize database query performance.
- Improve API response times.
- Reduce infrastructure costs.
## Examples
### Example 1: Optimizing a Slow Website
User request: "My website is loading very slowly. Can you help me optimize its performance?"
The skill will:
1. Analyze the website's frontend code, backend APIs, and infrastructure configuration.
2. Identify issues such as unoptimized images, inefficient database queries, and lack of CDN usage.
3. Generate a report with prioritized recommendations, including image optimization, database query optimization, and CDN implementation.
### Example 2: Improving API Response Time
User request: "The API response time is too slow. What can I do to improve it?"
The skill will:
1. Analyze the API code, database queries, and caching strategies.
2. Identify issues such as inefficient database queries, lack of caching, and slow processing logic.
3. Generate a report with prioritized recommendations, including database query optimization, caching implementation, and asynchronous processing.
## Best Practices
- **Specificity**: Provide specific details about the project and its performance issues to get more accurate and relevant recommendations.
- **Context**: Explain the context of the performance problem, such as the expected user load or the specific use case.
- **Iteration**: Review the recommendations and provide feedback to refine the optimization strategy.
## Integration
This skill integrates well with other plugins that provide code analysis, infrastructure management, and deployment automation capabilities. For example, it can be used in conjunction with a code linting plugin to identify code-level performance issues or with an infrastructure-as-code plugin to automate infrastructure optimization tasks.

View File

@@ -0,0 +1,7 @@
# Assets
Bundled resources for performance-optimization-advisor skill
- [ ] optimization_report_template.md: A template for generating performance optimization reports.
- [ ] example_optimization_reports/: A directory containing example performance optimization reports for different types of applications.
- [ ] configuration_templates/: A directory containing configuration templates for different performance monitoring tools.

View File

@@ -0,0 +1,9 @@
# References
Bundled resources for performance-optimization-advisor skill
- [ ] performance_optimization_best_practices.md: A comprehensive guide to performance optimization best practices for different programming languages and platforms.
- [ ] frontend_optimization_techniques.md: A detailed explanation of frontend optimization techniques, including code splitting, lazy loading, and image optimization.
- [ ] backend_optimization_techniques.md: A detailed explanation of backend optimization techniques, including database optimization, caching, and load balancing.
- [ ] infrastructure_optimization_techniques.md: A detailed explanation of infrastructure optimization techniques, including server configuration, network optimization, and cloud resource management.
- [ ] anti_pattern_catalog.md: A catalog of common performance anti-patterns and their solutions.

View File

@@ -0,0 +1,7 @@
# Scripts
Bundled resources for performance-optimization-advisor skill
- [ ] performance_profiler.py: A script to profile the performance of a given code snippet or application and identify bottlenecks.
- [ ] optimization_suggestions.py: A script to generate optimization suggestions based on the profiling data.
- [ ] impact_estimator.py: A script to estimate the performance impact of applying a given optimization.