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★ 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:
- Impact analysis summary (changed areas to affected tests mapping)
- Selected test list with risk-based justification
- Prioritization within the selection (critical path first)
- Risk assessment of excluded tests (what we're accepting risk on)
- 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
- Impact analysis: Map code changes to affected files, then to test suites via dependency graph and coverage data
- Test selection: Choose tests based on risk model (business criticality, failure history, change proximity). Use dependency graph for precision
- Prioritization: Order selected tests by risk score. Apply time budget if constrained — highest risk tests run first
- Execution: Run selected regression suite. Monitor results in real-time. Record execution times
- Flaky detection: Re-run failed tests up to 3 times. If inconsistent, quarantine immediately. Track flakiness rate
- Analysis: Correlate new failures with recent changes. Distinguish real regressions from environmental issues
- Optimization: Remove redundant tests, consolidate overlapping coverage, retire obsolete suites. Update risk scores based on results
- 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
- Suite bloat without pruning: Regression suites accumulate dead tests. Review and remove obsolete tests quarterly
- Running all tests on every change: Doesn't scale. Invest in test selection when suite exceeds 100 tests
- Flaky test accumulation: Tests that fail intermittently erode trust. Quarantine within 24 hours
- No risk model: Treating all tests as equally important misses business-critical risks
- Ignoring test selection recall: Not tracking what was missed means you don't know your blind spots
- Brittle test selection: Hardcoded file lists in selection logic break as codebase evolves
- Manual regression processes: Manual regression is slow, error-prone, and doesn't scale
- No time-budget management: Without time constraints, regression suites grow unbounded
- Coverage over risk: 100% coverage is meaningless if it covers the wrong things
- No feedback loop: Without analyzing missed bugs, regression can't improve
Best Practices
- Layer the regression suite: smoke (fastest), core (balanced), full (slowest), extended (pre-release)
- Base test selection on dependency graphs and historical failure data
- Prioritize tests by risk score: business criticality + failure probability + change proximity
- Quarantine flaky tests immediately and fix within one sprint
- Add reg
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…