cowart-image-gen
하는 일
이 스킬은 설명을 바탕으로 AI 그림을 만들어 Cowart 캔버스에 올립니다. 작업 흐름을 떠나지 않고 캔버스에 이미지를 추가하려는 사람을 위한 것입니다.
사용하는 경우
- ✓Cowart 캔버스에 새 AI 이미지를 추가하고 싶을 때.
- ✓이미지 프레임을 선택했고 그림이 그 프레임을 채우기를 원할 때.
- ✓그림을 캔버스의 현재 페이지에 배치하고 싶을 때.
스킬 링크
https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-image-gen/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제가 선택한 프레임에, 해 뜰 무렵의 고요한 산 호수를 담은 AI 이미지를 만들어 넣어 주세요.”
매주 새 스킬 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
- 업데이트
- 2026. 10. 8.
댓글
- …
이 저장소의 다른 스킬
cowart-film-gen
6.1k에이전트가 스토리보드를 동기화된 소리가 담긴 짧은 애니메이션 HTML 영상으로 만들어 Cowart 캔버스 프레임에 넣도록 돕습니다.
cowart-image-edit
6.1k에이전트가 Cowart 주석 스크린샷으로 AI 수정 이미지를 만들고, 각 결과물을 원본 이미지 옆에 배치하도록 돕습니다.
cowart-open-canvas
6.1k에이전트가 Cowart 캔버스를 열고, 다시 열고, 새로 고쳐서 이미지와 디자인이 배치된 모습을 볼 수 있게 합니다.