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": "performance-budget-validator",
|
||||||
|
"description": "Validate application against performance budgets",
|
||||||
|
"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 @@
|
|||||||
|
# performance-budget-validator
|
||||||
|
|
||||||
|
Validate application against performance budgets
|
||||||
33
commands/validate-budget.md
Normal file
33
commands/validate-budget.md
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
description: Validate against performance budgets
|
||||||
|
---
|
||||||
|
|
||||||
|
# Performance Budget Validator
|
||||||
|
|
||||||
|
Create and validate performance budgets to prevent performance regressions.
|
||||||
|
|
||||||
|
## Budget Categories
|
||||||
|
|
||||||
|
1. **Page Load Times**: First Contentful Paint, Time to Interactive
|
||||||
|
2. **Bundle Sizes**: JavaScript, CSS, image sizes
|
||||||
|
3. **Request Counts**: Number of HTTP requests
|
||||||
|
4. **API Response Times**: Backend endpoint latency
|
||||||
|
5. **Lighthouse Scores**: Performance, accessibility, SEO scores
|
||||||
|
|
||||||
|
## Process
|
||||||
|
|
||||||
|
1. Analyze current performance metrics
|
||||||
|
2. Define performance budget thresholds
|
||||||
|
3. Create budget validation configuration
|
||||||
|
4. Implement CI/CD integration
|
||||||
|
5. Generate monitoring and alerting setup
|
||||||
|
|
||||||
|
## Output
|
||||||
|
|
||||||
|
Provide:
|
||||||
|
- Performance budget configuration file
|
||||||
|
- Validation scripts (Lighthouse CI, webpack-bundle-analyzer, etc.)
|
||||||
|
- CI/CD pipeline integration guide
|
||||||
|
- Dashboard for budget tracking
|
||||||
|
- Alert setup for budget violations
|
||||||
|
- Remediation workflow recommendations
|
||||||
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/performance-budget-validator",
|
||||||
|
"normalized": {
|
||||||
|
"repo": null,
|
||||||
|
"ref": "refs/tags/v20251128.0",
|
||||||
|
"commit": "b18c338f7d9c7a4dd1dcb72ae8a1829047e27c25",
|
||||||
|
"treeHash": "008cc2ff08fd4bfdccd2b946511c2498405fb18503994176d1e017d793ad1ff9",
|
||||||
|
"generatedAt": "2025-11-28T10:18:39.448462Z",
|
||||||
|
"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-budget-validator",
|
||||||
|
"description": "Validate application against performance budgets",
|
||||||
|
"version": "1.0.0"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "README.md",
|
||||||
|
"sha256": "16f60236bc49d3289c1b764dba5648707c0c7b7f8f7e2990f110db49ba42859b"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": ".claude-plugin/plugin.json",
|
||||||
|
"sha256": "6cd849ca091656cb4e5fc6d1d6d478354a7f7c89264bd8a34a34d677a5f06ef1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/validate-budget.md",
|
||||||
|
"sha256": "252e1f9e31416efe6ec523b4196c2dc1b5172f9cad408b2158140f256a26e785"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/performance-budget-validator/SKILL.md",
|
||||||
|
"sha256": "6ea7711e6088c7b80b2e9feff90d72208f85e6bf6c867c3583b516807baba954"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/performance-budget-validator/references/README.md",
|
||||||
|
"sha256": "e63ec31ba62853f9f88811d3482408e3aa90b710967bf4b83e377a85aa1f0220"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/performance-budget-validator/scripts/README.md",
|
||||||
|
"sha256": "899360870688efe0bc6beda02cb95f35e4f764bd003a65660d005175e3b303b1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/performance-budget-validator/assets/README.md",
|
||||||
|
"sha256": "7460c3c65339296d8894bf6bee81a574491490933d0e45bd9ac022b24ada988a"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dirSha256": "008cc2ff08fd4bfdccd2b946511c2498405fb18503994176d1e017d793ad1ff9"
|
||||||
|
},
|
||||||
|
"security": {
|
||||||
|
"scannedAt": null,
|
||||||
|
"scannerVersion": null,
|
||||||
|
"flags": []
|
||||||
|
}
|
||||||
|
}
|
||||||
54
skills/performance-budget-validator/SKILL.md
Normal file
54
skills/performance-budget-validator/SKILL.md
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
---
|
||||||
|
name: validating-performance-budgets
|
||||||
|
description: |
|
||||||
|
This skill enables Claude to validate application performance against defined budgets. It's useful for identifying performance regressions early in the development lifecycle. The skill is triggered when the user mentions "performance budget", "validate budget", "performance regression", or requests a check against performance metrics like "page load times", "bundle sizes", "API response times", or "Lighthouse scores". The plugin validates against predefined thresholds and alerts on violations. It is especially helpful in CI/CD pipelines to prevent performance degradation in production.
|
||||||
|
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
|
||||||
|
version: 1.0.0
|
||||||
|
---
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
This skill allows Claude to automatically validate your application's performance against predefined budgets. It helps identify performance regressions and ensures your application maintains optimal performance characteristics.
|
||||||
|
|
||||||
|
## How It Works
|
||||||
|
|
||||||
|
1. **Analyze Performance Metrics**: Claude analyzes current performance metrics, such as page load times, bundle sizes, and API response times.
|
||||||
|
2. **Validate Against Budget**: The plugin validates these metrics against predefined performance budget thresholds.
|
||||||
|
3. **Report Violations**: If any metrics exceed the defined budget, the skill reports violations and provides details on the exceeded thresholds.
|
||||||
|
|
||||||
|
## When to Use This Skill
|
||||||
|
|
||||||
|
This skill activates when you need to:
|
||||||
|
- Validate performance against predefined budgets.
|
||||||
|
- Identify performance regressions in your application.
|
||||||
|
- Integrate performance budget validation into your CI/CD pipeline.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
### Example 1: Preventing Performance Regressions
|
||||||
|
|
||||||
|
User request: "Validate performance budget for the homepage."
|
||||||
|
|
||||||
|
The skill will:
|
||||||
|
1. Analyze the homepage's performance metrics (load time, bundle size).
|
||||||
|
2. Compare these metrics against the defined budget.
|
||||||
|
3. Report any violations, such as exceeding the load time budget.
|
||||||
|
|
||||||
|
### Example 2: Integrating with CI/CD
|
||||||
|
|
||||||
|
User request: "Run performance budget validation as part of the build process."
|
||||||
|
|
||||||
|
The skill will:
|
||||||
|
1. Execute the performance budget validation command.
|
||||||
|
2. Check all defined performance metrics against their budgets.
|
||||||
|
3. Report any violations that would cause the build to fail.
|
||||||
|
|
||||||
|
## Best Practices
|
||||||
|
|
||||||
|
- **Budget Definition**: Define realistic and achievable performance budgets based on current application performance and user expectations.
|
||||||
|
- **Metric Selection**: Choose relevant performance metrics that directly impact user experience, such as page load times and API response times.
|
||||||
|
- **CI/CD Integration**: Integrate performance budget validation into your CI/CD pipeline to automatically detect and prevent performance regressions.
|
||||||
|
|
||||||
|
## Integration
|
||||||
|
|
||||||
|
This skill can be integrated with other plugins that provide performance metrics, such as website speed test tools or API monitoring services. It can also be used in conjunction with alerting plugins to notify developers of performance budget violations.
|
||||||
6
skills/performance-budget-validator/assets/README.md
Normal file
6
skills/performance-budget-validator/assets/README.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Assets
|
||||||
|
|
||||||
|
Bundled resources for performance-budget-validator skill
|
||||||
|
|
||||||
|
- [ ] budget_template.json: A template JSON file for creating a new performance budget configuration.
|
||||||
|
- [ ] example_report.md: An example markdown report showing the output of a performance budget validation run.
|
||||||
7
skills/performance-budget-validator/references/README.md
Normal file
7
skills/performance-budget-validator/references/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# References
|
||||||
|
|
||||||
|
Bundled resources for performance-budget-validator skill
|
||||||
|
|
||||||
|
- [ ] performance_budget_best_practices.md: A document outlining best practices for defining and maintaining performance budgets.
|
||||||
|
- [ ] lighthouse_metrics.md: A document detailing the metrics provided by Lighthouse and how they relate to performance budgets.
|
||||||
|
- [ ] budget_schema.json: A JSON schema defining the structure of the performance budget configuration file.
|
||||||
7
skills/performance-budget-validator/scripts/README.md
Normal file
7
skills/performance-budget-validator/scripts/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Scripts
|
||||||
|
|
||||||
|
Bundled resources for performance-budget-validator skill
|
||||||
|
|
||||||
|
- [ ] validate_budget.py: Script to execute the performance budget validation logic, potentially integrating with Lighthouse or other performance testing tools.
|
||||||
|
- [ ] create_budget.py: Script to assist in creating or updating the performance budget configuration file.
|
||||||
|
- [ ] report_violation.py: Script to generate reports or send alerts when performance budgets are violated.
|
||||||
Reference in New Issue
Block a user