/layer:layer-reference-setsfrom Layer
Guides training Layer reference sets and LoRAs: deciding whether to train, curating images, picking a category, and tuning weight for consistent style.
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.
A reference set is a named group of files plus a training category. Trained, it produces a LoRA that later runs apply by id, turning an art direction into a parameter instead of a prompt-engineering exercise every time.
The mechanics (upload, create_reference_set, estimate_training_price, start_training,
get_training_status, get_trained_model, and the four categories) are covered by Layer's published
layer-train-reference-set skill, over both REST and MCP. This skill covers the decisions that
determine whether the trained result is any good.
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.
Training costs Creative Units and takes time. It is the right answer less often than people expect.
| Situation | Do this |
|---|---|
| A handful of assets, this week | Attach an approved image as reference_image, filtering for image_editing |
| One character across a dozen images | An approved hero image as a reference usually suffices |
| A look reused for months, by several people | Train a reference set |
| A cast or prop library that keeps growing | Train, one set per subject |
| The style exists only in the user's head | Generate first, approve, then train on the output |
The last row matters. A reference set can be trained on approved generations, not only on hand-made art, which is how a direction discovered in a session becomes reusable.
Dataset quality decides the result far more than any parameter. The common failure is quantity.
create_reference_set takes character,
object, scene, or general. The
category shapes what the training attends to, so a character trained as general learns the
background as part of the identity.When the user offers a large folder, curating it down is the highest-value thing to do before spending anything.
Over MCP, training has two inputs no tool supplies. Report them; do not work around them:
create_reference_set's description says to call draft_captions next, and
start_training refuses a dataset with missing captions (invalid-dataset). MCP exposes no
draft_captions, and create_reference_set takes no caption field, so the agent cannot write them
either. If training fails on captions, tell the user to caption the set in the Layer app, then
retry.start_training requires a base_model_id that points at a
recommendation tool MCP also does not expose. Do not guess one from list_base_models, whose
ranking is for generation, not training; ask the user which model the set trains on, or have them
start training in the app. Leave training_framework unset unless the user names one.Pass sets to execute_forge as reference_sets: [{set_id, weight}], up to 25. weight runs 0 to 2
and defaults to 1.0.
Prefer auto-pick. With reference sets and no base_model_id, the server picks the model that
applies them best: a trained LoRA beats mapped reference images, which beat prompt-only text. The
curated ranking behind list_base_models is task fit, not reference-set fit, so pinning a model you
chose yourself is the usual reason a trained style arrives weaker than expected.
Weight is a dial, not a switch. Start at the default. Raise it toward 1.5 when the style is present but too faint, and lower it toward 0.5 when the style is overwhelming the subject and every prompt produces the same composition. Weight applies only where a LoRA applies; it is ignored for sets applied as reference images or prompt text.
Combining a style set with a character set works. Combining two competing style sets averages them.
estimate_forge_price, execute_forge and get_forge_run all return
reference_set_contributions, reference_sets_degraded, and reference_sets_warning. A degraded
run still succeeds and still costs Creative Units, so nothing looks wrong except the output.
Read the contribution report on the estimate, before spending. If reference_sets_degraded is true,
tell the user which set did not apply and why, then either re-run without base_model_id so the
server picks a compatible model, or pick another one. Never describe a degraded set as applied.
"Everything we generate should look like our style bible."
create_reference_set with category general, since this is an overall
aesthetic rather than one subject.estimate_training_price, present it against the balance, and confirm above 20 CUs.start_training with the training model the user named, then get_training_status at the
returned interval until terminal success. A caption error is the gap above, not a reason to
rebuild the set.estimate_forge_price with reference_sets: [{set_id, weight: 1.0}] and no base_model_id,
so the server picks a model that can apply the LoRA. The estimate carries the contribution report,
so check reference_sets_degraded here, before any spend.execute_forge with the same arguments once the estimate is clean and, above 20 CUs, confirmed.get_forge_run, then judge the output and adjust weight from there.general, so the background becomes part of the identity.base_model_id, or rebuilding a set that failed only for missing captions.base_model_id alongside reference sets, then reporting the style as weak.What SKILL.md sets; muted values are Claude Code's defaults
32 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-directionnpx claudepluginhub layerai/skills --plugin layerOther plugins' skills for the same job