Command Palette

Search for a command to run...

Назад к скиллам
скилл № 23849

quality-regression-testing

Use when the user asks about a regression suite, test impact analysis, selecting tests from changed files, flaky test management, test maintenance or…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

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

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

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

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

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

Regression Testing

Purpose

Ensure that new code changes do not break existing functionality through effective test selection, suite design, automation maintenance, and metric-driven optimization. This skill covers impact analysis, risk-based selection, prioritization, flaky test management, and CI integration.

Agent Protocol

Trigger

User mentions regression testing, test selection, regression suite, flaky tests, automation maintenance, or asks what to re-test after a change.

Input Context

  • Code changes (commits, PRs, commits since last regression run)
  • Existing test suite composition and execution history
  • Risk assessment of changed areas
  • Time/resource constraints for regression execution

Output Artifact

  • Regression test selection recommendation
  • Optimized regression suite definition
  • Flaky test report and remediation plan
  • Regression metrics dashboard or report

Response Format

Structured recommendation with:

  1. Impact analysis summary (changed areas to affected tests mapping)
  2. Selected test list with risk-based justification
  3. Prioritization within the selection (critical path first)
  4. Risk assessment of excluded tests (what we're accepting risk on)
  5. Execution time estimate and time budget compliance

Completion Criteria

  • Regression test selection produced and justified through risk analysis
  • Risk coverage meets agreed threshold (excluded tests documented with rationale)
  • Execution time fits within available window via prioritization
  • Flaky tests identified, flagged, and quarantined
  • Selection recall validated (no regression test gaps identified)

Workflow

  1. Impact analysis: Map code changes to affected files, then to test suites via dependency graph and coverage data
  2. Test selection: Choose tests based on risk model (business criticality, failure history, change proximity). Use dependency graph for precision
  3. Prioritization: Order selected tests by risk score. Apply time budget if constrained — highest risk tests run first
  4. Execution: Run selected regression suite. Monitor results in real-time. Record execution times
  5. Flaky detection: Re-run failed tests up to 3 times. If inconsistent, quarantine immediately. Track flakiness rate
  6. Analysis: Correlate new failures with recent changes. Distinguish real regressions from environmental issues
  7. Optimization: Remove redundant tests, consolidate overlapping coverage, retire obsolete suites. Update risk scores based on results
  8. Reporting: Generate pass/fail summary, risk coverage report, execution time trend, and flaky test log

Architecture / Decision Trees

Test Selection Strategy Decision Tree

How many tests are in the suite?
├── < 100 → Run all (no selection needed)
├── 100-1000 → Dependency-graph selection
│   ├── Dependency graph available? → Use graph
│   └── No graph → Coverage-based selection
├── 1000-10000 → Risk-based + dependency selection
│   ├── Historical data available? → Add failure rate to risk model
│   └── No history → Coverage + module risk only
└── 10000+ → ML-based selection
    ├── Data available? → Train selection model
    └── No data → Start with risk-based, collect data

Test Layer Decision Tree

Layer 1 (Smoke): < 5 min, always run on every deployment
  Critical path tests, auth, main workflow
Layer 2 (Core): < 30 min, run on every merge
  All core business functionality, all integration tests
Layer 3 (Full): < 2 hours, run daily
  Complete suite including edge cases
Layer 4 (Extended): 2-8 hours, run pre-release
  Full suite + performance + chaos + security

Common Pitfalls

  1. Suite bloat without pruning: Regression suites accumulate dead tests. Review and remove obsolete tests quarterly
  2. Running all tests on every change: Doesn't scale. Invest in test selection when suite exceeds 100 tests
  3. Flaky test accumulation: Tests that fail intermittently erode trust. Quarantine within 24 hours
  4. No risk model: Treating all tests as equally important misses business-critical risks
  5. Ignoring test selection recall: Not tracking what was missed means you don't know your blind spots
  6. Brittle test selection: Hardcoded file lists in selection logic break as codebase evolves
  7. Manual regression processes: Manual regression is slow, error-prone, and doesn't scale
  8. No time-budget management: Without time constraints, regression suites grow unbounded
  9. Coverage over risk: 100% coverage is meaningless if it covers the wrong things
  10. No feedback loop: Without analyzing missed bugs, regression can't improve

Best Practices

  1. Layer the regression suite: smoke (fastest), core (balanced), full (slowest), extended (pre-release)
  2. Base test selection on dependency graphs and historical failure data
  3. Prioritize tests by risk score: business criticality + failure probability + change proximity
  4. Quarantine flaky tests immediately and fix within one sprint
  5. Add reg
Полный SKILL.md на GitHub

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

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

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

Вложенные файлы

  • references/automation-maintenance.md
  • references/flaky-test-management.md
  • references/regression-metrics.md
  • references/regression-suites.md
  • references/regression-testing-advanced.md
  • references/regression-testing-architecture.md
  • references/regression-testing-fundamentals.md
  • references/regression-testing-strategy.md
  • references/risk-based-selection-deep-dive.md
  • references/risk-based-selection.md
  • references/test-selection.md

FAQ

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

Use when the user asks about a regression suite, test impact analysis, selecting tests from changed files, flaky test management, test maintenance or regression metrics. Produces regression scope, selection rules and suite health metrics. Not for post-deploy smoke checks (use quality-smoke-testing) or UAT (use quality-acceptance-testing).

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

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

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

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

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

Сравнить quality-regression-testing с