SkillImage generation

AI skill for image generation: reference photo to consistent prompts

A skill is a short instruction file, named SKILL.md, that an AI agent loads when a task matches it. This one is for image work. Give the agent a reference photo or describe a place, and it follows the same steps each time: write a LOCK list (what must not change) and a CHANGE list (the smallest edits), describe the light and lens, then write the prompt. It writes prompts. You run them in your image tool.

Go to the skill file
1

Copy the skill file

Nothing to fill in. Copy it as it is.

SKILL.md31 lines
---name: reference-image-to-better-promptsdescription: Write consistent image-generation or image-editing prompts from a reference photo or a described environment. Use when the user gives a photo, a place, or a style to recreate, or asks for several images that must look like one set.--- # Reference image to better prompts ## When to useThe user provides a reference photo, a place, or a look, and wants new or edited images from it. ## Steps1. Read the reference. Describe only what is visible: subject, pose, clothing, setting, light (direction, softness, color), lens feel (framing, depth of field, angle), color palette. Do not guess names, ages or jobs.2. Ask one question if the goal is unclear: what is the image for, and where will it be used?3. Write a LOCK list: what must stay identical (face, hair, skin tone, proportions, background, light direction). If the task is an edit, the LOCK list comes before the change.4. Write the CHANGE list: the smallest set of changes that reach the goal. One change per line.5. Describe the scene so it agrees with itself: one main light source, matching shadows, believable scale, a lens look that fits the framing.6. Add a DO-NOT list: other people, text, logos, watermarks, changes to age, weight or expression.7. Write the prompt in this order: purpose, LOCK, CHANGE, scene, DO-NOT, output format (same aspect ratio and resolution).8. When producing a set of images, reuse the same light, lens and palette lines in every prompt. ## Check the result- Is the face or identity unchanged?- Does the light on the subject match the scene?- Are the hands, edges and fabric clean when zoomed in?- Does it look like a photograph, not an illustration?If any answer is no, change one thing in the prompt and run it again. Do not rewrite the whole prompt. ## Safety- Only use photos of people who have agreed to the edit.- Do not help create images that show someone doing or being something they were not, if it could mislead.- Do not add a profession's uniform or credentials to a person who does not hold them.

How to use it

  1. 1Create a folder named reference-image-to-better-prompts in your agent’s skills folder. In Claude Code that is a .claude/skills folder inside your project, or in your home folder if you want the skill in every project.
  2. 2Save the text above as SKILL.md inside it.
  3. 3Give the agent a reference photo and say what you want. It should follow the steps and show you the final prompt.
  4. 4Run the prompt in your image tool and use the check list on the result.

A good result looks like

A single, clear prompt with a LOCK list, a short CHANGE list and a scene that agrees with itself, plus a short check you can run on the picture.

Stay safe

  • Use photos of yourself, or of people who have agreed to the edit.
  • Do not use an edit to claim a job, license or rank the person does not have. A blazer is fine. A doctor’s coat on a non-doctor is not.
  • If a site asks you to say when a photo is edited, say so.
  • Keep a photo that still looks like you. Do not use an edit to change your face, body or age.
  • A skill is instructions an agent follows. Read any skill before you install it, including this one.

If it goes wrong

4 known problems, each with a fix

  1. 01

    Problem: The agent skips the LOCK list.

    Fix: Tell it "follow the skill steps in order and show me the LOCK list first".

  2. 02

    Problem: The prompt is too long.

    Fix: Ask for the shortest prompt that keeps the LOCK, CHANGE and DO-NOT lists.

  3. 03

    Problem: Results still vary between images.

    Fix: Reuse the same light and lens lines word for word.

  4. 04

    Problem: The agent does not pick the skill up.

    Fix: Check that the file is named SKILL.md and sits in its own folder inside the skills folder. If it still does not load, paste the file as your first message instead.

Has it been tested?

Not tested yetmodel: none yet · date: none yet

Not yet. This one was written for this page and I have not run it on a specific model yet. Results will vary by tool, so run it once, check the result, and use the fix table above as your checklist. When I test it, the model, the date and the result will be listed here.

Questions

What is the difference between a skill and a prompt?

A prompt is text you paste each time. A skill is a file an agent keeps and loads when a task matches, so the same method is applied without you retyping it.

What do LOCK and CHANGE mean in an image prompt?

LOCK is the list of things that must stay identical, such as the face, hair, background and light direction. CHANGE is the smallest list of edits that reach your goal. Writing LOCK first and keeping CHANGE short stops an editing tool from treating the whole picture as open to change.

Does this skill make the images?

No. It writes the prompt. You run the prompt in an image tool, or in an agent that has one. I have not tested the skill on any model, so treat the first results as a trial.

Does this work without Claude Code?

Yes. In any chat tool, paste the file as your first message and say "follow this skill for the next task". Other coding agents also load skill files: the README of Matt Pocock’s public skills repository lists installs for Codex, GitHub Copilot and Gemini CLI. Support differs by tool, so check yours.

Build this for you

Want this built into your own workflow?

Tell me what you do by hand today. I will say what is safe to automate, what needs a person, and roughly what it would take. I reply within 24 hours.

Wondering what your project will cost?

Get a free price range and timeline in 24 to 48 hours. No commitment.

Get a Free Estimate