prompt-optimize

Refines image and video generation prompts through an optimize-evaluate-iterate loop.

5|2|Updated Jul 12, 2026
One-click install
npx skills add https://github.com/LongLeo287/seosona-flow --skill prompt-optimize-longleo287
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prompt-optimize
Source: https://github.com/LongLeo287/seosona-flow/tree/main/.claude/skills/prompt-optimize
Command: npx skills add https://github.com/LongLeo287/seosona-flow --skill prompt-optimize-longleo287

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Raw prompts for AI image and video generation are often vague, contradictory, or mismatched to the target provider, producing results that miss the intended subject, style, or composition. This Skill rewrites rough prompts into specific, provider-aware prompts using a structured critique loop instead of blind rewriting. ## Core Features & Use Cases - Optimize-Evaluate-Iterate Loop: Rewrites a prompt, scores it against the real requirement (subject clarity, context, contradictions, abstract terms), then fixes weaknesses until no major issues remain. - Provider-Aware Tuning: Adapts prompt structure for Flow/Veo (one camera move plus one action), ChatGPT/DALL-E (natural descriptive sentences), Gemini (layout and multi-subject editing), and Grok (concise phrasing). - Typed Placeholder Extraction: Pulls reusable variables like {subject}, {ratio}, {style}, and {color} with suggested values so prompts can be templated and reused. - Failure Diagnosis: When a generated image is wrong, diagnoses the cause (unanchored subject, missing style block, baked-in text, drifting character) and maps it to a concrete prompt fix. - Use Case: You generated a product photo and the style drifted from your reference. Paste the original prompt and the bad result; the Skill returns a corrected prompt, a diagnosis of what went wrong, and a before/after comparison. ## Quick Start Ask the assistant to optimize your rough image prompt for a specific provider, for example: optimize this prompt for Veo — a cat sitting on a table, cinematic style.

Frequently Asked Questions about prompt-optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I improve a vague AI image generation prompt?▼

Rewrite the prompt with a concrete subject, action, and setting, then structure it into blocks for composition, lighting, color grade, style, and camera. Score the result against the original requirement and iterate until no major weaknesses remain.

How should prompts differ between Veo, DALL-E, Gemini, and Grok?▼

Veo prompts need one camera move and one action with a duration, DALL-E works best with natural descriptive sentences, Gemini handles layout and multi-subject edits well, and Grok responds best to short concise phrasing.

Why does my generated image have garbled text in it?▼

Image models render baked-in text unreliably. The recommended fix is to prompt the model to reserve an empty area for the text and add the actual words as an overlay afterward instead of baking them into the image.

Can this skill generate images directly?▼

No. It only returns the optimized prompt text, typed placeholders, an evaluation of improvements, and provider notes. You take the final prompt to your chosen image or video generation provider yourself.

What causes a character's face to drift between generated images?▼

Character drift happens when the prompt lacks consistent identity anchors across generations. The fix is to use reference images and a dedicated character-consistency approach rather than relying on text description alone.