Image To Prompt logo

Image To Prompt

Community
jiemianduan
image-to-prompt

Analyze one or more reference images and reconstruct faithful, reusable image-generation prompts in Chinese and English. Use when users want to reverse-engineer, infer, restore, imitate, or write prompts from visual references.

Overview

Publisherjiemianduan
Repositoryimage-to-prompt
Skill nameimage-to-prompt
Stars
35
Forks
3
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jiemianduan on GitHub. Read the source before you install it.

Installation

Install the Image To Prompt AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jiemianduan/image-to-prompt/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiemianduan/image-to-prompt.git \
  .claude/skills/image-to-prompt
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image To Prompt in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Image To Prompt on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Image To Prompt is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Image to Prompt

Reconstruct prompts from visible evidence. Describe what can be reproduced, distinguish observation from inference, and never pretend to know the original prompt, seed, model, lens, or generation settings.

Workflow

  1. Confirm that at least one usable image is available. If not, ask the user to upload it.
  2. Inspect the image at the highest available detail. For a local file, use the image-viewing tool before analyzing it.
  3. Identify the image category: photograph, illustration, anime, 3D render, product image, poster/editorial graphic, UI, architecture/interior, or mixed media.
  4. Decompose the image using the analysis order below.
  5. Resolve the user's target:
    • Default: produce a model-neutral reconstruction prompt.
    • If a model is named, adapt syntax and parameter suggestions to that model.
    • If the user wants only the prompt, keep analysis brief but still perform it internally.
    • For every image, also produce a complete editable version of the prompt. Keep the standard Chinese and English prompts concrete so they remain usable without editing.
  6. Produce the output in the prescribed format.
  7. State material uncertainty only when it affects reproducibility.

Analysis Order

Prioritize high-impact visual facts:

  1. Subject and action — identity category, count, pose, expression, interaction, clothing, props.
  2. Composition — orientation, crop, subject placement, symmetry, foreground/midground/background, negative space, viewpoint.
  3. Environment — location, background elements, weather, time-of-day cues, atmosphere.
  4. Lighting — direction, softness, contrast, key/fill/rim behavior, practical lights, shadow character.
  5. Color — dominant palette, accent colors, saturation, temperature, tonal range.
  6. Surface and detail — materials, texture, depth of field, grain, bloom, motion, reflections.
  7. Visual language — photographic, cinematic, editorial, commercial, painterly, vector, cel-shaded, clay, CGI, collage, and other observable traits.
  8. Capture/render cues — plausible shot scale, perspective, focal-length range, rendering method, or post-processing. Mark these as estimates when not directly verifiable.
  9. Text and layout — transcribe only legible text; describe uncertain text as layout blocks rather than inventing wording.

Use spatially explicit phrases such as “subject in the lower-right third” or “soft backlight from frame left.” Prefer concrete visual properties over vague quality words.

Fidelity Rules

  • Preserve the reference's subject count, spatial relationships, camera angle, crop, lighting direction, palette, and major background geometry.
  • Do not add narrative, symbolism, props, logos, text, anatomy, or scenery that is not visible.
  • Do not identify a real person from appearance alone. Describe observable physical and styling traits.
  • Do not assert an artist, brand, camera, lens, model, LoRA, checkpoint, seed, or parameter unless supplied by the user or visibly documented.
  • If style attribution is uncertain, describe the visual characteristics instead of guessing a creator's name.
  • Treat focal length, aperture, film stock, render engine, and generation parameters as reproduction suggestions, not recovered facts.
  • For unreadable text, write [unreadable text] or describe its placement and typographic character.
  • For multiple references, identify which traits come from each image and flag contradictions instead of silently blending them.
  • Keep the prompt internally consistent. Remove terms that fight the observed image, even if they are fashionable prompt keywords.

Prompt Construction

Build the main prompt in this order:

subject → action/pose → environment → composition/viewpoint → lighting → color → materials/detail → medium/style → finish

