cowart-open-canvas
Skill này làm gì
Skill này mở canvas Cowart bên trong công cụ AI của bạn khi bạn yêu cầu xem. Skill dành cho người dùng Cowart để sắp xếp ảnh và thiết kế trên một bảng trực quan.
Khi nào nên dùng
- ✓Khi bạn yêu cầu AI mở hoặc hiển thị canvas Cowart của mình.
- ✓Khi bạn muốn mở lại canvas sau khi đã đóng.
- ✓Khi bạn muốn xem mới canvas sau những thay đổi được thực hiện ở nơi khác.
Liên kết skill
https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-open-canvas/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Mở canvas Cowart của tôi để tôi xem các ảnh hiện tại.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent gọi công cụ canvas Cowart một lần, dùng thư mục dự án hiện tại của bạn, và canvas xuất hiện trong công cụ AI. Không cần khởi động máy chủ web cục bộ nào.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- Ensure the
cowart_mcpMCP server is loaded or discoverable and that itsrender_cowart_canvas_widgettool is available. The host may expose the complete tool name asmcp__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 asprojectDir; 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.
- 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/
- 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.
Câu hỏi thường gặp
Tôi có phải mở canvas trước các tác vụ Cowart khác không?
Không. Các tác vụ Cowart khác gửi từ canvas đang mở không cần bước này trước.
Canvas dùng thư mục nào?
Canvas dùng thư mục của dự án bạn đang làm, không dùng thư mục plugin Cowart.
Tôi có thể giữ canvas trong thanh điều hướng không?
Trên các máy chủ hỗ trợ, canvas có thể được hiển thị trong thanh điều hướng và bạn có thể ghim nó.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 6.1k
- Vị trí xếp hạng
- #14434
- Giấy phép
- MIT
- Cập nhật
- 8/10/2026
Bình luận
- …
Thêm skill từ kho mã này
cowart-film-gen
6.1kCho phép agent của bạn biến một storyboard thành một phim HTML hoạt hình ngắn có âm thanh đồng bộ, đặt trong khung canvas Cowart.
cowart-image-edit
6.1kCho phép agent của bạn tạo các ảnh AI đã chỉnh sửa từ ảnh chụp chú thích trên Cowart và đặt từng ảnh cạnh ảnh gốc tương ứng.
cowart-image-gen
6.1kCho phép agent của bạn tạo một ảnh AI và đặt nó lên canvas Cowart, lấp đầy khung ảnh đã chọn hoặc trang hiện tại.
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.