cowart-image-gen
Generate a bitmap for the Cowart canvas via Vetta generate_image, then insert or replace via Cowart MCP. Use when the user asks to create, fill, replace, or place an AI-generated image on a Cowart canvas.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 299
- Forks
- 50
01 前言 Front Matter
- name
- cowart-image-gen
- description
- Generate a bitmap for the Cowart canvas via Vetta generate_image, then insert or replace via Cowart MCP. Use when the user asks to create, fill, replace, or place an AI-generated image on a Cowart canvas.
03 SKILL.md 正文
Cowart Image Gen (Vetta)
Vetta image tools (required)
| Intent | Tool |
|---|---|
| Brand-new image / fill AI image holder / invent a scene | generate_image |
| Revise an existing image or annotation screenshot | edit_image (use cowart-image-edit skill) |
Do not use an imagegen skill or ad-hoc scripts. After the bitmap exists on disk, place it with Cowart MCP insert_cowart_image.
Preconditions
Cowart MCP tools should be available (plugin cowart-vetta enabled). Prefer opening the canvas first (open_cowart_canvas).
Workflow
-
Read selection with MCP
get_cowart_selection(projectDir= user workspace). -
If exactly one selected shape is an AI image holder (
isAiImageHolderormeta.cowartAiImageHolder), use holder size (props.w/props.h) as the generation contract. -
Call
generate_imageto produce the bitmap. Resolve the real local output path. -
Call MCP
insert_cowart_imagewithprojectDirand that image path:- Holder selected → prefer replace the holder (
replaceAiImageHolder: true). - Otherwise insert onto the current page (from view/canvas state).
- Holder selected → prefer replace the holder (
Constraints
- Pass user projectDir, not the plugin root.
- Keep original holders only if the user asks to preserve slots.
- Include target aspect ratio in the
generate_imageprompt when replacing a holder.
04 同仓库更多 Skills
publish-ability
Publish a skill, MCP server, plugin, or bundle to the Vetta ability marketplace. Use when the user asks to upload/publish/submit an ability, put a plugin on the marketplace, share a skill with other users, or migrate an existing package into Vetta.
install-ability
在本机 Vetta 中安装能力——插件(plugin)、Skill 与 MCP 服务器。用户说「装一个插件 / install plugin / 从能力市场安装 / 加一个 MCP server / 配置 MCP / 装个 skill」,或插件装完没生效、需要 reload、pending 版本没应用时使用。不用于安装 npm 依赖、IDE 插件、浏览器扩展,也不用于开发插件(那是 plugin-workbench)或创作 Skill(那是 create-skill)。
create-skill
Create or update Vetta-compatible Agent Skills. Use when the user asks to create a skill, add a SKILL.md workflow, register a skill in skills-manifest.json, package a skill in a Vetta plugin, or add a built-in Vetta skill preset.
vetta-ui-design
Build and edit design documents (.vetd) on the Vetta design canvas — app screens, landing pages, slides, posters, infographics. Use when the user asks for a UI design, mockup, screen, deck, or poster, or attaches a design frame/element from the canvas. Frames are real React (TSX) routes, not pictures. Do NOT use for ordinary front-end work in the user's own codebase — building, styling or reworking pages of a real app is that repo's job, and none of the vetd_* tools or canvas rules here apply to it.
remotion-video
Create, modify, and render Remotion React video projects in the current Vetta conversation workspace. Use for requests to make programmatic videos, motion graphics, animated explainers, social videos, data videos, or to edit an existing Remotion composition and export it as MP4.
plugin-workbench
Create, implement, build, pack, install, reload, and manage Vetta desktop plugins for non-developers. Use whenever the user wants a Vetta plugin, plugin scaffolding, apply a `.vettapkg` package to Vetta, edit plugin.json name/guidingWords, or debug plugin load/install. Requires the Plugin Workbench input-bar toggle (hard isolation). The plugin handbook ships inside the project's own @vetta-org/plugin-sdk; locate it with the bundled CLI's docs command.