cowart-image-gen
यह क्या करती है
यह स्किल आपके विवरण से AI चित्र बनाती है और उसे आपके Cowart कैनवस पर रखती है। यह उन लोगों के लिए है जो अपने वर्कफ़्लो से बाहर निकले बिना कैनवस में छवियाँ जोड़ना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप अपने Cowart कैनवस में नई AI छवि जोड़ना चाहते हैं।
- ✓जब आपने कोई छवि फ़्रेम चुना है और चाहते हैं कि चित्र उसे भर दे।
- ✓जब आप कैनवस के वर्तमान पेज पर चित्र रखना चाहते हैं।
Skill का लिंक
https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-image-gen/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“सूर्योदय के समय एक शांत पहाड़ी झील की AI छवि बनाइए और उसे मेरे चुने गए फ़्रेम में रखिए।”
हर हफ़्ते 5 नई skills, 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
- अपडेट की गई
- 8/10/2026
कमेंट
- …
इस repository की और skills
cowart-film-gen
6.1kआपके एजेंट को स्टोरीबोर्ड से साथ चलती ध्वनि वाली छोटी एनिमेटेड HTML फ़िल्म बनाने और उसे Cowart कैनवस फ़्रेम में रखने में मदद करती है।
cowart-image-edit
6.1kआपके एजेंट को आपके Cowart एनोटेशन स्क्रीनशॉट से संशोधित AI छवियाँ बनाने में मदद करती है, और हर नई छवि को उसकी मूल छवि के बगल में रखती है।
cowart-open-canvas
6.1kआपके एजेंट को आपका Cowart कैनवस खोलने, दोबारा खोलने या ताज़ा करने में मदद करती है, ताकि आप उस पर लगी छवियाँ और डिज़ाइन देख सकें।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।