{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://websitesdesigner.com/insights/prompts/prompt.schema.json",
  "title": "Website's Designer prompt",
  "description": "A reusable AI prompt for web design work. Fill the inputs, then send the instructions. Instructions refer to inputs as {{key}}.",
  "type": "object",
  "required": [
    "id",
    "name",
    "stage",
    "step",
    "version",
    "inputs",
    "instructions",
    "output",
    "checks"
  ],
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "type": "string"
    },
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9-]+$"
    },
    "name": {
      "type": "string"
    },
    "stage": {
      "type": "string",
      "enum": [
        "plan",
        "design",
        "write",
        "refine",
        "check",
        "grow"
      ]
    },
    "step": {
      "type": "integer",
      "minimum": 1
    },
    "of": {
      "type": "integer",
      "minimum": 1
    },
    "version": {
      "type": "string",
      "format": "date"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "inputs": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Replace each value with your own text before sending."
    },
    "instructions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "output": {
      "type": "string",
      "description": "What a good answer contains."
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "How to tell the answer is good before you use it."
    },
    "output_schema": {
      "type": "object",
      "description": "A JSON Schema (2020-12) for the answer, written for strict structured-output modes."
    }
  }
}
