openshift-eng/ai-helpers/analyze-regressions

Claude Code and agent skill by openshift-eng/ai-helpers

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Grade component health based on regression triage metrics for OpenShift releases

Install

npx vskill@latest install openshift-eng/ai-helpers/analyze-regressions

SKILL.md

The same SKILL.md was published earlier as openshift-eng/ai-helpers/analyze-regressions.

Analyze Regressions

This skill provides functionality to analyze and grade component health for OpenShift releases based on regression management metrics. It evaluates how well components are managing their test regressions by analyzing triage coverage, triage timeliness, and resolution speed.

When to Use This Skill

Use this skill when you need to:

  • Grade component health for a specific OpenShift release
  • Identify components that need help with regression handling
  • Track triage and resolution efficiency across releases
  • Generate component quality scorecards
  • Produce health reports (text or HTML) for stakeholders

Important Note: Grading is subjective and not meant to be a critique of team performance. This is intended to help identify where help is needed and track progress as we improve our regression response rates.

Prerequisites

  1. Python 3 Installation
  • Check if installed: which python3
  • Python 3.6 or later is required
  • Comes pre-installed on most systems
  1. Network Access
  • The scripts require network access to reach the component health API and release dates API
  • Ensure you can make HTTPS requests
  1. Required Scripts
  • plugins/teams/skills/get-release-dates/get_release_dates.py
  • plugins/teams/skills/list-regressions/list_regressions.py
  • plugins/teams/skills/analyze-regressions/generate_html_report.py (for HTML reports)
  • plugins/teams/skills/analyze-regressions/report_template.html (for HTML reports)

Implementation Steps

Step 1: Parse Arguments

Extract the view name and optional component filter from the command arguments:

  • View format: "X.Y-suffix" (e.g., "4.22-main", "4.17-main")
  • The release is derived from the view name (e.g., "4.22" from "4.22-main")
  • Components (optional): List of component names to filter by

Example argument parsing:

/teams:analyze-regressions 4.17-main
/teams:analyze-regressions 4.21-main --components Monitoring etcd
Step 2: Fetch Release Dates

Derive the release from the view name (e.g., "4.17" from "4.17-main"), then run the get_release_dates.py script to determine the development window:

bash
python3 plugins/teams/skills/get-release-dates/get_release_dates.py \
--release 4.17

Expected output (JSON on stdout):

json
{
"release": "4.17",
"development_start": "2024-05-17T00:00:00Z",
"feature_freeze": "2024-08-26T00:00:00Z",
"code_freeze": "2024-09-30T00:00:00Z",
"ga": "2024-10-29T00:00:00Z"
}

Processing steps:

  1. Parse the JSON output
  2. Extract development_start date - convert to YYYY-MM-DD format
  3. Extract ga date - convert to YYYY-MM-DD format (may be null for in-development releases)
  4. Handle null dates as follows:
  • development_start: Usually always present; if null, omit --start parameter
  • ga: Will be null for in-development releases; if null, omit --end parameter

Date conversion example:

"2024-05-17T00:00:00Z" → "2024-05-17"
null → do not use this parameter
Step 3: Execute List Regressions Script

Run the list_regressions.py script with the appropriate arguments:

bash
python3 plugins/teams/skills/list-regressions/list_regressions.py \
--view 4.17-main \
--start 2024-05-17 \
--end 2024-10-29 \
--short

Parameter rules:

  • --view: Always required (from Step 1). The release is derived from the view name internally.
  • --components: Optional, only if specified by user (from Step 1)
  • --start: Use development_start date from Step 2 (if not null)
  • Always applied for both GA'd and in-development releases
  • Excludes regressions closed before development started (not relevant to this release)
  • --end: Use ga date from Step 2 (only if not null)
  • Only applied for GA'd releases (when GA date is not null)
  • Excludes regressions opened after GA (post-release regressions, often not monitored/triaged)
  • Not applied for in-development releases (when GA date is null)
  • --short: Always include this flag
  • Excludes regression data arrays from response
  • Only includes summary statistics
  • Prevents truncation problems with large datasets

