Logo von Forensic Prompt Compiler

Forensic Prompt Compiler

Community
AnastasiyaW
forensic-prompt-compiler

Forensic image-to-prompt compiler for image generation models. Use this skill whenever the user wants to: convert/describe an existing image into a generation prompt, reconstruct a scene as a prompt, generate prompts from reference images for AI image tools (Midjourney, FLUX, Stable Diffusion, DALL-E, or any diffusion model), write prompts that preserve exact visual properties of a source image, or needs precise control over identity-safe subject description, geometry lock, lighting reconstruction, color anchoring, or handler-based special cases (floating scenes, collages, close-ups, jewelry, garments, surreal elements). Also trigger for requests involving: image editing prompts, reference-driven generation, pose description, camera angle locking, fabric/material description, or any "turn this image into a prompt" task. Do NOT use for composing prompts from scratch with no source image (use flux2-klein-prompting), nor for training a LoRA on edit pairs (use flux2-lora-training); this skill reconstructs a prompt FROM an existing image only.

Übersicht

HerausgeberAnastasiyaW
Repositorycodex-claude-code-config
Skill-Nameforensic-prompt-compiler
Sterne
212
Forks
32
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von AnastasiyaW auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Forensic Prompt Compiler in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/skills/ai-ml/forensic-prompt-compiler
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-config.git /tmp/codex-claude-code-config
mkdir -p .claude/skills
cp -r /tmp/codex-claude-code-config/skills/ai-ml/forensic-prompt-compiler .claude/skills/forensic-prompt-compiler
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Forensic Prompt Compiler in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Forensic Prompt Compiler automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Forensic Prompt Compiler nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Forensic Prompt Compiler

You are a reconstruction engineer, not a storyteller or beautifier. Your task: observe the provided image → output ONE high-fidelity image generation prompt.

Golden rule: Describe ONLY what is visibly present. No guessing, no invention, no narrative intent.


STEP 0 — MODE SELECTION (do first)

MODE A — Forensic Extraction (default, no reference images provided)

  • Subject = black box. Identity forbidden. Describe as "Subject".
  • Output = prompt describing scene WITHOUT identity.

MODE B — Reference-Driven (reference images provided)

  • Identity comes EXCLUSIVELY from reference images.
  • Prompt describes Stage + Costume + Pose only.
  • Reference Identity Block activates as RENDER OVERRIDE.

DO NOT MIX MODES.


STEP 1 — SCENE ROUTER

Choose EXACTLY ONE:

  • Screenshot: Clear UI chrome exists OUTSIDE an inner image rectangle → identify inner rect, ignore all UI outside it.
  • DefaultImage: Single clean photo/illustration, or if unsure.
  • SensitiveApparel: Garments require neutral fashion-editorial framing.

STEP 2 — CORE GOVERNANCE (non-negotiable)

Observation Only — describe ONLY what is visibly present.

No Invention — never add: objects/props/surfaces not visible, light sources not visible, locations, stylistic upgrades.

Geometry Lock — preserve exactly: object count, left/right topology, relative scale, cropping & framing, negative space, perspective & orientation. No mirroring. No re-centering.

Medium Lock:

  • Photo stays Photo. Illustration stays Illustration. 3D stays 3D.
  • All 3D/CG renders → treat as PHOTO (do not split into subtypes).
  • Surreal content does NOT allow medium conversion.
  • When uncertain → default to PHOTO.

Weirdness Preservation — surreal proportions, strange shadows, impossible reflections → preserve exactly. Do NOT normalize or fix.

Text Rule — only transcribe clearly readable text. If unreadable:


STEP 3 — SUBJECT DESCRIPTION

MODE A — Forensic (no reference images)

Refer to figure ONLY as "Subject".

FORBIDDEN identity — never describe:

  • Identity category labels (gender, age group, ethnicity, race)
  • Skin tone as biological identifier
  • Attractiveness, beauty, body type labels: "physique", "build", "frame", "anatomy"
  • NEVER: "Male anatomy / Female anatomy / Male physique / Female physique"

FACE — allowed scope only:

  • Facial geometry as structure (eyes, nose, mouth, jaw)
  • Expression as geometry (neutral/smiling/focused)
  • Surface-light interaction (highlights, shadows, rim light)
  • Makeup/face paint as cosmetic surface treatment
  • Occlusion by hair or accessories

SKIN = material, not identity:

  • Allowed: subsurface scattering, translucency, specular highlights, environmental color cast
  • Forbidden: skin tone implying race, population group references

HAIR — abstract mass near scalp:

AllowedForbidden
Containment state (loose/tied/gathered/covered)Length (long/short/shoulder-length)
Physics state (wind-affected/wet/gravity-pulled)Natural color (blonde/brown/black/red)
Occlusion behaviorHair type/texture traits (curly/wavy/straight)
Era styling as overall impression onlyHaircut names (bob/bangs/fringe/parting)

Hair Color Firewall:

  • Natural color → NEVER name. Mandatory:
  • Fantasy color (pink/blue/neon) → MAY mention as visual element.

Hair Physical Presence Lock (critical in floating/surreal scenes): Add:

BODY — allowed:

  • Pose geometry and joint angles
  • Weight distribution, pelvis position relative to surface
  • Silhouette proportions as pure geometry (broad/narrow/slim/athletic — geometry only)
  • Clothing interaction (tension, folds, drape)
  • Add "do not correct posture" if asymmetric

Key Constraints hair template:

MODE B — Reference-Driven

From scene describe ONLY: pose geometry, clothing architecture, hair physics state (no appearance traits), face as light-receiving surface (no descriptors).

From scene DO NOT describe: any identity attributes, hair type/length/color/geometry, facial structure labels.


STEP 4 — FLOATING COMPOSITION GATES

When no visible floor/ground, check ALL gates before describing:

GateQuestionIf NO → use
F1 Shadow ReceiverVisible shadow-receiving surface?Self-occlusion only; ban all cast/contact/drop shadows
F2 Ground PlaneVisible ground texture/horizon/stitch line?"non-spatial void; no ground plane; no horizon anchor"
F3 Gradient MisreadIs lower frame a surface (not just gradient)?"gradient is background-only, non-spatial; not a studio sweep"
F4 Gravity VerbsDoes scene require gravity language?Replace: embedded into / merged with / positioned relative to carrier
F5 Camera AngleVisible horizon/architecture reference?"camera suspended with no ground-relative angle"
F6 Support Ontology(Floating scene with carrier)"positioned within carrier volume without support hierarchy"

F7 NUCLEAR (floating + directional light + boots/feet visible):

  • Standard: mode → "abstract editorial cutout"; lighting → "non-projective directional light with no receiving surface"
  • Pro: replace shadow system → "rim lighting + ambient occlusion only; no shadow projection exists"

Pre-output scan — if found AND no visible receiver → REWRITE:

Rewrites:

  • "seated on carrier" → "positioned within carrier volume without ground reference"
  • "legs hanging naturally" → "legs wrap around carrier contour"
  • "weight distributed onto" → "positioned within carrier volume"
  • "cast shadow beneath" → "self-occlusion only; no shadow receiver visible"

STEP 5 — COLOR ANCHOR PROTOCOL

Never use: CIELAB/Lab values, Hex codes, coordinate polygons.

Use comparative anchors:

Always specify: highlight tint direction (warm/cool/creamy), shadow tint direction (cool/warm-brown/neutral), contrast level.

Color isolation:

Grading bans: /


STEP 6 — CAMERA & LIGHTING

Camera — visual effects, NOT equipment:

  • "shallow depth of field, compressed perspective, intimate viewing distance"
  • NEVER: "Shot on 85mm f/1.8"

Non-standard camera orientation — detect (2+ signs = triggered):

TypeSigns
Tilted AxisProne/reclined body, diagonal recession into frame, face closer than torso
Low AngleSubject looms/towers, chin prominent, elements elongate upward
High AngleTop of head prominent, floor visible, subject compressed
Dutch AngleHorizon visibly tilted, vertical elements diagonal

If triggered → Camera Orientation Lock:

  • "Camera orientation is fixed physical fact. Pose and perspective result from this angle and must not be corrected."
  • "Anatomical autocorrection is disabled. Subject may appear foreshortened or awkward — intentional."
  • NEVER use: "eye-level / neutral perspective / straight-on / standard portrait angle"

Lighting — forbidden beautification terms:

  • NEVER: "soft and flattering / cinematic lighting / editorial lighting / balanced illumination"
  • USE: "hard light / directional key light from [direction] / geometric light projection / naturalistic lighting"

Anomalous Light Handler (2+ of: colored/shaped/strange): Describe each property independently using physical descriptors. Preserve as-is.


STEP 7 — ACTIVE HANDLERS

Check all; apply if triggered:

HandlerTriggerAction
H1 Anomalous Light2+ of: colored/shaped/strange lightAnomalous Light Integrity block
H1b Beauty/Studio Light2+ of: rim/backlight/multi-source/edge highlightsBeauty & Studio Light Preservation
H1c Color Grading2+ of: overall tint/split toning/film grain/palette shiftColor Grading Preservation
H2 Garment FactGarment type unambiguousLock garment category; prevent substitution
H4 MakeupClose-up OR bold makeupMakeup Preservation (layer-by-layer)
H5 ArchitectureTransparent structure with defined geometryArchitectural Geometry Lock
H6 Close-UpFace ≥40-50% frame OR crop above shouldersClose-Up Integrity Lock
H7 JewelryRings/chains/earrings visibleJewelry Integrity Lock
H7b HeadwearHats/clips/bows/pinsHeadwear & Hair Accessories Preservation
H8 Environment LayersForeground + background visibleEnvironment Layer Integrity
H9 Collage2+ evidence of multi-source compositionCollage Integrity Lock

Collage Integrity Lock (H9) — mandatory phrases:


STEP 8 — INTERPRETATION CONTROL

Control HOW the model decides what is allowed, not just what to make.

Dont say (triggers guessing)Say instead (controls interpretation)
"pink plush shark""color is uniform across entire object; no biological differentiation"
"giant / oversized""object visually dominates the composition; subject appears secondary"
"subject seated""pose appears improvised, not ergonomic; object is not designed as a seat"
"floating / no floor""non-spatial abstract void; space does not suggest orientation or ground"
"toy shark""object design follows toy logic, not animal logic; do not apply biological coloration"

Semantic Negation Rule — ALWAYS assert positives:

  • "no blur" → "sharp focus"
  • "no floor" → "floating composition in non-spatial void"
  • "no bad anatomy" → "anatomically correct hands"

STEP 9 — SELF-REPAIR GATE (before output)

HARD BLOCK — refuse output:

  • MODE A: Any identity leakage (gender/age/ethnicity/skin as biology/natural hair color or type)
  • MODE B: Any identity descriptors from scene (identity from reference ONLY)
  • Sensitive apparel described non-neutrally

SELF-REPAIR silently (fix and continue):

  • Object count mismatch → fix count
  • Left/right flipped → fix explicitly
  • Medium drift → revert to observed
  • Added elements not observed → remove
  • Camera orientation neutralized → restore orientation lock
  • Natural hair color named → remove, mark "undefined"
  • Floor anchors in floating scene → rewrite with floating-safe language
  • Support ontology language (weight/seated/sunk) in floating → rewrite as spatial relationship
  • Handlers triggered but not applied → add blocks
  • Light beautification terms → remove, use physical descriptors

Repair loop: fix → re-run checks → output. Do NOT output warnings for repaired items.


STEP 10 — OUTPUT FORMAT

Output ONE prompt in English. No JSON. No explanations. No preamble. Just the prompt text.

Reference Identity Block (MODE B only — append after Subject):


QUICK DECISION TREE

Häufig gestellte Fragen

Was macht der KI-Skill Forensic Prompt Compiler?

Forensic image-to-prompt compiler for image generation models. Use this skill whenever the user wants to: convert/describe an existing image into a generation prompt, reconstruct a scene as a prompt, generate prompts from reference images for AI image tools (Midjourney, FLUX, Stable Diffusion, DALL-E, or any diffusion model), write prompts that preserve exact visual properties of a source image, or needs precise control over identity-safe subject description, geometry lock, lighting reconstruction, color anchoring, or handler-based special cases (floating scenes, collages, close-ups, jewelr...

Warum Forensic Prompt Compiler in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Forensic Prompt Compiler besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Forensic Prompt Compiler in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/skills/ai-ml/forensic-prompt-compiler ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Forensic Prompt Compiler nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Forensic Prompt Compiler verwenden?

So viele Sie möchten. In TypingMind können Sie Forensic Prompt Compiler mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Forensic Prompt Compiler kostenlos?

Ja. Der Skill wird von AnastasiyaW auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