forensic-prompt-compiler

forensic-prompt-compiler is a skill for Claude Code from AnastasiyaW/codex-claude-code-config. It costs 218 tokens per session (2,682 once invoked), scanned A, original, MIT.

A method for turning an existing image into one precise prompt for an image-generation model. It describes only visible details and uses different rules for screenshots, ordinary images, sensitive apparel, and reference-driven reconstruction.

In plain words
What is it for?
Use it to describe a reference image for tools such as Midjourney, FLUX, Stable Diffusion, or DALL-E. It can support scene reconstruction and prompt creation from screenshots, photos, or illustrations.
Why use it?
It helps recreate a scene from an image without adding imagined objects, identity, or story. The strict observation rules make the resulting prompt closer to the provided picture.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-code-config plugin — 57 skills, 8 agents shipped together

Good fit Use it to describe a reference image for tools such as Midjourney, FLUX, Stable Diffusion, or DALL-E. It can support scene reconstruction and prompt creation from screenshots, photos, or illustrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anastasiyaw/codex-claude-code-config/forensic-prompt-compiler
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AnastasiyaW/codex-claude-code-config --skill forensic-prompt-compiler
Clone the repo
git clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-config

Made for: Claude Code.

Or install claude-code-config, the plugin that ships this one along with the rest of its 57 skills, 8 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for forensic-prompt-compiler

README.md
[![agentmods](https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/forensic-prompt-compiler/github.svg)](https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/forensic-prompt-compiler)
Your own site
<a href="https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/forensic-prompt-compiler"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/forensic-prompt-compiler/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for forensic-prompt-compiler

Your own site · 80×15
<a href="https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/forensic-prompt-compiler"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/forensic-prompt-compiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 218 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00218 $0.02682
Opus 5 $0.00109 $0.01341
Sonnet 5 $0.00044 $0.00536
Haiku 4.5 $0.00022 $0.00268

Measured 10d ago against content hash dd2ce5dc457a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

forensic-prompt-compiler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ai-ml/forensic-prompt-compiler/SKILL.md · 281 lines

How it starts

The opening of the file, as written. The whole thing — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 281 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 281 lines · 218 tokens per session scan A dd2ce5dc457a

Subscribe to this mod's changes

forensic-prompt-compiler is a skill published in the GitHub repository AnastasiyaW/codex-claude-code-config (149 stars, last pushed yesterday), licensed MIT. It adds 218 tokens to every session and 2,682 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

few-shot-architect

Professional Few Shot Architect skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.

AtulPurohit/Antigravity-Awesome-Skills · 28 tokens

llm-prompt-master

Professional LLM Prompt Master skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.

AtulPurohit/Antigravity-Awesome-Skills · 30 tokens

responsible-ai

Professional Responsible Ai Expert skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.

AtulPurohit/Antigravity-Awesome-Skills · 27 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

prompt-master

Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other…

nidhinjs/prompt-master · 78 tokens

llm-prompting-guide

Prompt format rules for generative video and music models. Use when writing or reviewing a prompt for MiniMax H3 (text/image/reference-to-video with native audio) or MiniMax Music 3 (song generation from caption plus lyrics), in ComfyUI or elsewhere. Do NOT use for chat-assistant prompts, or for generative models not…

sammcj/agentic-coding · 79 tokens