Example for GA'd release (4.17-main):

bash
python3 plugins/teams/skills/list-regressions/list_regressions.py \
--view 4.17-main \
--start 2024-05-17 \
--end 2024-10-29 \
--short

Example for in-development release (4.22-main with null GA):

bash
python3 plugins/teams/skills/list-regressions/list_regressions.py \
--view 4.22-main \
--start 2025-09-02 \
--short

Example with component filter:

bash
python3 plugins/teams/skills/list-regressions/list_regressions.py \
--view 4.21-main \
--components Monitoring etcd \
--start 2025-09-02 \
--short
Step 4: Parse Output Structure

The script outputs JSON to stdout with the following structure:

json
{
"summary": {
"total": 62,
"triaged": 59,
"triage_percentage": 95.2,
"filtered_suspected_infra_regressions": 8,
"time_to_triage_hrs_avg": 68,
"time_to_triage_hrs_max": 240,
"time_to_resolve_hrs_avg": 168,
"time_to_resolve_hrs_max": 480,
"open": {
"total": 2,
"triaged": 1,
"triage_percentage": 50.0,
"time_to_triage_hrs_avg": 48,
"time_to_triage_hrs_max": 48,
"open_hrs_avg": 120,
"open_hrs_max": 200
},
"closed": {
"total": 60,
"triaged": 58,
"triage_percentage": 96.7,
"time_to_triage_hrs_avg": 72,
"time_to_triage_hrs_max": 240,
"time_to_resolve_hrs_avg": 168,
"time_to_resolve_hrs_max": 480
}
},
"components": {
"ComponentName": {
"summary": {
"total": 15,
"triaged": 13,
"triage_percentage": 86.7,
"filtered_suspected_infra_regressions": 0,
"time_to_triage_hrs_avg": 68,
"time_to_triage_hrs_max": 180,
"time_to_resolve_hrs_avg": 156,
"time_to_resolve_hrs_max": 360,
"open": {
"total": 1,
"triaged": 0,
"triage_percentage": 0.0,
"time_to_triage_hrs_avg": null,
"time_to_triage_hrs_max": null,
"open_hrs_avg": 72,
"open_hrs_max": 72
},
"closed": {
"total": 14,
"triaged": 13,
"triage_percentage": 92.9,
"time_to_triage_hrs_avg": 68,
"time_to_triage_hrs_max": 180,
"time_to_resolve_hrs_avg": 156,
"time_to_resolve_hrs_max": 360
}
}
}
}
}

CRITICAL - Use Summary Counts:

  • ALWAYS use `summary.total`, `summary.open.total`, `summary.closed.total` for counts
  • ALWAYS use `components.*.summary.*` for per-component counts
  • Do NOT attempt to count regression arrays (they are excluded with --short flag)
  • This ensures accuracy even with large datasets

Key Metrics to Extract:

From summary object:

  • summary.total - Total regressions
  • summary.triaged - Total triaged regressions
  • summary.triage_percentage - KEY HEALTH METRIC: Percentage triaged
  • summary.filtered_suspected_infra_regressions - Count of filtered infrastructure regressions
  • summary.time_to_triage_hrs_avg - KEY HEALTH METRIC: Average hours to triage
  • summary.time_to_triage_hrs_max - Maximum hours to triage
  • summary.time_to_resolve_hrs_avg - KEY HEALTH METRIC: Average hours to resolve (regression opened to triage resolved)
  • summary.time_to_resolve_hrs_max - Maximum hours to resolve
  • summary.open.total - Open regressions count
  • summary.open.triaged - Open triaged count
  • summary.open.triage_percentage - Open triage percentage
  • summary.closed.total - Closed regressions count
  • summary.closed.triaged - Closed triaged count
  • summary.closed.triage_percentage - Closed triage percentage

From components object:

  • Same fields as summary, but per-component
  • Use components.*.summary.* for all per-component statistics
Step 5: Calculate Health Grades

