cowart-image-gen
Was er macht
Dieser Skill erstellt aus deiner Beschreibung ein KI-Bild und setzt es auf deinen Cowart-Canvas. Er ist für Menschen gedacht, die Bilder zu einem Canvas hinzufügen wollen, ohne ihren Arbeitsablauf zu verlassen.
Wann du ihn nutzt
- ✓Wenn du ein neues KI-Bild auf deinem Cowart-Canvas haben willst.
- ✓Wenn du einen Bildrahmen ausgewählt hast und das Bild ihn füllen soll.
- ✓Wenn du ein Bild auf der aktuellen Seite des Canvas platzieren willst.
Link zum Skill
https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-image-gen/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Erstelle ein KI-Bild eines ruhigen Bergsees bei Sonnenaufgang und setze es in den Rahmen, den ich ausgewählt habe.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest den ausgewählten Rahmen, um Größe und Position zu bestimmen, erstellt das Bild und setzt es an die Stelle dieses Rahmens. Ohne Rahmen fügt er das Bild der aktuellen Seite des Canvas hinzu.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Ersetzt das erzeugte Bild den ausgewählten Rahmen?
Standardmäßig ja. Der Rahmen gilt als vorläufiger Platz für das Bild und wird durch das endgültige Bild ersetzt.
Was ist, wenn ich keinen Rahmen ausgewählt habe?
Das Bild wird der aktuellen Seite des Canvas hinzugefügt.
Muss ich den Canvas selbst öffnen?
Nein. Anfragen aus dem offenen Cowart-Canvas haben ihn bereits bereit.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 6.1k
- Platz im Ranking
- #14433
- Lizenz
- MIT
- Aktualisiert
- 8.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
cowart-film-gen
6.1kLässt deinen Agenten ein Storyboard in einen kurzen animierten HTML-Film mit synchronisiertem Ton verwandeln, der in einen Cowart-Canvas-Rahmen gesetzt wird.
cowart-image-edit
6.1kLässt deinen Agenten überarbeitete KI-Bilder aus deinen Cowart-Anmerkungs-Screenshots erstellen und jedes neben sein Original setzen.
cowart-open-canvas
6.1kLässt deinen Agenten deinen Cowart-Canvas öffnen, erneut öffnen oder aktualisieren, damit du deine Bilder und Entwürfe darauf siehst.
Ähnliche Skills
gifgrep
394kLässt deinen Agenten GIF-Bibliotheken durchsuchen, Ergebnisse vorab ansehen, ein GIF herunterladen und ein Einzelbild oder ein Kontaktblatt mit Bildern herausziehen.
meme-maker
394kLässt deinen Agenten eine Vorlage für ein Meme auswählen, eigene Beschriftungen hinzufügen und das Meme als SVG- oder PNG-Bild erstellen.
ios-icon-gen
280kHilft deinem Agenten, Icons für iOS-Apps zu erstellen. Er nutzt Apple-Symbole oder Icons aus anderen Quellen und erzeugt die richtigen Dateien.