К основному содержанию
скилл CX Codex

layer-image — скилл для Claude Code: генерация изображений через Layer

Скилл для text-to-image через Layer: подсказывает, что писать в промпте, как задать пропорции и когда нужна референс-картинка.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add layerai/skills --skill layer-image -a claude-code
Открыть на GitHub

Что делает layer-image

Скилл ведёт агента по циклу генерации: list_base_models с фильтром text_to_image, get_base_model, оценка цены, запуск, опрос статуса. Разница между годной картинкой и почти-попаданием — в промпте и контракте конкретной модели, а не в выборе модели: ранжирование уже отобрало подходящие.

Промпт должен называть шесть вещей: конкретный субъект, стиль как производственный термин, кадр и ракурс, свет, палитру, обработку фона. Кадр пропускают чаще всего, и именно из-за этого приходится перезапускать генерацию. Пропорции и разрешение у каждой модели свои — читайте get_base_model, а не переносите поля от прошлой модели. negative_prompt есть не везде: если модель его не объявляет, отправка либо игнорируется, либо даёт ошибку. Референс надёжнее трёх прилагательных — загрузите картинку через guidance_files. С seed прогон повторяем, но два разных промпта согласованными он не сделает.

Текст на картинке большинство моделей ломают. Если нужны читаемые слова, фильтруйте модель по типографике, держите строку короткой и берите её в кавычки. После двух неудач перестаньте перезапускать: сгенерируйте арт чистым и наложите текст — так его потом проще править и переводить.

Какие задачи решает

  • собрать key art под фиксированное соотношение 16:9
  • подобрать модель, которая принимает нужные поля размера
  • удержать один стиль между несколькими картинками
  • подавить повторяющийся дефект через negative prompt
  • положить читаемый текст на сгенерированную картинку

Примеры запросов агенту

  • Сгенерируй key art для рогейлайка, 16:9, для страницы в Steam
  • Промпт не попадает — подскажи, чего в нём не хватает
  • Возьми эту картинку как референс стиля и сделай ещё три в том же виде

Как установить layer-image

1Через Skills CLI (Vercel)

npx skills add layerai/skills --skill layer-image -a claude-code

2Вручную: положить файлы

~/.claude/skills/layer-image/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/layer-image/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора7

layer-quality Оценивает сгенерированные файлы Layer по правилам студии и помогает выбрать, что отдавать. Нужен перед сдачей партии ассетов. CX Codex +1 3 300установок layer-workflows Скилл для запуска сохранённых воркфлоу Layer Blueprint: находит пайплайн в рабочем пространстве, читает его схему входов, оценивает цену и следит за шагами. CX Codex +1 3 400установок layer-3d Ведёт агента по цепочке 3D-пайплайна Layer: сгенерировать меш, пересобрать топологию, наложить текстуры, поставить скелет и анимацию. CX Codex +1 3 300установок layer-video Скилл для генерации видео через Layer: текст в видео, оживление кадра, продление клипа, камера, звук и липсинк. Пригодится, когда промпт даёт не то движение. CX Codex +1 3 400установок layer-video-timeline Собирает готовые клипы, картинки и аудио в один ролик: порядок, переходы, титры, логотип, музыка. Нужен, когда монтаж идёт из уже сгенерированных шотов. CX Codex +1 3 300установок layer-image-editing Скилл для редактирования уже существующих изображений на Layer: инпейнтинг, расширение кадра, смена ракурса, апскейл. CX Codex +1 3 400установок

Похожие

ai-image-generation prime-skills Скилл создаёт изображения по тексту и редактирует их через RunComfy CLI. Он выбирает модель по задаче: например, для точного текста на постере или фотореалистичного портрета. CX Codex +1 383 000установок gpt-image-2 prime-skills Генерирует и редактирует изображения через OpenAI GPT Image 2 на RunComfy. Точно встраивает текст, логотипы и многоязычную типографику — для e-commerce, рекламы и UI-макетов. CX Codex +1 84 300установок ai-image-generator jezweb Скилл учит агента выбирать модель Gemini или GPT под задачу и собирать промпты по пятичастной схеме. Пригодится, когда сайту нужны hero-баннеры, иконки или OG-картинки. CX Codex +1 1 400установок stable-diffusion-image-generation Orchestra Research Скилл учит агента генерировать изображения через Stable Diffusion и HuggingFace Diffusers: текст в картинку, img2img, инпейнтинг, ControlNet. CX Codex +1 1 000установок ideogram4 digitalsamba Генерирует изображения с читаемым текстом и точной палитрой через Ideogram 4. Пригодится для обложек и плашек с надписями. CX Codex +1 471установок flux-best-practices Black Forest Labs Набор правил генерации промптов для моделей FLUX.1 и FLUX.2. Помогает составить описания сцен, настроить типографику и передать точные оттенки. CX Codex +1 1 100установок

Рядом в теме «ИИ и ML»

Всё по теме «ИИ и ML» →

Вопросы о layer-image

Как установить layer-image в Claude?

Выполните npx skills add layerai/skills --skill layer-image -a claude-code. Скилл появится в ~/.claude/skills/layer-image/SKILL.md.

Что делает layer-image?

Проводит агента по генерации изображения через Layer: выбор модели, оценка цены, запуск и опрос. Отдельно разбирает, что писать в промпте и как задавать пропорции.

Что нужно, чтобы скилл заработал?

