AGENT SKILL

cowart-image-gen

Generate a bitmap for the Cowart canvas via Astravia 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-15
Stars
★ 53
Forks
25

01 前言 Front Matter

name
cowart-image-gen
description
Generate a bitmap for the Cowart canvas via Astravia 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 (Astravia)

Astravia 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-astravia enabled). Prefer opening the canvas first (open_cowart_canvas).

Workflow

  1. Read selection with MCP get_cowart_selection (projectDir = user workspace).

  2. If exactly one selected shape is an AI image holder (isAiImageHolder or meta.cowartAiImageHolder), use holder size (props.w / props.h) as the generation contract.

  3. Call generate_image to produce the bitmap. Resolve the real local output path.

  4. Call MCP insert_cowart_image with projectDir and that image path:

    • Holder selected → prefer replace the holder (replaceAiImageHolder: true).
    • Otherwise insert onto the current page (from view/canvas state).

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_image prompt when replacing a holder.

04 同仓库更多 Skills

maomaochong-ai
maomaochong-ai/open-astravia

publish-ability

Publish a skill, MCP server, plugin, or bundle to the Astravia 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 Astravia.

★ 53
maomaochong-ai
maomaochong-ai/open-astravia

install-ability

在本机 Astravia 中安装能力——插件(plugin)、Skill 与 MCP 服务器。用户说「装一个插件 / install plugin / 从能力市场安装 / 加一个 MCP server / 配置 MCP / 装个 skill」,或插件装完没生效、需要 reload、pending 版本没应用时使用。不用于安装 npm 依赖、IDE 插件、浏览器扩展,也不用于开发插件(那是 plugin-workbench)或创作 Skill(那是 create-skill)。

★ 53
maomaochong-ai
maomaochong-ai/open-astravia

create-skill

Create or update Astravia-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 Astravia plugin, or add a built-in Astravia skill preset.

★ 53
maomaochong-ai
maomaochong-ai/open-astravia

remotion-video

Create, modify, and render Remotion React video projects in the current Astravia 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.

★ 53
maomaochong-ai
maomaochong-ai/open-astravia

plugin-workbench

Create, implement, build, pack, install, reload, and manage Astravia desktop plugins for non-developers. Use whenever the user wants a Astravia plugin, plugin scaffolding, apply a `.astraviapkg` package to Astravia, 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 @astravia-org/plugin-sdk; locate it with the bundled CLI's docs command.

★ 53
maomaochong-ai
maomaochong-ai/open-astravia

review-content-quality

Evaluate generated images and videos against their creative brief, delivery requirements, continuity rules, and technical quality, then propose the smallest evidence-based repair. Use when the user asks whether an output is good, requests critique or selection among variants, reports weak or broken media, or before expanding an approved direction into more assets.

★ 53