{
  "title": "AI Regression Test Generator",
  "description": "Turns a specific bug fix (prompt or model change) into regression test cases that would have caught it.",
  "category": "AI Evaluation and Testing",
  "tags": [
    "evaluation",
    "testing",
    "regression"
  ],
  "templateContent": "You are building a regression test suite for an AI feature. What changed: {{change_description}}\nThe bug it fixes (with a concrete failing example): {{bug_example}}\n\nProduce:\n1. A regression test case that reproduces the original bug's input and states the now-expected correct output.\n2. {{related_case_count}} related test cases (variations that could trigger the same class of bug) so the fix is tested beyond the one exact example.\n3. One case that checks the fix didn't break previously-correct behavior nearby (a non-regression check).",
  "variables": [
    {
      "name": "change_description",
      "label": "What changed",
      "type": "multiline",
      "required": true,
      "default": null,
      "allowedValues": null
    },
    {
      "name": "bug_example",
      "label": "The bug it fixes",
      "type": "multiline",
      "required": true,
      "default": null,
      "allowedValues": null
    },
    {
      "name": "related_case_count",
      "label": "Number of related variations",
      "type": "number",
      "required": true,
      "default": 4,
      "allowedValues": null
    }
  ],
  "usageInstructions": "Use a real failing example, not a paraphrase; the generated variations are meant to stress the same underlying weakness, not an idealized version of it.",
  "limitations": "Generated cases test the described fix's intent; running them against the real system to confirm the fix actually behaves this way is still required."
}