Он опирается на цикл из скилла layer и на соседние скиллы: layer-image-editing для правки готовых картинок, layer-game-assets для спрайтов и иконок, layer-reference-sets для единого стиля набора. Если соседнего скилла нет, попросите пользователя поставить его командой npx skills add layerai/skills --skill <name>.

Исходный текст

SKILL.md · MIT
---
name: layer-image
description: "Use when generating a still image with Layer: concept art, key art, illustrations, marketing images, icons, or any text-to-image run. Also when a prompt is not landing, when the aspect ratio or resolution is wrong, when a style or pose reference should steer the result, when readable text must appear in the image, or when several images must share one look. Keywords: txt2img, text to image, prompt, aspect ratio, negative prompt, style reference, seed."
license: MIT
---

# Layer Image Generation

## Overview

The loop is the one the `layer` skill teaches: `list_base_models` with
`filter.use_case: "text_to_image"`, `get_base_model`, estimate, execute, poll. What separates a
usable image from a near miss is the prompt and the per-model contract, not the model choice, which
the curated ranking already handles.

Editing an image that already exists is a different use case with different rules: see
`layer-image-editing`. Sprites, icons, and game UI have their own constraints: see
`layer-game-assets`. Holding one look across a set: see `layer-reference-sets`.

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.

## What a prompt must name

A model fills every gap you leave, and it fills it with the most average answer in its training data.
Each of these is a gap worth closing, in roughly this order of impact:

1. **Subject**, concretely. "A dwarf blacksmith" beats "a fantasy character".
2. **Style register**, as a production term rather than an artist's name: hand-painted, cel-shaded,
   flat vector, painterly semi-realism, stylised PBR render, gouache, 90s airbrush.
3. **Shot and framing**: full body, three-quarter portrait, top-down, isometric, extreme close-up.
   This is the single most common omission and the most common cause of a reroll.
4. **Lighting**: key direction, hardness, time of day, practical sources. "Rim-lit from behind,
   warm forge glow below" is a decision; "good lighting" is not.
5. **Palette**, named or constrained: "muted teal and rust, two accent hues only".
6. **Background treatment**: flat colour, isolated on transparent, environment implied, full scene.
   Assets that will be composited need this stated, not assumed.

Leave out what does not matter. A prompt that specifies everything specifies nothing, because the
model weights the whole string and dilutes the parts you cared about.

## Sizing, and the fields that differ

Aspect ratio and resolution are per-model contracts. Two models that both do text-to-image disagree
about whether they take an aspect ratio string, explicit width and height, or a fixed set of named
sizes, so read `get_base_model` rather than reusing the shape that worked last time.

When the deliverable has a fixed ratio, filter for it. `filter.capabilities` is an object of
booleans, not a list of names, so it is `{portrait_9_16: true}`: `square`, `portrait_9_16`,
`landscape_16_9`, or `multiple_aspect_ratios` when the user will want several crops from one setup.
Set only what the task needs, since `false` filters rather than defaults.

## Negatives, references, and seeds

`negative_prompt` is a capability, not a universal parameter. Filter for it when the run needs one,
and do not send it blindly: on a model without it, it is either ignored or an error, and on a model
with it, a long negative list costs more than it saves. Reach for it to suppress one specific,
recurring defect.

Three reference types steer a text-to-image run, all passed through `guidance_files` after an upload:

- `reference_image` with the `image_editing` capability, for "reproduce this subject" and for new
  art that has to match a reference. `style_reference` is the older style-only transfer: it moves a
  look across, it does not carry a subject, so reaching for it to hold a character is the usual
  reason a cast drifts.
- `pose` with `character_pose`, for "put the character in this position".
- `depth`, `canny`, `lineart`, or `scribble` with `structure` or `outline`, for "keep this layout".

A reference is worth more than three adjectives. When a user has an image and is describing it in
words, upload the image.

Seeds make a run repeatable, which matters when iterating: hold the seed and change one clause to see
what that clause actually does. They do not make two different prompts consistent with each other.
For a look held across a set, train it: see `layer-reference-sets`.

## Text in the image

Most image models garble text. When the deliverable needs readable words, filter for a model whose
description claims typography, keep the string short, and put it in quotes in the prompt. If it still
fails after two attempts, stop rerolling: generate the art clean and composite the text, which is
also what makes it editable and localisable later.

## Worked example

"Key art for our roguelike, 16:9, for the Steam page."

1. `list_base_models` with `filter.use_case: "text_to_image"` and
   `filter.capabilities: {landscape_16_9: true}`. Take the first result.
2. `get_base_model`, which reports the sizing fields it accepts and whether it needs a trigger word.
3. Compose against the six points above: "Hooded rogue mid-leap over a collapsing stone bridge, seen
   three-quarter from below, hand-painted semi-realism, hard moonlight from the upper left with cold
   blue rim light, warm torchlight pooling below, muted slate and amber, storm-lit ruins receding
   into fog behind."
4. `estimate_forge_price` with `batch_size: 4`, to see four compositions of one idea.
5. Under 20 CUs, so execute, then poll at `poll_interval_seconds`.
6. Present all four. Pick one, hold its seed, and iterate one clause at a time.

## Common mistakes

- Omitting shot and framing, then rerolling the same prompt hoping for a different crop.
- Describing a reference image in words instead of uploading it.
- Sending `negative_prompt` to a model that does not declare the capability.
- Reusing the sizing fields from a different model rather than reading `get_base_model`.
- Using `batch_size` for N different assets. It makes variations of one prompt.
- Chasing readable text through a sixth reroll instead of compositing it.
- Stacking five style adjectives, which averages them into none of them.

© layerai · MIT · layerai/skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой