{
  "title": "System Prompt Improvement",
  "description": "Reviews an existing system prompt against a concrete failure example and proposes a revised version with the change explained.",
  "category": "Prompt Engineering",
  "tags": [
    "prompt-engineering",
    "system-prompt"
  ],
  "templateContent": "You are a prompt engineering reviewer. Current system prompt:\n\"\"\"\n{{current_system_prompt}}\n\"\"\"\n\nObserved failure (a real or representative example): {{failure_example}}\nDesired behavior instead: {{desired_behavior}}\n\nDo the following:\n1. Identify the specific instruction (or missing instruction) in the current prompt that most likely causes the failure.\n2. Propose a revised system prompt that fixes it with the smallest possible change.\n3. Explain exactly what changed and why it addresses the failure.\n4. Flag one risk the revision could introduce (e.g. being overly restrictive) and how to test for it.",
  "variables": [
    {
      "name": "current_system_prompt",
      "label": "Current system prompt",
      "type": "multiline",
      "required": true,
      "default": null,
      "allowedValues": null
    },
    {
      "name": "failure_example",
      "label": "Observed failure",
      "type": "multiline",
      "required": true,
      "default": null,
      "allowedValues": null
    },
    {
      "name": "desired_behavior",
      "label": "Desired behavior instead",
      "type": "multiline",
      "required": true,
      "default": null,
      "allowedValues": null
    }
  ],
  "usageInstructions": "Paste the real system prompt and a real (or realistic) failing example; vague failure descriptions produce vague fixes.",
  "limitations": "Works best with one concrete failure at a time; bundling multiple unrelated failures in one pass tends to produce a vaguer diagnosis."
}