I kept running into the same problem: long prompts are hard for me to read. A wall of text hides what is actually in there and suddenly you notice that the result is not what you actually had visualized. So I built a small tool to break them apart, and I am sharing it in case it helps someone else.
What it does
You paste a long image or video prompt. It gives the same prompt back, split into short sections:
- 🎬 Scene: what is happening
- 👤 Persona: who or what is in it
- 🌆 Atmosphere & Location: place, time, lighting, mood
- 📷 Camera & Style: shot, lens, movement, art style
- 🧩 Other Details: aspect ratio, length, resolution, sound
- 🚫 Avoid: negative prompts
There are two views: flat cards, and a treemap that shows where the prompt spends its words.
It only rearranges your prompt. It is told not to add or change anything.
Heads-up before you try it
- It needs your own OpenAI API key. An OpenAI model does the splitting, so your prompt is sent to OpenAI.
- In my testing, one prompt costs under a cent and takes about 5 to 11 seconds (slower with low cost gpt model, during peak usage hrs)
- I have not tested it with a local model yet. The code has a setting to point it at another server, so Ollama or LM Studio may work. If you try it, tell me how it goes.
How to run it
- It runs on your own computer as a small web page.
- It needs Node.js 18 or newer. There is nothing else to install.
- Setup and run steps are in the README.
Link
https://github.com/parking-bird/prompt-anatomy
Free and open source (MIT-0). Fork it and change it however you like.
Feedback is welcome, especially on the section names and anything that is missing.