aj-geddes/useful-ai-prompts7 files

Performance Regression Debugging

>

Specification
Skill ID
aj-geddes/useful-ai-prompts/performance-regression-debugging
Publisher
aj-geddes
Repository
useful-ai-prompts
Installs
0
Files
7
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

aj-geddes/useful-ai-prompts/performance-regression-debuggingInstalls these files
  • SKILL.md
  • references/detection-measurement.md
  • references/fixing-verification.md
  • references/prevention-measures.md
  • references/root-cause-identification.md
  • scripts/scaffold-tests.sh
  • templates/test-template.js

What this skill tells the agent

Performance Regression Debugging

Table of Contents

  • Overview
  • When to Use
  • Quick Start
  • Reference Guides
  • Best Practices

Overview

Performance regressions occur when code changes degrade application performance. Detection and quick resolution are critical.

When to Use

  • After deployment performance degrades
  • Metrics show negative trend
  • User complaints about slowness
  • A/B testing shows variance
  • Regular performance monitoring

Quick Start

Minimal working example:

// Before: 500ms response time
// After: 1000ms response time (2x slower = regression)

// Capture baseline metrics
const baseline = {
  responseTime: 500, // ms
  timeToInteractive: 2000, // ms
  largestContentfulPaint: 1500, // ms
  memoryUsage: 50, // MB
  bundleSize: 150, // KB gzipped
};

// Monitor after change
const current = {
  responseTime: 1000,
  timeToInteractive: 4000,
  largestContentfulPaint: 3000,
  memoryUsage: 150,
  bundleSize: 200,
};

// Calculate regression
const regressions = {};
for (let metric in baseline) {
  const change = (current[metric] - baseline[metric]) / baseline[metric];
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Detection & MeasurementDetection & Measurement
Root Cause IdentificationRoot Cause Identification
Fixing & VerificationFixing & Verification
Prevention MeasuresPrevention Measures

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

Use this skill in a project

Open any RiverX project, search the Skills panel for aj-geddes/useful-ai-prompts/performance-regression-debugging, and install it in one click.

Use this skill