Agent Skills › zhongerxin/Cowart › cowart-open-canvas

cowart-open-canvas

GitHub

用于通过 MCP 工具打开、重新加载或刷新 Cowart 画布。适用于用户明确要求查看画布或发起裸 @Cowart 调用且无其他工作流时的场景。

skills/cowart-open-canvas/SKILL.md zhongerxin/Cowart

Trigger Scenarios

用户要求打开或刷新画布 发起 bare @Cowart 调用且无其他请求

Install

npx skills add zhongerxin/Cowart --skill cowart-open-canvas -g -y
More Options

Use without installing

npx skills use zhongerxin/Cowart@cowart-open-canvas

指定 Agent (Claude Code)

npx skills add zhongerxin/Cowart --skill cowart-open-canvas -a claude-code -g -y

安装 repo 全部 skill

npx skills add zhongerxin/Cowart --all -g -y

预览 repo 内 skill

npx skills add zhongerxin/Cowart --list

SKILL.md

Frontmatter
{
    "name": "cowart-open-canvas",
    "description": "Open, reopen, or explicitly refresh the native Cowart canvas when the user asks to see it, or when a bare @Cowart invocation has no other requested workflow."
}

Cowart Open Canvas

The actual canvas-opening capability is the cowart_mcp MCP server and its render_cowart_canvas_widget tool. Use this skill when the user asks to open, reopen, or explicitly refresh the canvas. A bare @Cowart invocation with no other actionable request may also open the canvas. Do not use this skill as a prerequisite for image generation, annotation editing, HTML, Slides, or follow-up requests sent from an already-open Cowart widget.

Workflow

  1. Ensure the cowart_mcp MCP server is loaded or discoverable and that its render_cowart_canvas_widget tool is available. The host may expose the complete tool name as mcp__cowart_mcp__render_cowart_canvas_widget. Call the tool once for the user's open, reopen, or explicit refresh request. Pass the user's active Codex workspace as projectDir; do not pass the Cowart plugin repository directory.
{
  "projectDir": "/absolute/path/to/user/codex-project"
}

The tool returns openai/outputTemplate: ui://widget/cowart/canvas.html, which tells Codex to render the widget directly. Do not start scripts/start-canvas.sh or open a localhost URL for normal use.

Cowart also declares an OpenAI MCP Extensions global entrypoint, so supported hosts can show it in navigation and let the user pin it. Clicking that entrypoint sends {} and opens the canvas directly at <system Documents>/Cowart/canvas/. This is one shared local canvas with multiple pages; the first page is created only when none exists. There is no project picker. Empty arguments never infer a workspace from the MCP process directory. When a workspace is known in chat, keep passing projectDir to open its canvas directly. Cowart declares only the fullscreen display mode; in a conversation, the host may place fullscreen apps in the content side panel.

For follow-ups from the global app, use the projectDir and canvasDir supplied in Cowart's model context or follow-up message. Do not substitute the global app thread's own working directory for the open canvas.

  1. Confirm the widget opens for the user. The canvas data is stored in the active project:
canvas/pages/<page-id>/cowart-canvas.json
canvas/pages/<page-id>/assets/
  1. If the MCP tool is not visible in the current turn, use tool discovery for Cowart widget/render capabilities and retry within the same task after an explicit Cowart canvas invocation. Do not claim that a new task is required merely because one turn did not expose the tool. Only suggest a new Codex task when the plugin was just installed or upgraded and the MCP schema is still unavailable after discovery and an explicit retry.

Constraints

Do not call render_cowart_canvas_widget again merely because another Cowart skill applies or an existing widget sends a follow-up request. The existing widget synchronizes MCP-backed canvas changes itself. Do not launch the old local web service, inspect canvas files, run builds, check storage layout, take screenshots, or perform other validation steps unless opening the widget fails or the user explicitly asks for those checks. The scripts/start-canvas.sh path is now only a local-development fallback.

Version History

  • 38bdafe Current 2026-10-18 21:07

    新增全屏画布发布功能并修复 HTML 捕获问题 (v0.1.30)

  • c934452 2026-08-27 12:15

    优化MCP启动流程,拆分运行时与构建依赖以加快启动速度;明确该技能为所有工作流的核心启动入口,统一加载规范。

  • 220ed77 2026-07-05 11:56

Same Skill Collection

skills/cowart-film-gen/SKILL.md
skills/cowart-image-edit/SKILL.md
skills/cowart-image-gen/SKILL.md

Metadata

Files
0
Version
38bdafe
Hash
5fce9509
Indexed
2026-07-05 11:56

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-20 12:06
浙ICP备14020137号-1