by user_39spWGp5TKQ3qXQQppMcR1O9PIf
Analyzes code changes (via GitHub diffs or JIRA tickets) and maps them to existing test cases to identify the minimum necessary regression set. Prevents redundant testing by highlighting only impacted modules and test cases.
npx @qaskills/cli add regression-test-case-impact-analysisAuto-detects your AI agent and installs the skill. Works with Claude Code, Cursor, Copilot, and more.
When to use this skill
When a developer submits a PR or code change and you need to know which manual test cases to run. When you provide a "JIRA ticket" or "Git Diff" and an "Existing test case" Excel/CSV file. When there is a need to optimize testing time by pruning unnecessary test runs.
Workflow
Change Detection: Git Diff: Parse the git diff to identify modified files, function names, and UI components. JIRA Ticket: Extract "Module", "Description", and "Fixed in" fields to understand the functional change.
Impact Mapping: Correlate the changed files/modules with the "Module" or "Feature" column in the test case Excel. Search for keywords from the code change in the "Test Description" or "Step" columns of the test cases.
Selection & Analysis: Identify "Direct Impact" (cases covering the exact module changed). Identify "Indirect Impact" (cases covering downstream dependencies or shared utilities).
Reporting: Generate a "Module Changed vs. Impacted Test Cases" table. Provide a list of "High Priority" regression cases.
Instructions Analyzing Code Changes
Look for modified paths:
If src/auth/* changed -> Map to Login, Register, MFA test cases. If components/shared/Button.js changed -> Map to ALL UI test cases using buttons.
import pandas as pd
df = pd.read_excel('test_cases.xlsx')
impacted = df[df['Module'].str.contains('Login', case=False)]
- name: Install QA Skills
run: npx @qaskills/cli add regression-test-case-impact-analysis0 of 29 agents supported