json-image-prompt
Installation
SKILL.md
JSON Image Prompt Skill
When generating images, always decompose the user's request into a structured JSON prompt before calling generate_image. JSON prompts eliminate ambiguity, improve consistency, and give the AI model clearer instructions.
Why JSON Over Free-Form Text
| Free-form | JSON |
|---|---|
| "A beautiful sunset over mountains with dramatic lighting" | Each attribute is a separate, unambiguous key-value pair |
| Model guesses what "beautiful" and "dramatic" mean | You define exactly: golden hour, rim lighting, warm tones |
| Hard to iterate — rewrite everything | Change one field, keep the rest |
| Inconsistent results across runs | Same structure = reproducible quality |
JSON Prompt Schema
Always structure the prompt as a JSON object with these fields: