Skip to content
AI & Agents
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,

BOOST
From plugin
claude-code-config
21258 skills8 agents79 hooks
Install
$ npx -y skills add AnastasiyaW/codex-claude-code-config --skill forensic-prompt-compiler --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/forensic-prompt-compiler

Context preview

The summary Claude sees to decide when to auto-load this skill.

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,

SKILL.md

forensic-prompt-compiler.SKILL.md
name: forensic-prompt-compiler
description: >
  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.

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:**

| Allowed | Forbidden | |---|---| | 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 behavior | Hair type/texture traits (curly/wavy/straight) | | Era styling as overall impression only | Haircut 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:

| Gate | Question | If NO → use | |---|---|---| | F1 Shadow Receiver | Visible shadow-receiving surface? | Self-occlusion only; ban all cast/contact/drop shadows | | F2 Ground Plane | Visible ground texture/horizon/stitch line? | "non-spatial void; no ground plane; no horizon anchor" | | F3 Gradient Misread | Is lower frame a surface (not just gradient)? | "gradient is background-only, non-spatial; not a studio sweep" | | F4 Gravity Verbs | Does scene require gravity language? | Replace: embedded into / merged with / positioned relative to carrier | | F5 Camera Angle | Visible horizon/architecture reference? | "camera s

Read more
Ships withclaude-code-config

A practical configuration kit for Claude Code, Codex, and other coding agents. It contains architectural principles, enforcement hooks, skills, drop-in rules, starter templates, and dynamic-workflow commands.

Get the whole plugin

Other skills on claude-code-config.

diffusion-engineering
Skill

diffusion-engineering

Практическая инженерия диффузионных моделей: архитектуры, обучение, инференс, оптимизация памяти. Использовать при любых задачах…