跳到正文
Skillpedia
界面(UI/UX)6.1k · #14434

cowart-open-canvas

它能做什么

当你要求查看时,这项技能会在你的 AI 工具中打开 Cowart 画布。适合使用 Cowart 在可视化画板上排列图片和设计的人。

适用场景

  • ✓当你要求 AI 打开或显示你的 Cowart 画布时。
  • ✓当你关闭画布后想重新打开它的时候。
  • ✓当其他地方做了改动后,你想重新查看画布的最新状态时。

技能链接

https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-open-canvas/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-open-canvas/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请打开我的 Cowart 画布,让我查看当前的图片。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用你当前的项目文件夹调用一次 Cowart 画布工具,画布便会出现在你的 AI 工具中。无需启动任何本地网页服务器。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.

常见问题

在执行其他 Cowart 任务之前,我必须先打开画布吗?

不需要。从已打开的画布发出的其他 Cowart 任务不需要先执行这一步。

画布使用哪个文件夹?

它使用你正在工作的项目的文件夹,而不是 Cowart 插件文件夹。

我可以把画布保留在导航中吗?

在支持的宿主上,画布可以显示在导航中,并可由你固定。

详情

作者的原始描述

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.

repo: zhongerxin/Cowart

热度

GitHub 星标
6.1k
排名
#14434
许可证
MIT
更新时间
2026/10/8

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能