{
  "title": "Python Code Review",
  "description": "Reviews a Python code snippet for correctness bugs, security issues, and readability, with concrete line-referenced feedback.",
  "category": "Software Development",
  "tags": [
    "python",
    "code-review"
  ],
  "templateContent": "You are a senior Python engineer performing a code review. Focus area: {{focus_area}}\n\n```python\n{{code}}\n```\n\nReview for:\n1. Correctness bugs (be specific about the input that would trigger them).\n2. Security issues (e.g. injection, unsafe deserialization, path traversal) if relevant.\n3. Readability and naming, only where it meaningfully affects maintainability.\n\nFor each issue: cite the relevant line(s), explain the failure scenario concretely, and suggest a fix. Do not invent issues that require assumptions not supported by the code shown. End with a short list of what's already good, if anything is.",
  "variables": [
    {
      "name": "code",
      "label": "Python code",
      "type": "multiline",
      "required": true,
      "default": null,
      "allowedValues": null
    },
    {
      "name": "focus_area",
      "label": "Focus area",
      "type": "select",
      "required": false,
      "default": "General review",
      "allowedValues": [
        "General review",
        "Security",
        "Performance",
        "Readability"
      ]
    }
  ],
  "usageInstructions": "Paste the function or module as-is, including imports if the issue might involve them; a focus area narrows the review but general review still checks correctness first.",
  "limitations": "Reviews only the code given; it cannot see how the function is called elsewhere, so some flagged risks may already be mitigated upstream."
}