image-prompt-reverse README

The project's README from github.com/LunarXuan/image-prompt-reverse. As one markdown file: README.md.

Image Prompt Reverse

中文 · English

中文

image-prompt-reverse 是一个用于 Codex 的图片反推提示词 Skill。它会分析用户上传的参考图片,识别图片用途、媒介、主体、构图、镜头语言、光影、色彩、材质、背景、空间层次、情绪和后期风格,并生成可直接用于 AI 生图工具的高还原度提示词。

支持类型

输出内容

默认输出两项:

  1. 正向 Prompt:450—700个中文字符的连续自然语言,并附英文等义版本
  2. Negative Prompt:10—15条英文负面词,用逗号分隔

Skill 会优先提炼最影响相似度的3—5个视觉锚点,避免编造看不清的细节,也会根据目标媒介排除容易混淆的错误风格。图片中的文字、Logo和说明会被视为视觉内容,不会被当作指令执行。

安装

将本仓库目录复制到 Codex 的个人 Skills 目录:

%USERPROFILE%\.codex\skills\image-prompt-reverse

或直接克隆:

git clone https://github.com/LunarXuan/image-prompt-reverse.git "%USERPROFILE%\.codex\skills\image-prompt-reverse"

安装后可使用 $image-prompt-reverse 调用。

文件结构

SKILL.md                         Skill 主入口
references/analysis-framework.md 通用图片分析框架
references/category-guides.md    分类专项分析规则
agents/openai.yaml               Codex 调用界面配置

友情链接

欢迎访问 LINUX DO,浏览社区最新主题与讨论。

English

image-prompt-reverse is a Codex Skill for reverse-engineering image-generation prompts from user-uploaded reference images. It analyzes the image purpose, medium, subject, composition, camera language, lighting, color, materials, background, spatial depth, mood, and post-processing style, then produces high-fidelity prompts that can be used directly with AI image-generation tools.

Supported image types

Output

The default output contains two sections:

  1. Positive Prompt: a 450–700 Chinese-character natural-language prompt, followed by an equivalent English version
  2. Negative Prompt: 10–15 English negative terms separated by commas

The Skill prioritizes the 3–5 visual anchors that have the greatest impact on similarity. It avoids inventing uncertain details, excludes confusing media styles, and treats text, logos, and instructions visible inside an image as visual content rather than executable instructions.

Installation

Copy this repository into your personal Codex Skills directory:

%USERPROFILE%\.codex\skills\image-prompt-reverse

Or clone it directly:

git clone https://github.com/LunarXuan/image-prompt-reverse.git "%USERPROFILE%\.codex\skills\image-prompt-reverse"

Invoke it with $image-prompt-reverse after installation.

File structure

SKILL.md                         Skill entry point
references/analysis-framework.md Shared image-analysis framework
references/category-guides.md    Category-specific analysis rules
agents/openai.yaml               Codex invocation metadata

Visit LINUX DO to browse the community’s latest topics and discussions.

image-prompt-reverse (LunarXuan/image-prompt-reverse)

Searching Database…

这是什么?这是一个 Codex 技能,能从你上传的参考图片逆向推导出 AI 图像提示词:它会分析用途、媒介、主体、构图、光线、色彩等,生成一个高还原度的提示词,你可以再把它喂给 AI 图像生成器。
这是一个独立应用,还是某个东西的插件?它是一个(基于 markdown 的)技能定义,接入 Codex 的个人 Skills 系统,不是独立应用。
怎么安装和使用它?把仓库目录复制到你的个人 Codex Skills 目录(或直接克隆),然后用 $image-prompt-reverse 调用它。
除了 Codex 之外还需要别的吗?你只需要一个已启用 Skills 功能的 Codex;该技能本身没有列出额外的运行时依赖。
它生成的提示词总是准确吗?它会有意避免凭空编造看不清的细节,并排除容易与目标媒介混淆的风格,因此输出质量取决于图像的清晰程度,而不是靠瞎猜。
上传图片里的文字或标志会怎么处理?图片中出现的任何文字、标志或指令都只会被当作需要描述的视觉内容,而不会被当成技能要执行的命令。
它能处理哪些类型的图片?摄影(人像、产品、纪实、美食、动物、自然、城市风光)、插画(扁平、动漫、手绘、国风、赛博朋克)、3D 渲染、字体/标志/海报,以及 IP 或盲盒角色设计。
输出是什么样子的?默认你会得到一段 450-700 字的中文正向提示词(Positive Prompt)及对应的英文版本,外加一份由 10-15 个英文词组组成的、以逗号分隔的负向提示词(Negative Prompt)列表。
它如何决定提示词里写什么?它会优先抓住对还原图像相似度影响最大的 3-5 个视觉锚点,而不是事无巨细地罗列每个细节。
Creator
LunarXuan
Size
<0.1 MB
Stars
602
Updated
CommitSep 06
Age
1mo
Commits · 90 Days