Get Prompt From Image

Studies a reference image you like and writes a detailed prompt in Chinese and English, plus a negative prompt, for recreating its look with AI.

AI Images & Photospromptsreverse engineeringimage generationreference imagesby wuyoscar6kGitHub

What it is

Get Prompt from Image is a reverse-engineering helper for people who see a photo, illustration, 3D render, product shot, poster or logo they like and want to make something similar with an AI image generator. You share the image, and the agent returns a prompt you can paste straight into an image tool, rather than an ordinary description. It is not meant for pulling text out of an image (OCR) or simple captioning. It needs no extra software or accounts, because it only writes text.

The agent analyzes the picture against a twelve-part checklist covering purpose, medium, subject, composition, camera angle, lighting, color, materials, depth and background, mood, post-processing and the key visual anchors. It adds specific guidance for the subject type, from portraits, food and vehicles to chibi collectible toys, and a style-fingerprint method for illustrations. It picks the three to five details that matter most for similarity and puts them early in the prompt. It states the medium clearly, for example photo versus 3D render, and describes brands, characters and artists by visible traits instead of naming them.

The output has exactly two parts: a Chinese prompt of 450 to 700 characters with an English version of the same prompt, and 10 to 15 English negative terms chosen for that image. The analysis itself stays hidden. It will not ask for readable logos, watermarks or packaging text, and it warns that image models may not render exact text reliably. You still need a separate image generator to make the picture.

What it can do

  • Writes a long natural-language prompt in Chinese plus a matching English version.
  • Adds 10 to 15 negative prompt terms chosen for the specific image and medium.
  • Describes composition, camera, lighting, color, materials, depth and post-processing in concrete terms.
  • Applies separate rules for 16 subject types, including portraits, products, food, architecture and logos.
  • Identifies an illustration's style fingerprint so a recreated image matches its drawing language.
  • Describes brands, characters and artist styles by visible traits rather than protected names.

When to use it

  • You found a moody café photo on Pinterest and want a prompt to make similar shots for your own brand.
  • A client sent a 3D product render as a reference and you need to recreate the look in Midjourney or GPT Image.
  • You love the style of an illustrated poster and want a prompt that captures it without naming the artist.
  • You are learning to write prompts and want to see how a finished image breaks down into prompt language.

How it works

  1. 1Inspects the image at the best available quality and quietly decides its purpose, medium and subject type.
  2. 2Applies the general analysis checklist, then only the subject guides that fit, plus the illustration guide when relevant.
  3. 3Selects the three to five visual anchors that most affect similarity and places them early in the prompt.
  4. 4Sets clear medium boundaries and picks negative terms that exclude the wrong medium and common defects.
  5. 5Outputs only the Chinese and English prompt and the negative prompt, without showing its reasoning.

Try asking

“Reverse-engineer a prompt from this image so I can recreate it.”
“Extract an image-generation prompt from this product photo.”
“Write an English prompt and negative prompt that would recreate this illustration's style.”
“Get the prompt from this poster, but leave a reserved area for my own text.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/wuyoscar/GPT-Image2-Skill/tree/main/skills/get-prompt-from-image
pnpm
pnpm dlx skills add https://github.com/wuyoscar/GPT-Image2-Skill/tree/main/skills/get-prompt-from-image

Install as a Claude Code plugin

Run these inside Claude Code. The plugin may bundle related skills from the same author.

Claude Code
/plugin marketplace add wuyoscar/GPT-Image2-Skill
/plugin install gpt-image@wuyoscar-skills

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the get-prompt-from-image folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/wuyoscar/GPT-Image2-Skill.git
mkdir -p ~/.claude/skills
cp -r GPT-Image2-Skill/skills/get-prompt-from-image ~/.claude/skills/get-prompt-from-image

Then just ask in plain language, for example: “Reverse-engineer a prompt from this image so I can recreate it.”