Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

regression-check

БесплатноБез исполняемых скриптовНе проверен

Compare current behavior against baseline to detect regressions

jmaglyот jmagly★ 233 звезды на GitHub

Об этом скилле

Regression Check Command

Compare current system behavior against a baseline to detect regressions using executable feedback patterns.

Task

I'll perform comprehensive regression detection by:

  1. Establishing baseline comparison point (branch, tag, commit, or timestamp)
  2. Identifying scope of changes to test
  3. Executing relevant test suites with baseline comparison
  4. Analyzing execution feedback for behavioral changes
  5. Reporting detected regressions with severity and impact
  6. Optionally correlating with bug reports

Arguments

  • --baseline <ref> - Comparison baseline (branch name, git tag, commit hash, or ISO timestamp)

    • Examples: --baseline main, --baseline v2026.1.4, --baseline abc123, --baseline 2026-01-20T10:00:00Z
    • Default: main branch or most recent release tag
  • --scope <level> - Testing scope

    • full - Run complete test suite (default)
    • module <name> - Test specific module/component
    • changed-files - Test only files changed since baseline
    • Example: --scope module auth
  • --format <type> - Output format

    • summary - High-level regression report (default)
    • detailed - Full execution logs with diffs
    • json - Machine-readable format for CI/CD integration
  • --bug-report <path> - Correlate with bug report

    • Verifies bug fix doesn't introduce regressions
    • Cross-references test failures with reported issues
    • Example: --bug-report .aiwg/bugs/BUG-042.md
  • --save-baseline - Save current execution as new baseline

    • Useful after confirming changes are intentional
    • Updates regression detection baseline for future runs

Process

Step 1: Baseline Establishment

# Determine baseline reference
BASELINE_REF="${--baseline:-main}"

# Checkout baseline (in temporary worktree)
git worktree add /tmp/baseline-check "$BASELINE_REF"

# Capture baseline test results
cd /tmp/baseline-check
npm test -- --json > /tmp/baseline-results.json

Step 2: Scope Identification

Full Scope:

  • Run entire test suite in both baseline and current
  • Compare all test outcomes

Module Scope:

  • Identify module-specific tests
  • Run subset of test suite
  • Focus regression detection on specified component

Changed Files Scope:

# Identify changed files
git diff --name-only "$BASELINE_REF" > /tmp/changed-files.txt

# Map to test files
# Example: src/auth/login.ts → test/unit/auth/login.test.ts

# Run only affected tests

Step 3: Execution Comparison

Execute tests in current state:

# Run tests with same configuration as baseline
npm test -- --json > /tmp/current-results.json

# Capture additional metrics
# - Performance timing
# - Code coverage deltas
# - Error types and frequencies

Step 4: Regression Analysis

Compare execution results:

regression_detection:
  new_failures:
    - test: "test/unit/auth/login.test.ts::validateCredentials"
      baseline_status: PASS
      current_status: FAIL
      error: "Expected 200, received 401"
      severity: CRITICAL

  behavior_changes:
    - test: "test/integration/api/users.test.ts::createUser"
      baseline_output: "User created in 150ms"
      current_output: "User created in 450ms"
      delta: +200%
      severity: MAJOR

  fixed_tests:
    - test: "test/unit/utils/parser.test.ts::edgeCase"
      baseline_status: FAIL
      current_status: PASS
      note: "Intentional fix"

Step 5: Reporting

Summary Format:

## Regression Check Report

**Baseline**: main (commit abc123)
**Scope**: full
**Date**: 2026-01-25T15:30:00Z

### Summary

- **New Failures**: 3 tests
- **Behavior Changes**: 5 tests (performance degradation)
- **Fixed Tests**: 2 tests
- **Overall**: ⚠️ REGRESSIONS DETECTED

### Critical Regressions

1. **auth/login.test.ts::validateCredentials**
   - Status: PASS → FAIL
   - Error: "Expected 200, received 401"
   - Impact: Breaks user authentication
   - Action: BLOCK MERGE

2. **payments/process.test.ts::chargeCard**
   - Status: PASS → FAIL
   - Error: "Transaction timeout"
   - Impact: Payment processing broken
   - Action: BLOCK MERGE

### Behavior Changes

1. **api/users.test.ts::createUser**
   - Performance: 150ms → 450ms (+200%)
   - Severity: MAJOR
   - Action: INVESTIGATE

[... detailed report continues ...]

JSON Format:

{
  "baseline": {
    "ref": "main",
    "commit": "abc123",
    "timestamp": "2026-01-20T10:00:00Z"
  },
  "current": {
    "commit": "def456",
    "timestamp": "2026-01-25T15:30:00Z"
  },
  "summary": {
    "new_failures": 3,
    "behavior_changes": 5,
    "fixed_tests": 2,
    "total_tests": 247
  },
  "regressions": [
    {
      "test": "auth/login.test.ts::validateCredentials",
      "type": "failure",
      "severity": "critical",
      "baseline_status": "PASS",
      "current_status": "FAIL",
      "error": "Expected 200, received 401",
      "action": "block"
    }
  ],
  "verdict": "FAIL"
}

Bug Report Integration

When --bug-report is provided:

``

Полный SKILL.md на GitHub

Установить regression-check в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл regression-check?

Compare current behavior against baseline to detect regressions

Как установить скилл regression-check?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл regression-check запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить regression-check с