/pm-copilot:regression-testingfrom pm-copilot
Sets up a systematic regression testing framework for AI features, catching quality degradations from model updates, prompt changes, or context shifts before they reach users.
Ships in pm-copilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are setting up a regression testing framework for an AI feature — a systematic process that catches quality degradations caused by model changes, prompt changes, or data/context changes before they reach users.
Framework: Hamel Husain + Shreya Shankar (Building eval systems, 2025), software testing principles applied to AI.
Read memory/user-profile.md for the AI feature being protected. Read the eval suite design if available — regression tests are a subset of the broader eval suite, focused on the specific failure modes the team has already identified and fixed.
AI regressions can be caused by:
The regression test suite should catch all of these, not just obvious changes.
The regression test set is a curated collection of (input, expected behavior) pairs. "Expected behavior" means the output should PASS a specific eval.
Sources for the test set:
Size guidance:
When to run:
Pass/fail definition: The test suite passes if: (1) every individual test case passes its specific eval, AND (2) the aggregate pass rate doesn't drop by more than [threshold]% from the baseline.
Set the threshold based on the feature's criticality:
When a regression is detected, produce a report:
What changed: Which eval(s) failed? What does the failure pattern look like?
Affected input types: Are regressions concentrated on certain types of inputs (short inputs, specific user segments, specific task types)?
Severity: How many test cases failed? What's the regression % vs. baseline?
Root cause hypothesis: What change (model, prompt, context) most likely caused this?
Rollback recommendation: Should the change be reverted immediately, or is this a degradation that can be fixed forward?
Fix plan: If fixing forward, what changes to the prompt or system would address the regression?
Connect regression tests to the deployment pipeline:
# Pseudocode: regression gate in deployment pipeline
def run_regression_gate(eval_suite, test_cases, baseline_pass_rate, threshold=0.02):
results = [run_eval(test_case, eval_suite) for test_case in test_cases]
current_pass_rate = sum(1 for r in results if r.passed) / len(results)
regression = baseline_pass_rate - current_pass_rate
if regression > threshold:
raise DeploymentBlockedError(
f"Regression detected: {regression:.1%} quality drop vs. baseline. "
f"Blocking deployment. Review failing cases: {[r for r in results if not r.passed]}"
)
return {"pass_rate": current_pass_rate, "regression": regression, "status": "PASS"}
When a regression is flagged:
Produce:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ai-regression, eval-suite, quality-assurance, prompt-testing
Generated from the plugin's indexed repository (productfculty-aipm/pm-copilot-by-product-faculty) — no native marketplace selected
npx claudepluginhub p/productfculty-aipm-pm-copilot65 skills in this plugin
/ab-test-designUse this skill when the user asks to "design an A/B test", "how should I test this", "experiment design", "how do I run an experiment", "test this feature", "set up a split test", "how many users do I need", "statistical significance", "how do I know if this test worked", or wants to design a rigorous experiment to test a product hypothesis./ai-feature-monetizationUse this skill when the user asks specifically about "how to monetize AI features", "should AI be a separate tier", "pricing for AI capabilities", "how to charge for AI", "AI add-on vs. bundle", "AI feature pricing strategy", or is adding AI capabilities to an existing product and wants to decide how to monetize them. This is a specialized version of pricing-review focused on AI feature economics./Other plugins' skills for the same job