Spiral gives your agent every tool with one account. Browse the tools →

How to Add the Image Region Edits Skill to Your AI Agent

Image skillUse when an edit changes part of an existing image while keeping the rest — editing a person's face, eyes, hair, skin, body or clothing, editing a logo or brand mark, moving a small detail (a piercing, earring, mole, tattoo, badge or small object) to another spot or to the other side, and fixing one region of an image the user already approved. Load it before the first edit; hard rules for each case; the model pick stays in model-recommendations.

How to add Image Region Edits to your agent

Pick the way that suits you. Each takes about two minutes.

Save SKILL.md into your agent's skills

  1. Download the skill

    Claude Code, and other agents that read Agent Skills, load it from this folder when they start.

    mkdir -p ~/.claude/skills/image-region-edits
    curl -fsSL https://spiral.ai/skills/image-region-edits/SKILL.md -o ~/.claude/skills/image-region-edits/SKILL.md
  2. Connect Spiral

    The skill runs its tools through Spiral. Send your agent this message once to set it up.

    set up https://spiral.ai/SKILL.md

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init
  2. Read the skill

    Built-in skills are on for every organization: the CLI prints this one with all its files.

    spiral agent-skills get image-region-edits --json

Read it from the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Fetch the skill

    The answer holds SKILL.md and every other file of the skill, in path order.

    curl https://api.spiral.ai/v1/skills/image-region-edits \
      -H "Authorization: Bearer $SPIRAL_API_KEY"

Then ask your agent for the task: it loads Image Region Edits when a request matches the skill's description.

When to use (description)

Use when an edit changes part of an existing image while keeping the rest — editing a person's face, eyes, hair, skin, body or clothing, editing a logo or brand mark, moving a small detail (a piercing, earring, mole, tattoo, badge or small object) to another spot or to the other side, and fixing one region of an image the user already approved. Load it before the first edit; hard rules for each case; the model pick stays in model-recommendations.

Instructions

Image Region Edits

Pick the image-edit model from model-recommendations ("Image generation with reference images / image editing (image-to-image)"), then follow the section below that matches the inferred intent. Text changes in an image follow model-recommendations ("Text edits on existing images" and "Small text change on an existing image").

Edits to a person or a brand asset (hard rule)