Write natural, information-dense phrases. Avoid keyword spam, duplicated adjectives, unsupported “8K/masterpiece” language, and excessive camera jargon.

For model-specific output:

  • Midjourney: place the natural-language prompt first; add only useful aspect ratio, stylize, chaos, or image-weight suggestions. Never claim exact original values.
  • Stable Diffusion / SDXL / FLUX: separate positive and negative prompts; suggest dimensions or aspect ratio and optional guidance/steps only when useful. Treat values as starting points.
  • DALL-E or model-neutral: use coherent natural language with explicit composition and constraints; do not add unsupported command syntax.

Default Output

Respond in the user's language. Unless the user asks for another format, return:

画面拆解

A compact factual summary covering subject, composition, lighting, color, medium/style, and key textures. Mark important estimates with 推测.

中文 Prompt

One polished, copy-ready reconstruction prompt.

English Prompt

One polished, copy-ready English prompt. Optimize it independently rather than translating word-for-word.

Negative Prompt

Include only defects and unwanted deviations relevant to this image. Omit this section when the target model does not benefit from negative prompts.

建议参数

Give aspect ratio first, then a small number of model-appropriate starting suggestions. Label all inferred settings as recommendations.

可编辑变量

Always provide one complete, copy-ready editable prompt rather than a separate list of variable names. Base it on the Chinese prompt and preserve all fixed visual anchors as normal prose.

Choose the number of editable spans according to the image and likely reuse needs; there is no fixed minimum or maximum. Expose meaningful, high-impact elements such as the subject, clothing, action, environment, lighting, palette, material, style, or aspect ratio, while leaving structural details fixed when changing them would destroy the reference's defining composition.

Wrap each editable value directly in full-width brackets 【】. Put a useful current value inside each bracket so the prompt works immediately without editing, and so the user can replace only the bracketed text. Do not use empty brackets, abstract variable labels, numbered placeholders, or a detached variable list.

Example:

一位【穿深红色长外套的年轻女性】站在【雨夜的城市街道】上,柔和的【蓝紫色霓虹侧光】从画面左侧照入,保持人物居中的中景构图与潮湿路面反光。

Special Cases

  • Poster or graphic design: separate visual prompt from exact copy. Preserve hierarchy, grid, spacing, typography category, and text placement.
  • UI screenshot: describe information architecture, layout, component styling, density, color tokens, and interaction states. Do not treat it as a photographic scene.
  • Product image: prioritize product geometry, material, camera angle, grounding shadow, reflections, backdrop, and commercial lighting.
  • Portrait: prioritize pose, gaze, crop, facial expression, hair, wardrobe, background separation, and skin-light interaction without inferring identity.
  • Highly stylized image: describe line quality, shape language, shading method, texture, palette, and composition before using genre labels.
  • Poor-quality or obstructed image: state the limiting issue and provide a best-effort prompt without inventing hidden details.

Quality Check

Before responding, verify that:

  • The main prompt preserves the reference's dominant visual structure.
  • Observations and reproduction suggestions are not presented as the same thing.
  • The Chinese and English prompts are both directly usable.
  • Every image has a complete editable prompt whose bracketed values are immediately usable defaults.
  • The editable prompt uses 【】 only around replaceable values and does not reduce the output to a variable list.
  • The negative prompt does not accidentally remove a defining feature.
  • The output contains no invented text or falsely precise settings.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Image To Prompt AI skill do?

Analyze one or more reference images and reconstruct faithful, reusable image-generation prompts in Chinese and English. Use when users want to reverse-engineer, infer, restore, imitate, or write prompts from visual references.

Why use Image To Prompt on TypingMind?

Because you install it once and use it with any model. Image To Prompt is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Image To Prompt in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jiemianduan/image-to-prompt/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Image To Prompt?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Image To Prompt?

As many as you like. As long as a model supports skills, you can use Image To Prompt with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Image To Prompt AI skill free?

Yes. It is published on GitHub by jiemianduan under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