← ClaudeAtlas

designer-image-generationlisted

Generates one hero image using the Gemini AI image API, optimizes it to a compact web-friendly file (WebP, under 200 KB), and saves it alongside the blog post. Reads JSON image prompts from image-prompts.md created by the Writer. If image-prompts.md is missing, invokes the Writer to generate it first. If generation fails, saves the prompt so it can be used in any external image tool. Use when the operator says "generate the image", "hero image", "create a visual", or a finished post is missing its hero image.
talentedgeai/infinite-leverage · ★ 0 · Web & Frontend · score 62
Install: claude install-skill talentedgeai/infinite-leverage
# Designer: Image Generation ## Discovery ```bash ls -1t content/topics/ # newest first ``` Find the first folder that has `blog.md` but NOT `{slug}-hero.webp`. ## Prompt source — MANDATORY before generating Before calling the image API, locate the JSON prompts the Writer prepared: ```bash cat content/topics/{slug}/image-prompts.md 2>/dev/null ``` **If `image-prompts.md` exists:** read the `## hero.webp` section and parse the JSON block as the generation prompt. If the file has no `<!-- treatment: … -->` comment at the top, run `designer-style-to-photo` first — it aligns `style` / `mood` / `palette` to `docs/brand/style-guide.md` so the image comes back on-brand. **If `image-prompts.md` does NOT exist:** stop image generation and invoke the Writer agent to produce it first: 1. Tell the operator: "`image-prompts.md` not found for `{slug}` — invoking Writer to generate image prompts from the post." 2. Delegate to the Writer with the instruction: "Read `content/topics/{slug}/blog.md` and generate `content/topics/{slug}/image-prompts.md` with JSON image prompts for hero.webp, social-card.png, and any inline images. Follow the brand voice in `docs/brand/style-guide.md`." 3. Once the Writer returns and `image-prompts.md` exists, re-run this skill from the top. Do NOT invent a prompt. The Writer owns prompt creation to ensure brand-voice and topic consistency. ## Generation - Model: the CURRENT Gemini image-generation model — never a pinned preview. Check the Gemini API d