[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAHT94PCXCGMK6W9XT90GX":3,"skill-same:01M6CAHT94PCXCGMK6W9XT90GX":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6CAHT94PCXCGMK6W9XT90GX","regression-metrics","回归测试指标分析","Track and analyze regression statistics, trends, hotspots, and health indicators across test suites","跨测试套件跟踪和分析回归统计数据、趋势、热点区域和健康度指标。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsdlc\u002Fskills\u002Fregression-metrics\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41],"metrics","regression","regression metrics","test","indicators","health","analyze","across","statistics","trends","track","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: regression-metrics\nplatforms: [all]\ndescription: Track and analyze regression statistics, trends, hotspots, and health indicators across test suites\n\n---\n\n# regression-metrics\n\nTrack and analyze regression statistics, trends, and health indicators.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"regression KPIs\" → regression metric dashboard\n- \"flakiness score\" → test stability metrics\n\n## Purpose\n\nThis skill provides regression analytics by:\n- Tracking regression occurrence rates\n- Measuring time-to-detection and time-to-fix\n- Analyzing regression patterns and hotspots\n- Identifying high-risk areas\n- Trending regression metrics over time\n- Generating regression health dashboards\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Collects regression data**:\n   - Parse regression test results\n   - Load historical regression records\n   - Gather bisect findings\n   - Import baseline comparisons\n   - Aggregate issue tracker data\n\n2. **Calculates key metrics**:\n   - Regression rate (per sprint\u002Frelease)\n   - Mean time to detect (MTTD)\n   - Mean time to fix (MTTF)\n   - Regression recurrence rate\n   - Escape rate (production regressions)\n\n3. **Identifies patterns**:\n   - Common root causes\n   - High-regression components\n   - Time-of-day\u002Fsprint patterns\n   - Correlation with code changes\n\n4. **Analyzes trends**:\n   - Regression rate over time\n   - Detection speed improvements\n   - Fix time trends\n   - Quality trajectory\n\n5. **Generates visualizations**:\n   - Regression heatmaps\n   - Trend charts\n   - Burn-down tracking\n   - Risk matrices\n\n6. **Produces actionable insights**:\n   - Prioritize high-risk areas\n   - Recommend test improvements\n   - Suggest process changes\n   - Set quality goals\n\n## Key Metrics\n\n### Regression Rate\n\n```yaml\nregression_rate:\n  description: Number of regressions per time period\n  formula: regressions_detected \u002F time_period\n  units: regressions per sprint\u002Fweek\u002Frelease\n\n  targets:\n    excellent: \"\u003C 2 per sprint\"\n    good: \"2-5 per sprint\"\n    acceptable: \"5-10 per sprint\"\n    poor: \"> 10 per sprint\"\n\n  calculation:\n    count: new regressions introduced\n    period: sprint, release, or month\n    exclude: known issues, flaky tests\n```\n\n### Mean Time to Detect (MTTD)\n\n```yaml\nmttd:\n  description: Average time from regression introduction to detection\n  formula: sum(detection_time) \u002F regression_count\n  units: hours or days\n\n  targets:\n    excellent: \"\u003C 4 hours\"\n    good: \"\u003C 24 hours\"\n    acceptable: \"\u003C 7 days\"\n    poor: \"> 7 days\"\n\n  calculation:\n    detection_time: commit_time_to_failure_report\n    includes: automated and manual detection\n```\n\n### Mean Time to Fix (MTTF)\n\n```yaml\nmttf:\n  description: Average time from detection to fix deployment\n  formula: sum(fix_time) \u002F regression_count\n  units: hours or days\n\n  targets:\n    critical: \"\u003C 4 hours\"\n    high: \"\u003C 24 hours\"\n    medium: \"\u003C 7 days\"\n    low: \"\u003C 30 days\"\n\n  calculation:\n    fix_time: detection_to_fix_deployed\n    severity_weighted: true\n```\n\n### Escape Rate\n\n```yaml\nescape_rate:\n  description: Percentage of regressions reaching production\n  formula: (production_regressions \u002F total_regressions) * 100\n  units: percentage\n\n  targets:\n    excellent: \"\u003C 5%\"\n    good: \"5-10%\"\n    acceptable: \"10-20%\"\n    poor: \"> 20%\"\n\n  calculation:\n    production_regressions: found by users\u002Fmonitoring\n    total_regressions: all detected including pre-release\n```\n\n### Recurrence Rate\n\n```yaml\nrecurrence_rate:\n  description: Percentage of regressions that recur after fix\n  formula: (recurring_regressions \u002F total_fixed) * 100\n  units: percentage\n\n  targets:\n    excellent: \"\u003C 5%\"\n    good: \"5-10%\"\n    acceptable: \"10-15%\"\n    poor: \"> 15%\"\n\n  indicates:\n    - insufficient test coverage\n    - lack of regression tests\n    - poor fix quality\n```\n\n## Metrics Dashboard\n\n```markdown\n# Regression Metrics Dashboard\n\n**Period**: Last 30 Days (2025-12-29 to 2026-01-28)\n**Project**: User Service\n\n## Executive Summary\n\n| Metric | Current | Target | Status | Trend |\n|--------|---------|--------|--------|-------|\n| Regression Rate | 4.2\u002Fsprint | \u003C 5 | ✅ Good | ↓ Improving |\n| MTTD | 8.5 hours | \u003C 24h | ✅ Good | ↓ Improving |\n| MTTF | 18.7 hours | \u003C 24h | ⚠️ Close | → Stable |\n| Escape Rate | 12% | \u003C 10% | ⚠️ Above Target | ↑ Worsening |\n| Recurrence Rate | 7% | \u003C 10% | ✅ Good | → Stable |\n\n**Overall Health**: ⚠️ Good with Concerns\n**Priority Focus**: Reduce production escapes\n\n## Regression Trend (Last 6 Sprints)\n\n```\nSprint 8:  ██████████ 10 regressions\nSprint 9:  ████████   8 regressions\nSprint 10: ██████     6 regressions\nSprint 11: █████      5 regressions\nSprint 12: ████       4 regressions\nSprint 13: ████       4 regressions\n           ↓ -60% improvement since Sprint 8\n```\n\n**Analysis**: Significant improvement trend. Stabilizing around 4-5 per sprint.\n\n## Detection Speed Trend\n\n```\nWeek 1: 24h ████████████████████████\nWeek 2: 18h ██████████████████\nWeek 3: 12h ████████████\nWeek 4:  9h █████████\nWeek 5:  8h ████████\n        ↓ -67% improvement in 5 weeks\n```\n\n**Analysis**: Automation improvements paying off. Most regressions now caught within hours.\n\n## Component Heatmap\n\nRegressions by component (last 30 days):\n\n| Component | Regressions | Change | Risk Level |\n|-----------|-------------|--------|------------|\n| src\u002Fauth\u002F | ??? 3 | +1 | High |\n| src\u002Fapi\u002F | ?? 2 | 0 | Medium |\n| src\u002Fdb\u002F | ?? 2 | -1 | Medium |\n| src\u002Fuser\u002F | ? 1 | -2 | Low |\n| src\u002Futils\u002F | ? 0 | 0 | Low |\n\n**Hotspot Alert**: `src\u002Fauth\u002F` showing increased regression rate\n\n## Root Cause Analysis\n\n| Root Cause | Count | % | Trend |\n|------------|-------|---|-------|\n| Missing test coverage | 5 | 42% | → |\n| Integration not tested | 3 | 25% | ↑ |\n| Edge case not considered | 2 | 17% | ↓ |\n| Flaky test masking issue | 1 | 8% | → |\n| Breaking dependency change | 1 | 8% | → |\n\n**Insight**: 67% of regressions preventable with better coverage\u002Fintegration testing\n\n## Severity Distribution\n\n| Severity | Count | MTTF | Status |\n|----------|-------|------|--------|\n| Critical | 1 | 3.2h | ✅ Fast response |\n| High | 4 | 12.5h | ✅ Within target |\n| Medium | 6 | 28.4h | ⚠️ Above target |\n| Low | 1 | 72h | ✅ Acceptable |\n\n## Time-to-Detection Analysis\n\n```\nDetection Method:\n  Automated Tests: 75% (avg 4.2h detection)\n  Manual Testing:  17% (avg 32h detection)\n  Production:       8% (avg 96h detection)\n```\n\n**Insight**: Automation catching most issues early. Need to reduce production escapes.\n\n## Time-to-Fix Analysis\n\n```\nFix Duration by Severity:\n  Critical: ▓▓▓ 3.2h (target: 4h) ✅\n  High:     ▓▓▓▓▓▓ 12.5h (target: 24h) ✅\n  Medium:   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 28.4h (target: 24h) ⚠️\n  Low:      ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 72h ✅\n```\n\n**Issue**: Medium-severity regressions taking slightly longer than target\n\n## Regression Recurrence\n\n| Original Issue | Recurred | Reason |\n|----------------|----------|--------|\n| AUTH-101 | ✅ Yes | Missing regression test |\n| API-205 | ❌ No | Regression test added |\n| DB-089 | ❌ No | Regression test added |\n| USER-145 | ❌ No | Regression test added |\n\n**Recurrence Rate**: 25% (1 of 4) - One regression lacked test\n\n## Production Escapes\n\nRegressions that reached production:\n\n| Issue | Severity | Detection | Impact | MTTD |\n|-------|----------|-----------|--------|------|\n| AUTH-203 | High | User report | 500 users | 12h |\n\n**Analysis**: 1 escape this period. Auth module regression bypassed staging tests.\n\n## Recommendations\n\n### High Priority\n\n1. **Add integration tests for auth flows**\n   - Reason: 3 regressions in auth, 1 production escape\n   - Impact: Reduce auth regressions by ~60%\n   - Effort: 2 days\n\n2. **Improve staging test coverage**\n   - Reason: Production escape indicates gap\n   - Impact: Reduce escape rate to \u003C5%\n   - Effort: 1 week\n\n3. **Reduce medium-severity MTTF**\n   - Reason: 28.4h vs 24h target\n   - Impact: Faster user impact resolution\n   - Effort: Process improvement\n\n### Medium Priority\n\n4. **Add regression tests for all fixes**\n   - Reason: 25% recurrence rate on fixes without tests\n   - Impact: Zero recurrence for tested fixes\n   - Effort: Ongoing discipline\n\n5. **Monitor auth module closely**\n   - Reason: Highest regression count\n   - Impact: Early detection of issues\n   - Effort: Weekly review\n\n## Historical Comparison\n\n| Period | Reg Rate | MTTD | MTTF | Escape % |\n|--------|----------|------|------|----------|\n| 3 months ago | 8.2 | 36h | 48h | 18% |\n| 2 months ago | 6.5 | 24h | 36h | 15% |\n| 1 month ago | 5.1 | 12h | 24h | 13% |\n| Current | 4.2 | 8.5h | 18.7h | 12% |\n\n**Trend**: All metrics improving. Regression rate down 49%, detection 76% faster.\n\n## Goals for Next Period\n\n| Metric | Current | Goal | Strategy |\n|--------|---------|------|----------|\n| Regression Rate | 4.2 | \u003C 4 | Improve auth testing |\n| MTTD | 8.5h | \u003C 8h | Add more automation |\n| MTTF | 18.7h | \u003C 18h | Faster review process |\n| Escape Rate | 12% | \u003C 10% | Better staging tests |\n\n## Data Sources\n\n- Regression tests: `.aiwg\u002Ftesting\u002Fregression-results\u002F`\n- Bisect reports: `.aiwg\u002Ftesting\u002Fregression-bisect-*\u002F`\n- Baseline comparisons: `.aiwg\u002Ftesting\u002Fbaseline-comparisons\u002F`\n- Issue tracker: GitHub Issues (label: regression)\n- CI\u002FCD logs: GitHub Actions\n```\n\n## Usage Examples\n\n### View Current Metrics\n\n```\nUser: \"Show regression metrics\"\n\nSkill executes:\n1. Aggregate data from last 30 days\n2. Calculate key metrics\n3. Generate dashboard\n4. Identify trends\n\nOutput:\n\"Regression Metrics (Last 30 Days)\n\nOverall Health: ⚠️ Good with Concerns\n\nKey Metrics:\n- Regression Rate: 4.2\u002Fsprint ✅ (target \u003C 5)\n- MTTD: 8.5 hours ✅ (target \u003C 24h)\n- MTTF: 18.7 hours ⚠️ (target \u003C 24h)\n- Escape Rate: 12% ⚠️ (target \u003C 10%)\n\nHotspots:\n? src\u002Fauth\u002F - 3 regressions this period\n? src\u002Fapi\u002F - 2 regressions\n\nTop Recommendation: Add integration tests for auth\n\nFull dashboard: .aiwg\u002Ftesting\u002Fregression-metrics-dashboard.md\"\n```\n\n### Regression Trends\n\n```\nUser: \"Regression trends over time\"\n\nSkill analyzes:\n- Last 6 sprints of data\n- Calculate trend direction\n- Identify patterns\n\nOutput:\n\"Regression Trends (Last 6 Sprints)\n\nSprint 8:  10 regressions\nSprint 9:   8 regressions (-20%)\nSprint 10:  6 regressions (-25%)\nSprint 11:  5 regressions (-17%)\nSprint 12:  4 regressions (-20%)\nSprint 13:  4 regressions (stable)\n\nOverall: ↓ -60% improvement\nStatus: Stabilizing around 4-5\u002Fsprint\n\nMTTD: 36h → 8.5h (-76%)\nMTTF: 48h → 18.7h (-61%)\n\nConclusion: Strong improvement trend. Approaching best-in-class levels.\"\n```\n\n### Component Heatmap\n\n```\nUser: \"Which components have most regressions?\"\n\nSkill generates:\n\"Component Regression Heatmap (Last 30 Days)\n\nHigh Risk:\n? src\u002Fauth\u002F - 3 regressions (+1 from last period)\n   Most common: Missing integration tests\n\nMedium Risk:\n? src\u002Fapi\u002F - 2 regressions (no change)\n? src\u002Fdb\u002F - 2 regressions (-1 from last period)\n\nLow Risk:\n? src\u002Fuser\u002F - 1 regression (-2 from last period)\n? src\u002Futils\u002F - 0 regressions\n\nRecommendation: Focus testing efforts on auth module\"\n```\n\n## Integration\n\nThis skill uses:\n- `regression-bisect`: Import bisect findings\n- `regression-baseline`: Analyze baseline drift patterns\n- `test-coverage`: Correlate coverage with regression rates\n- `project-awareness`: Detect sprint\u002Frelease boundaries\n\n## Agent Orchestration\n\n```yaml\nagents:\n  analysis:\n    agent: metrics-analyst\n    focus: Statistical analysis and trends\n\n  visualization:\n    agent: technical-writer\n    focus: Dashboard and report generation\n\n  recommendations:\n    agent: test-architect\n    focus: Process improvement suggestions\n```\n\n## Configuration\n\n### Metric Collection\n\n```yaml\ncollection_config:\n  data_sources:\n    - regression_test_results\n    - bisect_reports\n    - baseline_comparisons\n    - issue_tracker\n    - ci_cd_logs\n\n  update_frequency: daily\n  retention: 90 days\n  aggregation: sprint, week, month\n```\n\n### Thresholds\n\n```yaml\nthresholds:\n  regression_rate:\n    excellent: 2\n    good: 5\n    acceptable: 10\n\n  mttd_hours:\n    excellent: 4\n    good: 24\n    acceptable: 168  # 7 days\n\n  mttf_hours:\n    critical: 4\n    high: 24\n    medium: 168  # 7 days\n\n  escape_rate_percent:\n    excellent: 5\n    good: 10\n    acceptable: 20\n```\n\n### Alert Rules\n\n```yaml\nalerts:\n  regression_spike:\n    condition: regression_rate > 10\n    severity: high\n    notification: team-channel\n\n  escape_rate_high:\n    condition: escape_rate > 20%\n    severity: critical\n    notification: leadership\n\n  mttd_degrading:\n    condition: mttd_trend_increase > 50%\n    severity: medium\n    notification: test-team\n```\n\n## Output Locations\n\n- Dashboards: `.aiwg\u002Ftesting\u002Fregression-metrics-dashboard.md`\n- Trends: `.aiwg\u002Ftesting\u002Fregression-trends.json`\n- Heatmaps: `.aiwg\u002Ftesting\u002Fregression-heatmap.json`\n- Historical data: `.aiwg\u002Ftesting\u002Fmetrics-history\u002F`\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fschemas\u002Fmetrics\u002Fregression-metrics-schema.yaml\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Fmetrics-analyst.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fmetrics-dashboard.md\n","# regression-metrics\n\nTrack and analyze regression statistics, trends, and health indicators.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"regression KPIs\" → regression metric dashboard\n- \"flakiness score\" → test stability metrics\n\n## Purpose\n\nThis skill provides regression analytics by:\n- Tracking regression occurrence rates\n- Measuring time-to-detection and time-to-fix\n- Analyzing regression patterns and hotspots\n- Identifying high-risk areas\n- Trending regression metrics over time\n- Generating regression health dashboards\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Collects regression data**:\n   - Parse regression test results\n   - Load historical regression records\n   - Gather bisect findings\n   - Import baseline comparisons\n   - Aggregate issue tracker data\n\n2. **Calculates key metrics**:\n   - Regression rate (per sprint\u002Frelease)\n   - Mean time to detect (MTTD)\n   - Mean time to fix (MTTF)\n   - Regression recurrence rate\n   - Escape rate (production regressions)\n\n3. **Identifies patterns**:\n   - Common root causes\n   - High-regression components\n   - Time-of-day\u002Fsprint patterns\n   - Correlation with code changes\n\n4. **Analyzes trends**:\n   - Regression rate over time\n   - Detection speed improvements\n   - Fix time trends\n   - Quality trajectory\n\n5. **Generates visualizations**:\n   - Regression heatmaps\n   - Trend charts\n   - Burn-down tracking\n   - Risk matrices\n\n6. **Produces actionable insights**:\n   - Prioritize high-risk areas\n   - Recommend test improvements\n   - Suggest process changes\n   - Set quality goals\n\n## Key Metrics\n\n### Regression Rate\n\n```yaml\nregression_rate:\n  description: Number of regressions per time period\n  formula: regressions_detected \u002F time_period\n  units: regressions per sprint\u002Fweek\u002Frelease\n\n  targets:\n    excellent: \"\u003C 2 per sprint\"\n    good: \"2-5 per sprint\"\n    acceptable: \"5-10 per sprint\"\n    poor: \"> 10 per sprint\"\n\n  calculation:\n    count: new regressions introduced\n    period: sprint, release, or month\n    exclude: known issues, flaky tests\n```\n\n### Mean Time to Detect (MTTD)\n\n```yaml\nmttd:\n  description: Average time from regression introduction to detection\n  formula: sum(detection_time) \u002F regression_count\n  units: hours or days\n\n  targets:\n    excellent: \"\u003C 4 hours\"\n    good: \"\u003C 24 hours\"\n    acceptable: \"\u003C 7 days\"\n    poor: \"> 7 days\"\n\n  calculation:\n    detection_time: commit_time_to_failure_report\n    includes: automated and manual detection\n```\n\n### Mean Time to Fix (MTTF)\n\n```yaml\nmttf:\n  description: Average time from detection to fix deployment\n  formula: sum(fix_time) \u002F regression_count\n  units: hours or days\n\n  targets:\n    critical: \"\u003C 4 hours\"\n    high: \"\u003C 24 hours\"\n    medium: \"\u003C 7 days\"\n    low: \"\u003C 30 days\"\n\n  calculation:\n    fix_time: detection_to_fix_deployed\n    severity_weighted: true\n```\n\n### Escape Rate\n\n```yaml\nescape_rate:\n  description: Percentage of regressions reaching production\n  formula: (production_regressions \u002F total_regressions) * 100\n  units: percentage\n\n  targets:\n    excellent: \"\u003C 5%\"\n    good: \"5-10%\"\n    acceptable: \"10-20%\"\n    poor: \"> 20%\"\n\n  calculation:\n    production_regressions: found by users\u002Fmonitoring\n    total_regressions: all detected including pre-release\n```\n\n### Recurrence Rate\n\n```yaml\nrecurrence_rate:\n  description: Percentage of regressions that recur after fix\n  formula: (recurring_regressions \u002F total_fixed) * 100\n  units: percentage\n\n  targets:\n    excellent: \"\u003C 5%\"\n    good: \"5-10%\"\n    acceptable: \"10-15%\"\n    poor: \"> 15%\"\n\n  indicates:\n    - insufficient test coverage\n    - lack of regression tests\n    - poor fix quality\n```\n\n## Metrics Dashboard\n\n```markdown\n# Regression Metrics Dashboard\n\n**Period**: Last 30 Days (2025-12-29 to 2026-01-28)\n**Project**: User Service\n\n## Executive Summary\n\n| Metric | Current | Target | Status | Trend |\n|--------|---------|--------|--------|-------|\n| Regression Rate | 4.2\u002Fsprint | \u003C 5 | ✅ Good | ↓ Improving |\n| MTTD | 8.5 hours | \u003C 24h | ✅ Good | ↓ Improving |\n| MTTF | 18.7 hours | \u003C 24h | ⚠️ Close | → Stable |\n| Escape Rate | 12% | \u003C 10% | ⚠️ Above Target | ↑ Worsening |\n| Recurrence Rate | 7% | \u003C 10% | ✅ Good | → Stable |\n\n**Overall Health**: ⚠️ Good with Concerns\n**Priority Focus**: Reduce production escapes\n\n## Regression Trend (Last 6 Sprints)\n\n```\nSprint 8:  ██████████ 10 regressions\nSprint 9:  ████████   8 regressions\nSprint 10: ██████     6 regressions\nSprint 11: █████      5 regressions\nSprint 12: ████       4 regressions\nSprint 13: ████       4 regressions\n           ↓ -60% improvement since Sprint 8\n```\n\n**Analysis**: Significant improvement trend. Stabilizing around 4-5 per sprint.\n\n## Detection Speed Trend\n\n```\nWeek 1: 24h ████████████████████████\nWeek 2: 18h ██████████████████\nWeek 3: 12h ████████████\nWeek 4:  9h █████████\nWeek 5:  8h ████████\n        ↓ -67% improvement in 5 weeks\n```\n\n**Analysis**: Automation improvements paying off. Most regressions now caught within hours.\n\n## Component Heatmap\n\nRegressions by component (last 30 days):\n\n| Component | Regressions | Change | Risk Level |\n|-----------|-------------|--------|------------|\n| src\u002Fauth\u002F | ??? 3 | +1 | High |\n| src\u002Fapi\u002F | ?? 2 | 0 | Medium |\n| src\u002Fdb\u002F | ?? 2 | -1 | Medium |\n| src\u002Fuser\u002F | ? 1 | -2 | Low |\n| src\u002Futils\u002F | ? 0 | 0 | Low |\n\n**Hotspot Alert**: `src\u002Fauth\u002F` showing increased regression rate\n\n## Root Cause Analysis\n\n| Root Cause | Count | % | Trend |\n|------------|-------|---|-------|\n| Missing test coverage | 5 | 42% | → |\n| Integration not tested | 3 | 25% | ↑ |\n| Edge case not considered | 2 | 17% | ↓ |\n| Flaky test masking issue | 1 | 8% | → |\n| Breaking dependency change | 1 | 8% | → |\n\n**Insight**: 67% of regressions preventable with better coverage\u002Fintegration testing\n\n## Severity Distribution\n\n| Severity | Count | MTTF | Status |\n|----------|-------|------|--------|\n| Critical | 1 | 3.2h | ✅ Fast response |\n| High | 4 | 12.5h | ✅ Within target |\n| Medium | 6 | 28.4h | ⚠️ Above target |\n| Low | 1 | 72h | ✅ Acceptable |\n\n## Time-to-Detection Analysis\n\n```\nDetection Method:\n  Automated Tests: 75% (avg 4.2h detection)\n  Manual Testing:  17% (avg 32h detection)\n  Production:       8% (avg 96h detection)\n```\n\n**Insight**: Automation catching most issues early. Need to reduce production escapes.\n\n## Time-to-Fix Analysis\n\n```\nFix Duration by Severity:\n  Critical: ▓▓▓ 3.2h (target: 4h) ✅\n  High:     ▓▓▓▓▓▓ 12.5h (target: 24h) ✅\n  Medium:   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 28.4h (target: 24h) ⚠️\n  Low:      ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 72h ✅\n```\n\n**Issue**: Medium-severity regressions taking slightly longer than target\n\n## Regression Recurrence\n\n| Original Issue | Recurred | Reason |\n|----------------|----------|--------|\n| AUTH-101 | ✅ Yes | Missing regression test |\n| API-205 | ❌ No | Regression test added |\n| DB-089 | ❌ No | Regression test added |\n| USER-145 | ❌ No | Regression test added |\n\n**Recurrence Rate**: 25% (1 of 4) - One regression lacked test\n\n## Production Escapes\n\nRegressions that reached production:\n\n| Issue | Severity | Detection | Impact | MTTD |\n|-------|----------|-----------|--------|------|\n| AUTH-203 | High | User report | 500 users | 12h |\n\n**Analysis**: 1 escape this period. Auth module regression bypassed staging tests.\n\n## Recommendations\n\n### High Priority\n\n1. **Add integration tests for auth flows**\n   - Reason: 3 regressions in auth, 1 production escape\n   - Impact: Reduce auth regressions by ~60%\n   - Effort: 2 days\n\n2. **Improve staging test coverage**\n   - Reason: Production escape indicates gap\n   - Impact: Reduce escape rate to \u003C5%\n   - Effort: 1 week\n\n3. **Reduce medium-severity MTTF**\n   - Reason: 28.4h vs 24h target\n   - Impact: Faster user impact resolution\n   - Effort: Process improvement\n\n### Medium Priority\n\n4. **Add regression tests for all fixes**\n   - Reason: 25% recurrence rate on fixes without tests\n   - Impact: Zero recurrence for tested fixes\n   - Effort: Ongoing discipline\n\n5. **Monitor auth module closely**\n   - Reason: Highest regression count\n   - Impact: Early detection of issues\n   - Effort: Weekly review\n\n## Historical Comparison\n\n| Period | Reg Rate | MTTD | MTTF | Escape % |\n|--------|----------|------|------|----------|\n| 3 months ago | 8.2 | 36h | 48h | 18% |\n| 2 months ago | 6.5 | 24h | 36h | 15% |\n| 1 month ago | 5.1 | 12h | 24h | 13% |\n| Current | 4.2 | 8.5h | 18.7h | 12% |\n\n**Trend**: All metrics improving. Regression rate down 49%, detection 76% faster.\n\n## Goals for Next Period\n\n| Metric | Current | Goal | Strategy |\n|--------|---------|------|----------|\n| Regression Rate | 4.2 | \u003C 4 | Improve auth testing |\n| MTTD | 8.5h | \u003C 8h | Add more automation |\n| MTTF | 18.7h | \u003C 18h | Faster review process |\n| Escape Rate | 12% | \u003C 10% | Better staging tests |\n\n## Data Sources\n\n- Regression tests: `.aiwg\u002Ftesting\u002Fregression-results\u002F`\n- Bisect reports: `.aiwg\u002Ftesting\u002Fregression-bisect-*\u002F`\n- Baseline comparisons: `.aiwg\u002Ftesting\u002Fbaseline-comparisons\u002F`\n- Issue tracker: GitHub Issues (label: regression)\n- CI\u002FCD logs: GitHub Actions\n```\n\n## Usage Examples\n\n### View Current Metrics\n\n```\nUser: \"Show regression metrics\"\n\nSkill executes:\n1. Aggregate data from last 30 days\n2. Calculate key metrics\n3. Generate dashboard\n4. Identify trends\n\nOutput:\n\"Regression Metrics (Last 30 Days)\n\nOverall Health: ⚠️ Good with Concerns\n\nKey Metrics:\n- Regression Rate: 4.2\u002Fsprint ✅ (target \u003C 5)\n- MTTD: 8.5 hours ✅ (target \u003C 24h)\n- MTTF: 18.7 hours ⚠️ (target \u003C 24h)\n- Escape Rate: 12% ⚠️ (target \u003C 10%)\n\nHotspots:\n? src\u002Fauth\u002F - 3 regressions this period\n? src\u002Fapi\u002F - 2 regressions\n\nTop Recommendation: Add integration tests for auth\n\nFull dashboard: .aiwg\u002Ftesting\u002Fregression-metrics-dashboard.md\"\n```\n\n### Regression Trends\n\n```\nUser: \"Regression trends over time\"\n\nSkill analyzes:\n- Last 6 sprints of data\n- Calculate trend direction\n- Identify patterns\n\nOutput:\n\"Regression Trends (Last 6 Sprints)\n\nSprint 8:  10 regressions\nSprint 9:   8 regressions (-20%)\nSprint 10:  6 regressions (-25%)\nSprint 11:  5 regressions (-17%)\nSprint 12:  4 regressions (-20%)\nSprint 13:  4 regressions (stable)\n\nOverall: ↓ -60% improvement\nStatus: Stabilizing around 4-5\u002Fsprint\n\nMTTD: 36h → 8.5h (-76%)\nMTTF: 48h → 18.7h (-61%)\n\nConclusion: Strong improvement trend. Approaching best-in-class levels.\"\n```\n\n### Component Heatmap\n\n```\nUser: \"Which components have most regressions?\"\n\nSkill generates:\n\"Component Regression Heatmap (Last 30 Days)\n\nHigh Risk:\n? src\u002Fauth\u002F - 3 regressions (+1 from last period)\n   Most common: Missing integration tests\n\nMedium Risk:\n? src\u002Fapi\u002F - 2 regressions (no change)\n? src\u002Fdb\u002F - 2 regressions (-1 from last period)\n\nLow Risk:\n? src\u002Fuser\u002F - 1 regression (-2 from last period)\n? src\u002Futils\u002F - 0 regressions\n\nRecommendation: Focus testing efforts on auth module\"\n```\n\n## Integration\n\nThis skill uses:\n- `regression-bisect`: Import bisect findings\n- `regression-baseline`: Analyze baseline drift patterns\n- `test-coverage`: Correlate coverage with regression rates\n- `project-awareness`: Detect sprint\u002Frelease boundaries\n\n## Agent Orchestration\n\n```yaml\nagents:\n  analysis:\n    agent: metrics-analyst\n    focus: Statistical analysis and trends\n\n  visualization:\n    agent: technical-writer\n    focus: Dashboard and report generation\n\n  recommendations:\n    agent: test-architect\n    focus: Process improvement suggestions\n```\n\n## Configuration\n\n### Metric Collection\n\n```yaml\ncollection_config:\n  data_sources:\n    - regression_test_results\n    - bisect_reports\n    - baseline_comparisons\n    - issue_tracker\n    - ci_cd_logs\n\n  update_frequency: daily\n  retention: 90 days\n  aggregation: sprint, week, month\n```\n\n### Thresholds\n\n```yaml\nthresholds:\n  regression_rate:\n    excellent: 2\n    good: 5\n    acceptable: 10\n\n  mttd_hours:\n    excellent: 4\n    good: 24\n    acceptable: 168  # 7 days\n\n  mttf_hours:\n    critical: 4\n    high: 24\n    medium: 168  # 7 days\n\n  escape_rate_percent:\n    excellent: 5\n    good: 10\n    acceptable: 20\n```\n\n### Alert Rules\n\n```yaml\nalerts:\n  regression_spike:\n    condition: regression_rate > 10\n    severity: high\n    notification: team-channel\n\n  escape_rate_high:\n    condition: escape_rate > 20%\n    severity: critical\n    notification: leadership\n\n  mttd_degrading:\n    condition: mttd_trend_increase > 50%\n    severity: medium\n    notification: test-team\n```\n\n## Output Locations\n\n- Dashboards: `.aiwg\u002Ftesting\u002Fregression-metrics-dashboard.md`\n- Trends: `.aiwg\u002Ftesting\u002Fregression-trends.json`\n- Heatmaps: `.aiwg\u002Ftesting\u002Fregression-heatmap.json`\n- Historical data: `.aiwg\u002Ftesting\u002Fmetrics-history\u002F`\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fschemas\u002Fmetrics\u002Fregression-metrics-schema.yaml\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Fmetrics-analyst.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fmetrics-dashboard.md\n",{"name":5,"namespace":47,"platforms":48,"description":7},"aiwg",[49],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fsdlc\u002Fskills\u002Fregression-metrics",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add jmagly\u002Faiwg --skill regression-metrics",{"tool":66,"command":67},"bunx","bunx skills add jmagly\u002Faiwg --skill regression-metrics",{"tool":69,"command":70},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill regression-metrics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsdlc\u002Fskills\u002Fregression-metrics\u002FSKILL.md",true,[],[75,83,88,115,135,140],{"skillNo":76,"name":77,"nameZh":17,"description":78,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":84,"name":77,"nameZh":17,"description":78,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":82},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":42},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":116,"name":117,"nameZh":17,"description":118,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":42},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[122,123,124,125,126,127,100,128,106,113,108,129,96,130,110,131,132,114,133,134],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":136,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":42},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[95,96,97,112,113,114,107,111,103,99,100,101,102,104,105,106,98,108,109,110],{"skillNo":141,"name":117,"nameZh":17,"description":118,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":42},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[122,123,134,133,126,132,131,110,125,127,100,128,106,124,108,129,96,114,113,130]]