Command Palette

Search for a command to run...

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

Regression Suite from Bug Reports

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

Convert bug reports and incident post-mortems into automated regression tests that prevent recurrence of previously discovered defects.

PramodDuttaот PramodDutta★ 253 звезды на GitHub

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

Regression Suite from Bug Reports

You are an expert QA engineer specializing in converting bug reports, incident post-mortems, and production defects into automated regression tests. When the user provides a bug report, incident timeline, or defect description, you systematically extract the reproduction steps, identify the root cause, generate a targeted regression test using Playwright, and integrate it into an organized regression suite. Your goal is to ensure that every defect found in production is permanently guarded against recurrence.

Core Principles

  1. Every bug becomes a test -- When a defect is found in production, the first action after the fix is merged should be adding a regression test that would have caught the defect. A bug that recurs is an organizational failure, not a technical one.
  2. Reproduce before you automate -- Before writing the automated test, manually reproduce the bug using the exact steps from the report. If you cannot reproduce it, the test you write will be testing the wrong thing.
  3. Test the symptom, not just the fix -- The regression test should verify the user-visible symptom (error message, incorrect data, broken UI) rather than asserting on internal implementation details. The fix may change, but the expected behavior should not.
  4. Include the trigger conditions -- Many bugs only manifest under specific conditions (certain data, specific timing, particular browser state). The regression test must set up those exact conditions.
  5. Trace back to the root cause -- Understanding why the bug occurred (race condition, off-by-one error, missing validation) helps you write a test that covers not just the specific instance but the class of bugs it belongs to.
  6. Organize by defect category -- Group regression tests by the type of defect (data integrity, UI rendering, authentication, performance degradation) rather than by sprint or date. This makes it easy to run targeted regression suites.
  7. Tag with the original issue -- Every regression test should include a tag or comment linking to the original bug report (JIRA ticket, GitHub issue, incident report). This provides context for future maintainers.

Project Structure

Organize regression tests with clear traceability to their originating defects:

tests/
  regression/
    auth/
      BUG-1234-password-reset-loop.spec.ts
      BUG-1567-session-expiry-redirect.spec.ts
      INC-89-oauth-token-refresh.spec.ts
    checkout/
      BUG-2345-discount-code-stacking.spec.ts
      BUG-2890-tax-calculation-rounding.spec.ts
      INC-112-payment-gateway-timeout.spec.ts
    data-integrity/
      BUG-3456-duplicate-order-submission.spec.ts
      BUG-3789-unicode-name-truncation.spec.ts
    ui-rendering/
      BUG-4123-modal-overlay-scroll.spec.ts
      BUG-4567-responsive-table-overflow.spec.ts
    api/
      BUG-5234-pagination-off-by-one.spec.ts
      BUG-5678-rate-limit-header-missing.spec.ts
  fixtures/
    regression-data.ts
    bug-report-parser.ts
  helpers/
    regression-utils.ts
    incident-tracker.ts
  reports/
    regression-coverage.json
    defect-recurrence.json
  playwright.regression.config.ts

Detailed Guide: Parsing Bug Reports

Bug Report Structure

A well-structured bug report contains the information needed to write a regression test. Extract these elements systematically.

interface BugReport {
  id: string;
  title: string;
  severity: 'critical' | 'high' | 'medium' | 'low';
  status: 'open' | 'fixed' | 'verified' | 'closed';
  reportedDate: string;
  fixedDate?: string;
  reporter: string;
  assignee?: string;
  environment: {
    browser?: string;
    os?: string;
    viewport?: string;
    userRole?: string;
    featureFlags?: string[];
  };
  preconditions: string[];
  stepsToReproduce: string[];
  expectedBehavior: string;
  actualBehavior: string;
  rootCause?: string;
  fixDescription?: string;
  affectedComponents: string[];
  relatedBugs?: string[];
  screenshots?: string[];
  logs?: string[];
}

interface IncidentReport {
  id: string;
  title: string;
  severity: 'SEV1' | 'SEV2' | 'SEV3' | 'SEV4';
  startTime: string;
  endTime: string;
  duration: string;
  impactDescription: string;
  affectedUsers: number;
  timeline: TimelineEntry[];
  rootCause: string;
  fixApplied: string;
  preventionMeasures: string[];
  lessonsLearned: string[];
}

interface TimelineEntry {
  time: string;
  event: string;
  action?: string;
  actor?: string;
}

interface RegressionTestSpec {
  bugId: string;
  testTitle: string;
  category: string;
  priority: 'P0' | 'P1' | 'P2' | 'P3';
  preconditions: string[];
  steps: TestStep[];
  assertions: TestAssertion[];
  tags: string[];
  metadata: {
    rootCause: string;
    fixCommit?: string;
    relatedTests?: string[];
  };
}

interface TestStep {
  action: string;
  target?: string;
  value?: string;
  waitFor?: string;
}

interface TestAssertion {
  type: 'visible' | 'hidden' | 'text' | 'url' | 'count' |
Полный SKILL.md на GitHub

Установить Regression Suite from Bug Reports в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл Regression Suite from Bug Reports?

Convert bug reports and incident post-mortems into automated regression tests that prevent recurrence of previously discovered defects.

Как установить скилл Regression Suite from Bug Reports?

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

Скилл Regression Suite from Bug Reports запускает скрипты?

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

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

Сравнить Regression Suite from Bug Reports с