dsh-prompt-reverse: Reverse-Engineering Image Prompts — Algorithms Detect Style Slots, You Fill Semantic Slots

dsh-prompt-reverse is a DSH community plugin that decomposes prompts into style slots and semantic slots. Style attributes—color palette, contrast, color temperature, sharpness, grain, etc.—are measured purely algorithmically from locally decoded pixels via ffmpeg. Semantic attributes—subject, action, emotion, etc.—accept only caller-supplied `semantic` parameters; if any field is left empty, the plugin explicitly reports the omission. The plugin does not invoke any multimodal model. Negative prompts are derived from deviation rules; when the target model is flux, negative prompts are omitted. Well suited for agents or text-to-image pipelines that require reproducible style metrics and self-verified semantics. Requires Node >= 22; the working directory defaults to `~/.dsh/prompt-reverse/work`.

Read More