regression-metrics
Track and analyze regression statistics, trends, hotspots, and health indicators across test suites
What this skill does
# regression-metrics
Track and analyze regression statistics, trends, and health indicators.
## Triggers
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
- "regression KPIs" → regression metric dashboard
- "flakiness score" → test stability metrics
## Purpose
This skill provides regression analytics by:
- Tracking regression occurrence rates
- Measuring time-to-detection and time-to-fix
- Analyzing regression patterns and hotspots
- Identifying high-risk areas
- Trending regression metrics over time
- Generating regression health dashboards
## Behavior
When triggered, this skill:
1. **Collects regression data**:
- Parse regression test results
- Load historical regression records
- Gather bisect findings
- Import baseline comparisons
- Aggregate issue tracker data
2. **Calculates key metrics**:
- Regression rate (per sprint/release)
- Mean time to detect (MTTD)
- Mean time to fix (MTTF)
- Regression recurrence rate
- Escape rate (production regressions)
3. **Identifies patterns**:
- Common root causes
- High-regression components
- Time-of-day/sprint patterns
- Correlation with code changes
4. **Analyzes trends**:
- Regression rate over time
- Detection speed improvements
- Fix time trends
- Quality trajectory
5. **Generates visualizations**:
- Regression heatmaps
- Trend charts
- Burn-down tracking
- Risk matrices
6. **Produces actionable insights**:
- Prioritize high-risk areas
- Recommend test improvements
- Suggest process changes
- Set quality goals
## Key Metrics
### Regression Rate
```yaml
regression_rate:
description: Number of regressions per time period
formula: regressions_detected / time_period
units: regressions per sprint/week/release
targets:
excellent: "< 2 per sprint"
good: "2-5 per sprint"
acceptable: "5-10 per sprint"
poor: "> 10 per sprint"
calculation:
count: new regressions introduced
period: sprint, release, or month
exclude: known issues, flaky tests
```
### Mean Time to Detect (MTTD)
```yaml
mttd:
description: Average time from regression introduction to detection
formula: sum(detection_time) / regression_count
units: hours or days
targets:
excellent: "< 4 hours"
good: "< 24 hours"
acceptable: "< 7 days"
poor: "> 7 days"
calculation:
detection_time: commit_time_to_failure_report
includes: automated and manual detection
```
### Mean Time to Fix (MTTF)
```yaml
mttf:
description: Average time from detection to fix deployment
formula: sum(fix_time) / regression_count
units: hours or days
targets:
critical: "< 4 hours"
high: "< 24 hours"
medium: "< 7 days"
low: "< 30 days"
calculation:
fix_time: detection_to_fix_deployed
severity_weighted: true
```
### Escape Rate
```yaml
escape_rate:
description: Percentage of regressions reaching production
formula: (production_regressions / total_regressions) * 100
units: percentage
targets:
excellent: "< 5%"
good: "5-10%"
acceptable: "10-20%"
poor: "> 20%"
calculation:
production_regressions: found by users/monitoring
total_regressions: all detected including pre-release
```
### Recurrence Rate
```yaml
recurrence_rate:
description: Percentage of regressions that recur after fix
formula: (recurring_regressions / total_fixed) * 100
units: percentage
targets:
excellent: "< 5%"
good: "5-10%"
acceptable: "10-15%"
poor: "> 15%"
indicates:
- insufficient test coverage
- lack of regression tests
- poor fix quality
```
## Metrics Dashboard
```markdown
# Regression Metrics Dashboard
**Period**: Last 30 Days (2025-12-29 to 2026-01-28)
**Project**: User Service
## Executive Summary
| Metric | Current | Target | Status | Trend |
|--------|---------|--------|--------|-------|
| Regression Rate | 4.2/sprint | < 5 | ✅ Good | ↓ Improving |
| MTTD | 8.5 hours | < 24h | ✅ Good | ↓ Improving |
| MTTF | 18.7 hours | < 24h | ⚠️ Close | → Stable |
| Escape Rate | 12% | < 10% | ⚠️ Above Target | ↑ Worsening |
| Recurrence Rate | 7% | < 10% | ✅ Good | → Stable |
**Overall Health**: ⚠️ Good with Concerns
**Priority Focus**: Reduce production escapes
## Regression Trend (Last 6 Sprints)
```
Sprint 8: ██████████ 10 regressions
Sprint 9: ████████ 8 regressions
Sprint 10: ██████ 6 regressions
Sprint 11: █████ 5 regressions
Sprint 12: ████ 4 regressions
Sprint 13: ████ 4 regressions
↓ -60% improvement since Sprint 8
```
**Analysis**: Significant improvement trend. Stabilizing around 4-5 per sprint.
## Detection Speed Trend
```
Week 1: 24h ████████████████████████
Week 2: 18h ██████████████████
Week 3: 12h ████████████
Week 4: 9h █████████
Week 5: 8h ████████
↓ -67% improvement in 5 weeks
```
**Analysis**: Automation improvements paying off. Most regressions now caught within hours.
## Component Heatmap
Regressions by component (last 30 days):
| Component | Regressions | Change | Risk Level |
|-----------|-------------|--------|------------|
| src/auth/ | 🔴🔴🔴 3 | +1 | High |
| src/api/ | 🟡🟡 2 | 0 | Medium |
| src/db/ | 🟡🟡 2 | -1 | Medium |
| src/user/ | 🟡 1 | -2 | Low |
| src/utils/ | 🟢 0 | 0 | Low |
**Hotspot Alert**: `src/auth/` showing increased regression rate
## Root Cause Analysis
| Root Cause | Count | % | Trend |
|------------|-------|---|-------|
| Missing test coverage | 5 | 42% | → |
| Integration not tested | 3 | 25% | ↑ |
| Edge case not considered | 2 | 17% | ↓ |
| Flaky test masking issue | 1 | 8% | → |
| Breaking dependency change | 1 | 8% | → |
**Insight**: 67% of regressions preventable with better coverage/integration testing
## Severity Distribution
| Severity | Count | MTTF | Status |
|----------|-------|------|--------|
| Critical | 1 | 3.2h | ✅ Fast response |
| High | 4 | 12.5h | ✅ Within target |
| Medium | 6 | 28.4h | ⚠️ Above target |
| Low | 1 | 72h | ✅ Acceptable |
## Time-to-Detection Analysis
```
Detection Method:
Automated Tests: 75% (avg 4.2h detection)
Manual Testing: 17% (avg 32h detection)
Production: 8% (avg 96h detection)
```
**Insight**: Automation catching most issues early. Need to reduce production escapes.
## Time-to-Fix Analysis
```
Fix Duration by Severity:
Critical: ▓▓▓ 3.2h (target: 4h) ✅
High: ▓▓▓▓▓▓ 12.5h (target: 24h) ✅
Medium: ▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 28.4h (target: 24h) ⚠️
Low: ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 72h ✅
```
**Issue**: Medium-severity regressions taking slightly longer than target
## Regression Recurrence
| Original Issue | Recurred | Reason |
|----------------|----------|--------|
| AUTH-101 | ✅ Yes | Missing regression test |
| API-205 | ❌ No | Regression test added |
| DB-089 | ❌ No | Regression test added |
| USER-145 | ❌ No | Regression test added |
**Recurrence Rate**: 25% (1 of 4) - One regression lacked test
## Production Escapes
Regressions that reached production:
| Issue | Severity | Detection | Impact | MTTD |
|-------|----------|-----------|--------|------|
| AUTH-203 | High | User report | 500 users | 12h |
**Analysis**: 1 escape this period. Auth module regression bypassed staging tests.
## Recommendations
### High Priority
1. **Add integration tests for auth flows**
- Reason: 3 regressions in auth, 1 production escape
- Impact: Reduce auth regressions by ~60%
- Effort: 2 days
2. **Improve staging test coverage**
- Reason: Production escape indicates gap
- Impact: Reduce escape rate to <5%
- Effort: 1 week
3. **Reduce medium-severity MTTF**
- Reason: 28.4h vs 24h target
- Impact: Faster user impact resolution
- Effort: Process improvement
### Medium Priority
4. **Add regression tests for all fixes**
- Reason: 25% recurrence rate on fixes without tests
- Impact: Zero recurrence for tested fixes
- Effort: Ongoing discipline
5. **Monitor auth moRelated in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.