Character & Background Extraction
Parse story.md to extract unique characters and locations, then write detailed
image-generation prompts. Save as characters.json and backgrounds.json.
Instructions
Characters
- Identify every unique character mentioned across all scenes.
- For each, generate a detailed image prompt covering:
- Physical appearance (age, build, skin tone, hair, eyes)
- Clothing and accessories (era/setting-appropriate)
- Expression and pose (neutral, full body, for reference sheet)
- Art style suffix:
"3D animated character, Pixar-style rendering, full body, character reference sheet, white background, high detail, soft lighting"
- Assign IDs sequentially:
char_001, char_002, ...
- Record which scene numbers each character appears in.
Backgrounds
- Identify every unique location across all scenes.
- Deduplicate: same location across multiple scenes = same
bg_id.
- For each, generate a detailed image prompt covering:
- Environment type (interior/exterior)
- Architectural or natural details
- Lighting conditions and time of day
- Mood and atmosphere
- Art style suffix:
"3D animated environment, cinematic wide shot, no characters, high detail, Pixar-style rendering"
- Assign IDs sequentially:
bg_001, bg_002, ...
- Record which scene numbers each background appears in.
Output Files
characters.json
{
"characters": [
{
"character_id": "char_001",
"name": "Character Name",
"description": "Brief one-line description",
"prompt": "Full detailed image-generation prompt...",
"scenes_appearing": [1, 2, 3]
}
]
}
backgrounds.json
{
"backgrounds": [
{
"bg_id": "bg_001",
"name": "Location Name",
"description": "Brief one-line description",
"prompt": "Full detailed image-generation prompt...",
"scenes_used_in": [1, 5, 7]
}
]
}
Review Gate (MANDATORY)
After saving both JSON files, present this EXACTLY:
✅ Character & Background Extraction complete.
📋 Summary:
- Characters extracted: [X] → saved to characters.json
[char_001: "Name", char_002: "Name", ...]
- Backgrounds extracted: [X] → saved to backgrounds.json
[bg_001: "Name", bg_002: "Name", ...]
👉 Please review both JSON files. Key things to check:
- Are all characters from the story captured?
- Are the image-generation prompts detailed enough?
- Are all unique locations identified (no duplicates, no missing)?
- Do the art style directives match your vision?
You can:
- Approve both files → say "approved" or "proceed"
- Request changes → e.g., "make Luna's hair blonde", "add detail to bg_002"
- Edit the JSON files directly → tell me when done
⏸️ Waiting for your approval before generating images.
NEVER proceed to the next skill automatically. Wait for explicit approval.
Allow iterative refinement — update JSON, summarize changes, ask for approval again.
1---2name: extracting-characters-and-backgrounds3description: Reads story.md and extracts all unique characters and background locations. Generates detailed Pixar-style 3D image-generation prompts for each, saving them as characters.json and backgrounds.json. Part of the Story-to-Animation pipeline (Step 2 of 5). Use when story.md exists and the user wants to prepare character and background prompts for AI image generation. After generating both JSON files, ALWAYS present the output and wait for explicit user approval. Do NOT automatically trigger the next pipeline step.4---56# Character & Background Extraction78Parse `story.md` to extract unique characters and locations, then write detailed9image-generation prompts. Save as `characters.json` and `backgrounds.json`.1011## Instructions1213### Characters14151. Identify every unique character mentioned across all scenes.162. For each, generate a detailed image prompt covering:17 - Physical appearance (age, build, skin tone, hair, eyes)18 - Clothing and accessories (era/setting-appropriate)19 - Expression and pose (neutral, full body, for reference sheet)20 - Art style suffix: `"3D animated character, Pixar-style rendering, full body, character reference sheet, white background, high detail, soft lighting"`213. Assign IDs sequentially: `char_001`, `char_002`, ...224. Record which scene numbers each character appears in.2324### Backgrounds25261. Identify every unique location across all scenes.272. Deduplicate: same location across multiple scenes = same `bg_id`.283. For each, generate a detailed image prompt covering:29 - Environment type (interior/exterior)30 - Architectural or natural details31 - Lighting conditions and time of day32 - Mood and atmosphere33 - Art style suffix: `"3D animated environment, cinematic wide shot, no characters, high detail, Pixar-style rendering"`344. Assign IDs sequentially: `bg_001`, `bg_002`, ...355. Record which scene numbers each background appears in.3637## Output Files3839### characters.json40```json41{42 "characters": [43 {44 "character_id": "char_001",45 "name": "Character Name",46 "description": "Brief one-line description",47 "prompt": "Full detailed image-generation prompt...",48 "scenes_appearing": [1, 2, 3]49 }50 ]51}52```5354### backgrounds.json55```json56{57 "backgrounds": [58 {59 "bg_id": "bg_001",60 "name": "Location Name",61 "description": "Brief one-line description",62 "prompt": "Full detailed image-generation prompt...",63 "scenes_used_in": [1, 5, 7]64 }65 ]66}67```6869## Review Gate (MANDATORY)7071After saving both JSON files, present this EXACTLY:7273```74✅ Character & Background Extraction complete.7576📋 Summary:77- Characters extracted: [X] → saved to characters.json78 [char_001: "Name", char_002: "Name", ...]79- Backgrounds extracted: [X] → saved to backgrounds.json80 [bg_001: "Name", bg_002: "Name", ...]8182👉 Please review both JSON files. Key things to check:83 - Are all characters from the story captured?84 - Are the image-generation prompts detailed enough?85 - Are all unique locations identified (no duplicates, no missing)?86 - Do the art style directives match your vision?8788You can:89 - Approve both files → say "approved" or "proceed"90 - Request changes → e.g., "make Luna's hair blonde", "add detail to bg_002"91 - Edit the JSON files directly → tell me when done9293⏸️ Waiting for your approval before generating images.94```9596**NEVER** proceed to the next skill automatically. Wait for explicit approval.9798Allow iterative refinement — update JSON, summarize changes, ask for approval again.