Preface¶
When adjusting page layouts or working with HTML reports, the common practice is to screenshot and send it in a conversation, or describe with text like “move this a bit to the left.” The Agent can only guess where the arrow points via OCR or Vision, and after making changes, manual comparison with the source file is still required. If we could place the webpage on a zoomable canvas, clearly write modification intents using structured annotations, and have the Agent read the annotations to directly modify the source file, the review loop would be much shorter. Below we introduce cowart-canvas-opencode on SkillHub (coordinate @user_bda4ca23/cowart, current version 3.1.0), which encapsulates this workflow into a reusable Agent Skill, complete with a local tldraw canvas and a REST API.
What Is This¶
cowart-canvas-opencode is a community-published design-media category Skill (publisher user_bda4ca23, source: community). The official introduction positions it as the Cowart infinite canvas annotation system: it supports automatically embedding HTML/image screenshots into the canvas, drawing annotation arrows, and having AI read annotations (including scenarios where OCR is used to recognize target content); it applies to workflows that require visual annotation such as page layout review, report proofreading, and design feedback. The Skill documentation states it is inspired by codex and targets hosts like opencode; the canvas implementation is based on tldraw, and the local service listens on http://127.0.0.1:43217 by default.
The core closed loop emphasized in the Skill documentation is: HTML/webpage → canvas → annotations → read annotations → modify source file; it also includes an Editor Mode (quickly edit HTML and insert it into the canvas with one click) and a REST API reference. Common trigger words include: canvas, annotation, screenshot review, read annotations, editor mode, insert to canvas, etc.
Core Features¶
The following capabilities are all drawn from the SKILL.md (3.1.0) inside the Skill package and the SkillHub page description. Use them as needed.
Local Infinite Canvas (tldraw)¶
- Launch a Vite + React frontend via the startup script, operating an infinite canvas in the browser.
- Canvas data is saved in the
canvas/directory under the project root; it can run in the background using daemon mode.
Annotating and Reading Annotations¶
- Use the “Annotation” tool on the canvas to draw arrows and write modification notes; text is stored in the tldraw shape’s
props.richText. The Skill requires using scripts/APIs to read it as a priority; OCR substitution is prohibited when the canvas is open. - When the user says “read Cowart annotations,” the Agent should execute
scripts/read_annotations.py(supports--json).
Editor Mode¶
- Switch to “Editor” via the top bar: a three-column layout (preview + Inspector) that allows importing/pasting HTML, clicking elements to change styles, and switching viewport previews for responsiveness.
- “Insert to Canvas” cleans temporary attributes, saves HTML (
POST /api/cowart-upload-html), and inserts a preview screenshot as an image shape into the canvas, making it easy to return to canvas mode for continued annotation.
REST API and Helper Scripts¶
The local service provides interfaces for canvas snapshots, selection state, view state, SSE events, HTML uploads, etc. For example:
| Method | Path | Description |
|---|---|---|
| GET/PUT | /api/canvas |
Canvas snapshot |
| GET/PUT | /api/selection |
Current selection |
| GET/PUT | /api/view-state |
View state |
| GET | /api/canvas-events |
SSE real-time events |
| POST | /api/cowart-upload-html |
Save HTML to project public/preview.html |
There are also scripts like insert_image.py and screenshot_to_cowart.py for inserting images into the canvas or importing from screenshots.
Environment and Plugin Directory¶
- Prerequisites: Node.js 22+, npm.
- The customized Cowart frontend should be placed in
~/plugins/cowart(thecowart/directory after extracting the distribution package); the Skill itself (SKILL.mdandscripts/) needs to be placed in the current Agent’s skills directory.
The SkillHub tag indicates requires_api_key=false; installing the Skill itself does not require an API Key. However, if using the host’s built-in image generation capability, it still depends on your local configuration.
Installation and Activation¶
Via SkillHub CLI (Recommended)¶
The prompt provided on the SkillHub installation page is: refer to the SkillHub installation documentation and install coordinate @user_bda4ca23/cowart.
First, confirm whether the CLI is installed:
command -v skillhub && skillhub --version
If not installed, follow the official documentation to execute the one-click installation script. When installing the Skill, you must use --dir to point to the current Agent’s skills directory (e.g., Cursor commonly uses ~/.cursor/skills/, Codex commonly uses ~/.codex/skills/ or .agents/skills/ under the project), otherwise the default path ./skills/ may not be recognized:
skillhub install @user_bda4ca23/cowart --dir ~/.cursor/skills/
Replace the above path with the skills directory of the Agent you actually use. For OpenClaw / opencode and other variants, please refer to their respective documentation for the skills path.
Download the Zip Package¶
SkillHub provides the Zip download address for version 3.1.0:
https://api.skillhub.cn/api/v1/download?slug=@user_bda4ca23/cowart
After extraction, follow the “Installation” section inside the Skill: move the cowart/ from the package to ~/plugins/cowart, run npm install, and copy SKILL.md and scripts/ to the host’s skills directory. If there is already an older version of ~/plugins/cowart with editor mode locally, the documentation suggests directly reusing it and backing up canvas/ first to avoid data loss due to overwriting.
Typical Usage¶
1. Open the Canvas¶
When the user says “open Cowart canvas,” execute in the plugin directory:
~/plugins/cowart/scripts/start-canvas.sh --daemon
Wait for Vite to output the local URL, then open http://127.0.0.1:43217 in the browser. To stop the service, you can use lsof -ti :43217 | xargs kill, or in daemon mode, kill $(cat ~/plugins/cowart/cowart.pid).
2. Review and Feed Back Modifications¶
- Drag the HTML report or screenshot into the canvas.
- Use the annotation tool to draw arrows and write modification text.
- Tell the Agent “read Cowart annotations.”
- The Agent runs the annotation reading script, modifies the corresponding HTML/report source file based on the results, and prompts the user to refresh.
Annotation reading example (adjust the path according to your actual skills installation location):
python3 ~/.cursor/skills/cowart-canvas/scripts/read_annotations.py
python3 ~/.cursor/skills/cowart-canvas/scripts/read_annotations.py --json
3. Insert to Canvas via Editor Mode¶
- In Editor Mode, import or paste HTML, and modify styles using the Inspector.
- Click “Insert to Canvas”; HTML is written to
public/preview.html, and the preview image enters the canvas. - Return to canvas mode to annotate → read annotations → modify the source file.
If insertion fails due to canvas pollution caused by cross-origin resources, the Skill suggests switching to “Export” HTML and handling it manually.
4. View Selection via API (For Agent Automation)¶
curl -s http://127.0.0.1:43217/api/selection
Use this to confirm whether the AI image holder or the shape that needs to be operated on is selected, and then work with image generation and insert_image.py steps.
Use Cases and Notes¶
Who it’s for: Developers or design collaboration scenarios where you need to visually review webpages/HTML reports locally, leave machine-readable modification feedback with arrows + text, and have a Coding Agent modify the source files.
Limitations and Notes:
- Depends on the local Node environment and a resident canvas service (port 43217); if the port is occupied, release it before starting.
- In multi-host environments, the Skill may be installed under names like
cowart-canvasorcowart-canvas-opencode; the content should be based on the mainSKILL.mdinside the package. - When the canvas is open, be sure to read annotations through API/scripts to avoid OCR misreading; if the service is unavailable, the Skill documentation provides a fallback order: Vision screenshots, direct curl API, or the user verbally describing the requirements.
- The Editor’s “Insert to Canvas” may fail for pages referencing cross-origin https resources; you need to export HTML or remove external resources.
The SkillHub page (as of the data capture) shows a score of 100000 and approximately 1403 downloads for this Skill; specific numbers are subject to the SkillHub real-time page.
Conclusion¶
cowart-canvas-opencode connects “visual annotation” and “source file modification” into a scriptable local pipeline: tldraw canvas + REST API + annotation reading script, along with an HTML editor mode for quick revisions and re-inserting into the canvas. If you are doing page review in environments like opencode, Cursor, or OpenClaw, you can install from SkillHub or download the Zip, then configure ~/plugins/cowart and the skills directory according to the documentation.
- SkillHub page: https://www.skillhub.cn/skills/user_bda4ca23/cowart
- API coordinate page: https://api.skillhub.cn/user_bda4ca23/cowart
- Installation instructions: https://skillhub.cn/install/skillhub.md