Use when reviewing scene descriptions from generated stories, debugging scene prompt issues, or adding new checks to scene-descriptions.txt
Interactive workflow for reviewing scene descriptions from generated stories and improving the scene prompt.
/review-scene <story-id-or-url> <page-number>
Examples:
/review-scene job_1769251765157_a4qh1nzza 8/review-scene https://www.magicalstory.ch/create?storyId=job_1769251765157_a4qh1nzza 6Query the database for the story job:
// Extract job ID from URL if needed
const jobId = url.includes('storyId=')
? url.split('storyId=')[1].split('&')[0]
: storyId;
// Query result_data for scene descriptions
SELECT result_data->'sceneDescriptions'->N as scene
FROM story_jobs WHERE id = $1
Show the user:
Wait for user to explain what's wrong:
If the issue reveals a missing check:
prompts/scene-descriptions.txtCheck format:
**N. Check Name:**
- Bullet points explaining what to verify
- WRONG: example of failure
- RIGHT: example of correct behavior
JSON field format:
"checkName": "Brief description of what to verify. PASS/FAIL"
prompts/scene-descriptions.txt - Scene prompt with checksstory_jobs table - Contains result_data->'sceneDescriptions'| Issue Type | Likely Missing Check |
|---|---|
| Wrong location | Location Continuity |
| Characters too close | Distance & Separation |
| Teleporting objects | Object Continuity |
| Weather mismatch | Weather Consistency |
| Scale problems | Scale Feasibility |