/layer:layer-image-editingfrom Layer
Edits existing images on Layer: inpainting, outpainting, reframing, relighting, restyling, background removal, vectorization, upscaling, and layer splitting. Maps user intent to correct use_case to avoid unwanted changes.
Ships in Layer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Editing is not generation with an image attached. Each intent maps to its own use_case, and picking
the wrong one is the usual reason an edit changes things it should not have touched.
| The user wants | filter.use_case | Attach |
|---|---|---|
| Change one region, keep the rest exact | inpainting | init_image plus a mask |
| Change the whole image by instruction | image_editing | init_image |
| Extend past the current frame | reframing | init_image |
| Fit another aspect ratio | reframing | init_image |
| The same subject from another angle | multi_angle | init_image or reference_image |
| Separate, editable layers | split_into_layers | init_image |
| Cut the subject out | background_removal | init_image |
| More pixels, same picture | upscaling | init_image |
| Clean line art into finished art | image_editing | lineart or scribble |
| A crisp SVG from a raster | vectorization | init_image |
The loop and the spend gate are in the layer skill. If a sibling skill named here is missing from
your available skills, ask the user to install it (npx skills add layerai/skills --skill <name>);
unattended, proceed from tool schemas and flag the gap.
Every edit pass is a fresh generation that re-renders the whole image, so each one drifts a little: colours shift, a face loses its likeness, a logo degenerates. Three passes stacked on each other look visibly worse than one pass that does all three things.
So when an edit is wrong, go back to the original and write a better instruction. Do not correct the
correction. Output assets carry a file_id, so the original is always one argument away.
The exception is genuinely independent regions: masking the left lamp and then masking the right lamp touches disjoint pixels and stacks cleanly.
A mask marks what may change. Supply it as an uploaded file_id, or use the for_transparency and
for_nontransparency flags when the image's own alpha channel already describes the region, which
saves authoring a mask by hand for an asset that is already cut out.
Mask edges matter. A hard-edged mask on a soft-edged subject leaves a halo. When the boundary is hair, smoke, or glass, prefer an instruction edit over a mask, because the model resolves the boundary better than your rectangle does.
"The lamp on the left" is ambiguous; a box on the lamp is not. On a model whose capabilities report
visual_annotations, put numbered marks on the init_image (or on a reference_image, to say what
to take from it) through the guidance file's annotations. Each item has an id, a kind (BOX,
ELLIPSE, ARROW, FREEHAND, PIN), points from (0, 0) top left to (1, 1) bottom right, an
intent (EDIT, REMOVE, or MOVE on an arrow whose source_id names the box to move) and a
note saying what to do there. Two corners make a box or ellipse; an arrow is tail then head. Models
of the NATIVE_BOXES kind take only boxes, and arrows moving a box, on the init_image. Leave
color unset so it is chosen against the image.
State it in the instruction. Models are literal about what you mention and careless about what you do not, so "change the banner to red, keep the pose, lighting, and armour exactly as they are" is a materially different instruction from "make the banner red". The clause costs six words and saves a reroll.
"The same character from behind" appended to a text-to-image prompt produces a different character.
Re-rendering an existing asset from another view needs multi_angle, a model whose capabilities
report camera_transform, and the view supplied through the structured camera parameter. Attach
the source with the guidance type that model accepts. yaw_degrees orbits (90 right side, 180 back,
270 left side), pitch_degrees looks down from -30 to 90 (90 is top-down), and distance_delta or
fov_delta_degrees zooms. Omit a field to keep the source view: an explicit 0 is an active angle,
not "unchanged".
Upscaling adds resolution without changing what the picture depicts. It must never route through a
generation model: re-rendering at a larger size is a new image that merely resembles the approved
one, and approved art has to survive the step unchanged. Use filter.use_case: "upscaling".
vectorization traces a raster into SVG; trace an approved, flat-coloured, cut-out asset, since
gradients and noise become thousands of shapes. The vectorize options steer the trace:
vectorization_mode (spline curves or polygon straight lines), vectorization_color_mode
(color, or binary black and white), vectorization_layering (stacked overlapping shapes or
cutout with no overlap, colour mode only), vectorization_filter_speckle (drop specks under N
pixels, 0 to 20) and vectorization_color_precision (1 to 10, lower merges more colours). For a logo
or icon, lower the precision and raise the speckle filter before rerunning anything.
split_into_layers produces genuinely separate, independently editable elements, for rigging,
or compositing. A side-scroller background split by depth is a different job, the parallax split
in layer-environments. Before reaching for it, check what the user actually wants: "give me a PSD"
usually means "give me the art with a transparent background", which is background_removal and far
cheaper. Ask which one they mean when the request is ambiguous.
"Take this approved hero portrait and make a 9:16 version for the store."
reframing, not a reroll of the portrait. Generating it again loses the approval.list_base_models with filter.use_case: "reframing", take the first result.file_id. No upload.estimate_forge_price with that file as init_image, both width and height for 9:16 (with
either missing, the output takes the source's geometry), and an instruction
naming what must not change: "extend the scene above and below, keep the character, crop, and
lighting untouched." Above 20 CUs, present the table and wait for an explicit yes.execute_forge with exactly those arguments, then poll get_forge_run at
poll_interval_seconds.image_editing when only one region should change, then explaining the collateral damage.multi_angle with camera, or passing 0
for an axis that should stay unchanged.annotations.split_into_layers when the user just wants a transparent background.file_id.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub layerai/skills --plugin layer32 skills in this plugin
/layerUse when generating or editing game and entertainment assets on Layer through MCP: images, video, 3D meshes, audio, sprites, textures, or marketing creative. Also when choosing a Layer base model, pricing a run in Creative Units before spending them, uploading reference files, polling a generation, applying a trained style, or recovering from MODEL_NOT_FOUND, INSUFFICIENT_BALANCE, RATE_LIMITED, or a silently degraded reference set./layer-3dUse when producing 3D assets with Layer: generating a mesh from text or an image, retopologising or remeshing, retexturing an existing mesh, rigging a character, or animating a rigged mesh. Also when choosing between quad and triangle output, setting a polygon budget, or asking for PBR textures for a game engine. Keywords: 3D, mesh, model, text to 3D, image to 3D, remesh, retopology, retexture, rig, skeleton, animate, PBR, quad mesh, poly count, glTF, FBX./layer-art-directionOther plugins' skills for the same job