forensic-prompt-compiler
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "forensic-prompt-compiler":https://skillpi.com/zh/skills/deepskill-ee36e4f3511326b5076dc6672c1aa4d862585ec7fc33aa14b98504d2f21cbffd。安装前核对上游来源和版本:https://github.com/AnastasiyaW/codex-claude-code-config。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于图像生成模型的图像转提示词编译器。将现有图像转换为生成提示词、将场景重构为提示词、或根据参考图像为 Midjourney、FLUX、Stable Diffusion、DALL-E 等生成能保留源图像精确视觉属性的提示词。适用于身份安全主体描述、几何锁定、光照重建、色彩锚定以及悬浮场景、拼贴画、特写、珠宝、服装或超现实元素等基于处理器的特殊场景的精确控制。触发条件包括图像编辑提示词、参考驱动生成、姿态描述、相机角度锁定与面料/材质描述。本技能仅用于从现有图像重构提示词;不用于无源图像从头编写提示词或用于基于编辑对训练 LoRA 的情形。
介绍来源: third_party · AnastasiyaW · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
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 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):
| Type | Signs |
|---|---|
| Tilted Axis | Prone/reclined body, diagonal recession into frame, face closer than torso |
| Low Angle | Subject looms/towers, chin prominent, elements elongate upward |
| High Angle | Top of head prominent, floor visible, subject compressed |
| Dutch Angle | Horizon 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:
| Handler | Trigger | Action |
|---|---|---|
| H1 Anomalous Light | 2+ of: colored/shaped/strange light | Anomalous Light Integrity block |
| H1b Beauty/Studio Light | 2+ of: rim/backlight/multi-source/edge highlights | Beauty & Studio Light Preservation |
| H1c Color Grading | 2+ of: overall tint/split toning/film grain/palette shift | Color Grading Preservation |
| H2 Garment Fact | Garment type unambiguous | Lock garment category; prevent substitution |
| H4 Makeup | Close-up OR bold makeup | Makeup Preservation (layer-by-layer) |
| H5 Architecture | Transparent structure with defined geometry | Architectural Geometry Lock |
| H6 Close-Up | Face ≥40-50% frame OR crop above shoulders | Close-Up Integrity Lock |
| H7 Jewelry | Rings/chains/earrings visible | Jewelry Integrity Lock |
| H7b Headwear | Hats/clips/bows/pins | Headwear & Hair Accessories Preservation |
| H8 Environment Layers | Foreground + background visible | Environment Layer Integrity |
| H9 Collage | 2+ evidence of multi-source composition | Collage 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
版本历史
-
v2026.10.24
GitHub ↗
原版更新说明
Three ideas from this month's agent-harness news, adopted as checks rather than prompts. ## New - **Output legibility** — [`docs/output-legibility.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/output-legibility.md). Karpathy's readability ladder (STE-style text, diagram, HTML, video), plus the two ASD-STE100 rules that need no licensed dictionary: one concept keeps one term, and sentences stay short. - **`scripts/term_drift_check.py`** — checks agent output against a project glossary. It flags synonyms of your terms (`stem*` covers inflection, so it works in Russian too) and overlong sentences, and skips code, URLs and HTML comments. Exit `0` clean, `1` findings, `2` not checked. It ships with a self-test whose must-fail controls catch six deliberate breaks of the logic. - **Bounded harness-improvement pilot** — [`docs/harness-improvement-pilot.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/harness-improvement-pilot.md). The method behind Google Research's Harness², without the auto-patcher: a frozen suite with a held-out case, one change per candidate, strict improvement and no safety regression. - **Dead-code sweep** — a new reference in the `refactoring-safely` skill, after OpenAI's GPT-6 maintenance guide. It covers a read-only audit with production evidence and one small draft PR per removal, and keeps killswitches and safeguards out of scope. ## Changed - `rules/quality-code.md`: when you change code, update or delete the comment next to it in the same commit. Research suggests a wrong or stale comment misleads a model more than a missing one. - `CLAUDE.md`: new Harness² and Output Legibility sections. Full changelog: [`UPDATES.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/UPDATES.md) · PRs #18, #19
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决AI图像生成中的核心痛点:将现有图像精确转换为生成提示词
- 覆盖多种复杂场景:身份安全描述、几何锁定、光照重建、色彩锚定、特殊场景处理
- 明确区分适用边界,避免与其他Skill功能重叠
亮点
- 触发词覆盖全面,包含多种图像转提示词的场景变体
- 明确排除不适用场景(无源图像时、LoRA训练),边界清晰
- description位置正确,内容完整无截断
亮点
- 10个清晰步骤划分,每个步骤有明确目标和出口条件
- 包含快速决策树和端到端示例
- frontmatter完整,文档结构清晰易读
待提升项
-
部分异常处理依赖内部修复机制 原报告严重程度:轻微
STEP 9中的SELF-REPAIR机制虽然能自动修复部分问题,但缺乏对用户的明确反馈
改进建议:建议在输出中添加修复日志或警告机制,提高透明度
亮点
- 覆盖主要异常情况:身份泄漏、对象计数、左右翻转、介质漂移等
- 有明确的硬阻断条件,防止生成不符合要求的提示词
- 包含详细的修复循环机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。