cowart-image-gen
Что он делает
Этот скилл создаёт ИИ-картинку по вашему описанию и помещает её на холст Cowart. Он нужен тем, кто хочет добавлять изображения на холст, не выходя из своего рабочего процесса.
Когда использовать
- ✓Когда вы хотите добавить на холст Cowart новое ИИ-изображение.
- ✓Когда вы выбрали кадр для изображения и хотите, чтобы картинка его заполнила.
- ✓Когда нужно поместить картинку на текущую страницу холста.
Ссылка на скилл
https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-image-gen/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Создай ИИ-изображение: спокойное горное озеро на рассвете, и помести его в выбранный мной кадр.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент читает выбранный кадр, чтобы узнать его размер и положение, создаёт изображение и размещает его на месте этого кадра. Если кадр не выбран, изображение добавляется на текущую страницу холста.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Cowart Image Gen
Use this skill when the user wants an AI-generated image placed onto the Cowart canvas. A selected AI 图片 holder gives a precise size and placement target, but it is not required. By default, a selected holder is a temporary target and should be replaced by the generated image.
Preconditions
Ensure the cowart_mcp tools required by this workflow are available. Do not call render_cowart_canvas_widget as a routine prerequisite: requests sent from the Cowart widget already have an open canvas, and the existing widget synchronizes inserted images from MCP-backed storage. If the user separately asks to open, reopen, or explicitly refresh the canvas, handle that request once with the canvas-opening workflow.
Cowart state is read and written through Cowart MCP tools, not through a localhost browser service.
New holders are tldraw frame shapes with:
{
"type": "frame",
"meta": {
"cowartAiImageHolder": true
}
}
Older canvases may still contain legacy geo rectangle holders with the same
meta flag. Support both shapes.
Workflow
For a follow-up from Cowart's sidebar canvas, use the exact projectDir and canvasDir in the Cowart context/message for all Cowart tools. These paths can differ from the conversation working directory. In ordinary project conversations, keep using the active user project as before.
Read the selected shape from Cowart with the MCP
get_cowart_selectiontool. Pass the active user project directory asprojectDir.Check whether exactly one selected shape is an AI image holder. A holder is any selected shape with either:
isAiImageHolder: trueor:
meta.cowartAiImageHolder: trueIf yes, use the holder replacement workflow below. If not, do not ask the user to select a holder; use the standalone workflow below and insert the generated image into the current Cowart page.
Choose the placement workflow.
Holder replacement workflow: use the selected holder's
props.wandprops.has the size contract for both generation and placement. Before generating, derive and keep these values:targetWidth: selected holderprops.wtargetHeight: selected holderprops.htargetAspectRatio: the reducedtargetWidth:targetHeightratio when it maps cleanly, plus the decimaltargetWidth / targetHeight
If the selected holder matches a Cowart ratio preset such as
1:1,3:2,2:3,4:3,3:4,16:9, or9:16, use that preset label as the human-readable aspect ratio. The generated image should be composed for this target size and aspect ratio, and should not rely on later stretching or cropping to fit the holder.The generated image should replace the selected holder as a normal tldraw image shape:
parentId: same parent as the holderx,y,rotation: same as the holderprops.w,props.h: same as the holder
This leaves the final canvas with an image shape at the holder's position, not an AI holder that contains an image. Only preserve the holder when the user explicitly asks to keep the reusable slot.
Standalone workflow: when no AI holder is selected, generate the image anyway and insert it as a normal image shape on the current page. Prefer the current page from Cowart view state; if there is a selected non-holder shape and it is useful as context, place the image beside it, otherwise place it in a clear page area. If the user requested a size or aspect ratio, pass that size and ratio into generation and use it for display. Otherwise, use the generated bitmap's natural aspect ratio and a practical display width such as 512 canvas units.
Generate the bitmap with the built-in
imagegenskill unless the user explicitly requests another image path. If the requested asset needs visible copy, labels, poster text, ad text, UI text, or typography, include that text directly in the image generation prompt and let the image model produce the final bitmap. Do not default to generating a text-free background and then adding text locally unless the user explicitly asks for local typography, deterministic text overlay, SVG/vector output, or another non-imagegen layout step.For the holder workflow, the image generation request must explicitly include the selected holder's target size and aspect ratio. Add this information to the model prompt, for example:
Target canvas slot: 512 x 683 canvas units. Target aspec
Частые вопросы
Заменяет ли созданное изображение выбранный мной кадр?
По умолчанию да. Кадр считается временным местом для картинки и заменяется финальным изображением.
Что будет, если я не выбрал кадр?
Изображение добавляется на текущую страницу холста.
Нужно ли мне самому открывать холст?
Нет. Запросы, отправленные с открытого холста Cowart, уже готовы к работе с ним.
Подробности
Оригинальное описание автора
Generate and place a final AI bitmap on the Cowart canvas, replacing a selected AI 图片 holder or inserting the image into the current page.
repo: zhongerxin/Cowart
Популярность
- Звёзды на GitHub
- 6.1k
- Место в рейтинге
- #14433
- Лицензия
- MIT
- Обновлён
- 08.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
cowart-film-gen
6.1kПозволяет агенту превратить раскадровку в короткий анимированный HTML-фильм с синхронизированным звуком и разместить его в кадре холста Cowart.
cowart-image-edit
6.1kПозволяет агенту создавать исправленные ИИ-изображения по вашим аннотациям-скриншотам с холста Cowart и размещать каждое рядом с оригиналом.
cowart-open-canvas
6.1kПозволяет агенту открыть, снова открыть или обновить ваш холст Cowart, чтобы вы видели изображения и макеты, разложенные на нём.
Похожие скиллы
gifgrep
394kПозволяет агенту искать GIF-анимации, просматривать результаты, скачивать GIF и вытаскивать отдельный кадр или таблицу кадров.
meme-maker
394kПозволяет агенту выбрать шаблон мема, добавить свои подписи и создать мем в виде изображения SVG или PNG.
ios-icon-gen
280kАгент генерирует иконки для приложений iOS из символов Apple или других источников и создаёт нужные файлы.