Story to Prompts
by @ggke
Convert story synopses or single-scene descriptions into high-quality text-to-image prompts. Two modes: (1) multi-scene - a story outline is split into multi...
clawhub install story-to-promptsπ About This Skill
name: story-to-prompts description: "Convert story synopses or single-scene descriptions into high-quality text-to-image prompts. Two modes: (1) multi-scene - a story outline is split into multiple coherent scenes, each with its own prompt; (2) single-scene - a single scene description gets a prompt directly. Outputs scored prompts with bilingual versions. Use when users say story to images, generate prompts for this scene, story split, storyboard prompts, text-to-image prompt, ζηεΎ, ει, ζ δΊζε."
Story to Prompts
One-shot conversion from story/scene to text-to-image prompts. No interactive confirmation β output the final result directly.
Output Language
Detect language from user input:
Entry Point
Determine mode based on user input:
Split Strategy (Multi-scene Mode)
Priority for determining image count and split:
1. User specifies count (e.g. "4 images", "ζζ6εΌ ") β use directly 2. User does not specify β split by spatiotemporal boundaries: - Identify distinct time-space units (location change, time jump) - Each independent time-space = one image - Within the same time-space, if multiple key actions exist, split into 2-3 images with different shot types 3. Default range: 3-6 images unless the story is extremely simple or very long
Workflow (Multi-scene Mode)
Complete all steps in one pass. Output final result only.
Step 1: Extract Story Baseline
Determine internally (do not output separately):
Step 2: Structure Split
Determine N images, assign for each:
references/shot-types.md narrative rhythm template, adjacent images must differ)Step 3: Generate Prompt per Image
Requirements for each prompt:
Step 4: Score and Optimize
Self-evaluate each prompt on 10 dimensions and optimize:
Structure Completeness (40 pts) 1. Core intent clarity (10): Is the goal unambiguous? 2. Subject and hierarchy (10): Is the main subject clear with size ratio? 3. Composition and ratio constraints (10): Aspect ratio, viewpoint, composition technique? 4. Style anchor clarity (10): Specific style/medium specified?
Generation Quality Control (40 pts) 5. Motif unity (10): Do visual details serve a unified theme? 6. Material and lighting description (10): Specific material and light logic? 7. Constraints and negative prompts (10): Anti-failure constraints present? 8. Text-image integration (10): Text layout handled or explicitly absent?
Productization and Reusability (20 pts) 9. Parameterization (10): Easy to adjust and reuse? 10. Failure anticipation (10): Common AI errors preemptively blocked?
Logic check per prompt: character consistency, scene continuity, physics plausibility, style coherence. Fix contradictions if found.
Target: each prompt β₯ 80 points (High Quality). If below, self-optimize and output the improved version.
Workflow (Single-scene Mode)
Simpler, one pass:
1. Extract character features and visual style from the scene 2. Determine optimal shot type and composition 3. Generate prompt (same requirements as Step 3-4 above) 4. Output
Output Format
Primary language marked β , secondary marked β:
### Image N | [Shot Type] | [Narrative Function]Scene Description: [Detailed description in primary language]
Text-to-Image Prompt β
([Primary Language]):
[Complete detailed prompt, ready to copy-paste]
Text-to-Image Prompt β ([Secondary Language]):
[Complete prompt adapted to target language conventions]
Negative Prompt: [negative keywords]
Score: [X]/100 | Level: [Product-grade / High Quality / Usable]
Strengths: [One sentence]
Improvements: [If applicable, one sentence]
Prompt Writing Spec
Structure (by priority):
[Style] + [Shot type + Composition + Camera angle] + [Subject + fixed features] + [Action/Expression] + [Environment/Background] + [Lighting/Atmosphere] + [Material/Texture] + [Quality tags] + [Negative prompt]
Bilingual output rules:
Consistency rules:
Diversity rules:
Reference Files
Read on demand:
references/shot-types.md β Shot types, camera angles, narrative rhythm templatesreferences/composition-patterns.md β 12 composition patterns with prompt fragmentsreferences/style-params.md β 30+ style parameters (keywords, quality tags, avoid list, lighting)