Use this when the inferred intent is to change part of what an existing image shows (a person's eyes, hair, skin, face, body or clothing, or a logo or brand mark) while keeping the rest.

  1. Edit the complete original with the image-edit model from model-recommendations ("Image generation with reference images / image editing (image-to-image)"). When the schema has a mask input, you may build the mask from measured coordinates and pass it with the original.
  2. Never crop a region, edit the crop and paste or blend the model output back onto the source. A regenerated crop does not line up with its source, so faces and features double or shift.
  3. A correction ("still not changed enough") is another edit of the original or of the last delivered edit, with clearer wording. It is never a switch to compositing.
  4. A request to keep someone's exact face stays on this route: edit the untouched original again, attach a close-up crop of every face to keep from its source, state each image's role, and say the faces are redrawn likenesses. Offer only options on this route; never offer a paste of face pixels.
  5. The model redraws the whole image, so before delivery compare every person and real product the edit had to keep (a face, a book cover, a product shot), changed or not, with their source: one source crop and the same output crop per call. Tell the user the image was redrawn and what to check.

Deterministic tools (FFmpeg Media Editor) handle deterministic operations only: resize, pad, crop on request, format conversion, trim, concat, building a mask, and placing an exact flat asset the user supplied when they ask for a plain overlay (for example a watermark), never a face or a person. "Small text change on an existing image" in model-recommendations is the only crop-and-composite exception for people and brand marks, and it applies to text regions only.

Moving a small detail to another spot

Use this when the inferred intent is to move a small detail of an existing image (a piercing, an earring, a mole, a tattoo, a badge, a small object) from one spot to another, keeping everything else. One "move it" edit tends to leave the detail where it is, and repeating it with stronger wording does not help, so plan two edits from the first attempt:

  1. A remove edit of the image: remove the detail from where it is now, and say the skin, fabric or surface there stays as it is around it.
  2. An add edit of the remove edit's output: add the same detail at the new spot, described exactly as it looked (material, color, size, angle). Attach a close-up crop of the detail from the source as a second reference image and state its role.

In both prompts, name every spot both ways: the subject's own side and the side of the image it appears on ("the person's left eyebrow, on the right of the image"). A person facing the camera is mirrored, so a single side word is read either way. Before delivery, check with media understanding, on the source and the final image in one call, that the detail is gone from the old spot and appears once at the new one. On a person, the "Edits to a person or a brand asset" rules above still apply. Tell the user the move took a remove edit and an add edit.

Local fix to an approved image

Use this when the user approved an image and asks to fix one region (a hand, an emblem, a reflection, part of the background) that shows no person's face or body and no brand mark. Every edit redraws the whole frame, so areas the user already approved drift and earlier fixes come undone.

  1. Edit the approved file at its own size, with a mask over the region built from measured coordinates when the schema has one. For fine detail, request two or three candidates in one call.
  2. Composite only that region of the same-size result onto the approved file at the same coordinates, with a feathered edge. This keeps every approved pixel outside the region.
  3. Before saying the rest is unchanged, pixel-diff the result against the approved file outside the region, and check the seam with the before and after crops of the region in one media understanding call.

Capabilities

Used in this skill · 1

  • Use when creating ultra-realistic AI-generated photography (a believable real-world photo, not art or illustration). Covers the 9-step prompt construction workflow, required/optional inputs, the structured positive+negative prompt format, anti-failure guardrails, primary focus technique, camera/light/material domain language, and the self-checklist.

  • Use when generating multiple related assets, working with character references, brand assets, or scene sequences, or revising an earlier asset. Maintains visual and tonal consistency across multi-asset media projects: character reference workflows, style briefs, model matching rules, revisions, prompt enhancement, iterative quality testing, and scene consistency.

    Built-in
  • Use when writing a detailed image prompt as a JSON object (JSON prompting: subject, composition, environment, lighting, camera, style and negatives as fields), when the user asks for help writing or structuring an image prompt, or when the inferred intent is to apply the style of one or more reference images to a new subject (style transfer). Covers the JSON prompt structure and checklist, single-reference analysis, multi-reference style mixing, vocabulary for photography/painterly/graphic/3D styles, and common mistakes.

  • Use when creating high-CTR YouTube thumbnails. A 7-phase workflow covering style hunting, context gathering, emotion triggers, viral hooks, blueprint approval, image generation with style references, and refinement.

    Built-in

Questions about Image Region Edits

What does the Image Region Edits skill do?

Use when an edit changes part of an existing image while keeping the rest — editing a person's face, eyes, hair, skin, body or clothing, editing a logo or brand mark, moving a small detail (a piercing, earring, mole, tattoo, badge or small object) to another spot or to the other side, and fixing one region of an image the user already approved. Load it before the first edit; hard rules for each case; the model pick stays in model-recommendations.

Which tools does Image Region Edits use?

It runs FFmpeg Media Editor through Spiral, each at the price on its tool page.

Does the Image Region Edits skill cost anything?

The skill is free. The tools it runs are billed pay-as-you-go from your Spiral balance at each tool's stated price, with no plan.

How does my agent know when to use Image Region Edits?

An agent reads each skill's description and loads its instructions when a request matches it.

How do I add Image Region Edits to Claude Code?

Save its files into ~/.claude/skills/image-region-edits/ with the commands on this page; Claude Code loads it when it starts.

Can I use Image Region Edits in other agents?

Yes. Any agent that reads Agent Skills folders loads the same files, and any other agent reads the skill with `spiral agent-skills get image-region-edits --json` or the Spiral API.

Is Image Region Edits on for my Spiral organization?

Yes. Built-in skills are on for every organization; an admin can turn Image Region Edits off on the console's Skills page.

Where is the Image Region Edits SKILL.md file?

At https://spiral.ai/skills/image-region-edits/SKILL.md, with no key needed. On the console's Skills page, Customize saves a copy you can edit as your organization's own skill.