IMPORTANT - Closed Regression Triage:

  • DO NOT recommend retroactively triaging closed regressions - the tooling does not support this
  • When identifying untriaged regressions that need attention, only consider open regressions: summary.open.total - summary.open.triaged
  • Closed regression triage percentages are provided for historical analysis only, not as actionable items
Overall Health Grade

Calculate grades based on three key metrics:

1. Triage Coverage (summary.triage_percentage):

  • 90-100%: Excellent ✅
  • 70-89%: Good ⚠️
  • 50-69%: Needs Improvement ⚠️
  • <50%: Poor ❌

2. Triage Timeliness (summary.time_to_triage_hrs_avg):

  • <24 hours: Excellent ✅
  • 24-72 hours: Good ⚠️
  • 72-168 hours (1 week): Needs Improvement ⚠️
  • > 168 hours: Poor ❌

3. Resolution Speed (summary.time_to_resolve_hrs_avg):

  • <168 hours (1 week): Excellent ✅
  • 168-336 hours (1-2 weeks): Good ⚠️
  • 336-720 hours (2-4 weeks): Needs Improvement ⚠️
  • > 720 hours (4+ weeks): Poor ❌
Per-Component Health Grades

For each component in components:

  1. Calculate the same three grades using components.*.summary.* fields
  2. Rank components from best to worst health
  3. Highlight components needing attention:
  • Low triage coverage (<50%)
  • Slow triage response (>72 hours average)
  • Slow resolution time (>336 hours / 2 weeks average)
  • High open regression counts
  • High overall regression counts
Step 6: Display Text Report

Present a well-formatted text report with:

Overall Health Grade Section

Display overall statistics from summary:

=== Overall Health Grade for Release 4.17 ===
Development Window: 2024-05-17 to 2024-10-29 (GA'd release)
Total Regressions: 62
Filtered Infrastructure Regressions: 8
Triaged: 59 (95.2%)
Open: 2 (50.0% triaged)
Closed: 60 (96.7% triaged)
Triage Coverage: ✅ Excellent (95.2%)
Triage Timeliness: ⚠️ Good (68 hours average, 240 hours max)
Resolution Speed: ✅ Excellent (168 hours average, 480 hours max)

Important: If the GA date is null (in-development release), note:

Development Window: 2025-09-02 onwards (In Development)
Per-Component Health Scorecard

Display ranked table from components.*.summary:

=== Component Health Scorecard ===
| Component | Triage Coverage | Triage Time | Resolution Time | Open | Grade |
|-----------------|-----------------|-------------|-----------------|------|-------|
| kube-apiserver | 100.0% | 58 hrs | 144 hrs | 1 | ✅ |
| etcd | 95.0% | 84 hrs | 192 hrs | 0 | ✅ |
| Monitoring | 86.7% | 68 hrs | 156 hrs | 1 | ⚠️ |
Components Needing Attention

Highlight specific components with issues:

=== Components Needing Attention ===
Monitoring:
- 1 open untriaged regression (needs triage)
- Triage coverage: 86.7% (below 90%)
Example-Component:
- 5 open untriaged regressions (needs triage)
- Slow triage response: 120 hours average
- High open count: 5 open regressions

CRITICAL: When listing untriaged regressions that need action:

  • Only list OPEN untriaged regressions - these are actionable
  • Do NOT recommend triaging closed regressions - the tooling does not support retroactive triage
  • Calculate actionable untriaged count as: components.*.summary.open.total - components.*.summary.open.triaged
Step 7: Offer HTML Report Generation

After displaying the text report, ask the user if they want an interactive HTML report:

Would you like me to generate an interactive HTML report? (yes/no)

If the user responds affirmatively:

Step 7a: Prepare Data for HTML Report

The HTML report requires data in a specific structure. Transform the JSON data:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
112
Repository forks
305
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/openshift-eng/ai-helpers/analyze-regressions/badge)](https://verified-skill.com/skills/openshift-eng/ai-helpers/analyze-regressions)

Something wrong with this skill or its page? Tell us.