regression-check
БесплатноБез исполняемых скриптовНе проверенCompare current behavior against baseline to detect regressions
от 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:
- Establishing baseline comparison point (branch, tag, commit, or timestamp)
- Identifying scope of changes to test
- Executing relevant test suites with baseline comparison
- Analyzing execution feedback for behavioral changes
- Reporting detected regressions with severity and impact
- 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:
mainbranch or most recent release tag
- Examples:
--scope <level>- Testing scopefull- Run complete test suite (default)module <name>- Test specific module/componentchanged-files- Test only files changed since baseline- Example:
--scope module auth
--format <type>- Output formatsummary- High-level regression report (default)detailed- Full execution logs with diffsjson- 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:
``
Установить 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic