首页/ AI 技能 / @skilllib/skill-2014279411112030209
Skill站外收录 @skilllib/skill-2014279411112030209

skill-adapter

自动检测应用性能是否超出预设阈值,涵盖页面加载时间、资源包体积、接口响应时长及 Lighthouse 评分等关键指标,及时发现性能退化问题,支持在 CI/CD 流程中阻断不达标构建,保障线上用户体验稳定性。

0.0 (0) 152 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

## 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.

评论 0

还没有评论,来抢沙发。