MCP HubMCP Hub
スキル一覧に戻る

validating-performance-budgets

jeremylongshore
更新日 Today
50 閲覧
712
74
712
GitHubで表示
開発aiapi

について

このスキルは、ページ読み込み時間、バンドルサイズ、API応答時間などの指標において、定義されたパフォーマンス予算に対するアプリケーションの性能を検証し、リグレッションを検出します。パフォーマンスの閾値をチェックするためにトリガーされ、LighthouseやWebpackなどのツールを使用して指標を分析できます。パフォーマンスの問題を早期に特定し、アプリケーションの最適な性能を維持するためにご利用ください。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus
Git クローン代替
git clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/validating-performance-budgets

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

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.

Prerequisites

  • Performance budget definitions in {baseDir}/performance-budgets.json
  • Access to performance testing tools (Lighthouse, WebPageTest)
  • Build output directory for bundle analysis
  • Historical performance metrics for comparison

Instructions

  1. Load performance budget configuration
  2. Collect current performance metrics (load time, bundle size, API latency)
  3. Compare metrics against defined budget thresholds
  4. Identify budget violations and severity
  5. Generate detailed violation report
  6. Provide remediation recommendations

Output

  • Performance budget validation report
  • List of metrics exceeding budget thresholds
  • Comparison with previous measurements
  • Detailed breakdown by metric category
  • Actionable recommendations for fixes

Error Handling

If budget validation fails:

  • Verify budget configuration file exists
  • Check performance testing tool availability
  • Validate metric collection permissions
  • Ensure network access to test endpoints
  • Review budget threshold definitions

Resources

  • Performance budget best practices
  • Lighthouse performance scoring guide
  • Bundle size optimization techniques
  • CI/CD integration patterns for performance testing

GitHub リポジトリ

jeremylongshore/claude-code-plugins-plus
パス: plugins/performance/performance-budget-validator/skills/performance-budget-validator
aiautomationclaude-codedevopsmarketplacemcp

関連スキル

creating-opencode-plugins

メタ

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

スキルを見る

evaluating-llms-harness

テスト

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

スキルを見る

sglang

メタ

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

スキルを見る

polymarket

メタ

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

スキルを見る