/canvasanvil-canvas:canvas-skillfrom canvasanvil-canvas
Opens and manages CanvasAnvil's Excalidraw canvas via MCP tools or CLI. Generates images, places them on the canvas, and revises selected images from drawn annotations.
Ships in canvasanvil-canvas. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the canvasanvil_canvas MCP tools and the native widget. The widget reuses CanvasAnvil's Excalidraw CanvasBoard, annotation compositor, image placement and version strip.
Call render_canvas_widget once with the absolute active user workspace as projectDir. Reuse the current canvas for subsequent requests. Showing it to the user is your job, in this order: (1) a host that renders MCP App widgets shows the canvas in the conversation; (2) otherwise open the returned browserUrl yourself, right away, in the host's built-in browser or preview pane where the user can see it; (3) if you have no such tool, call render_canvas_widget again with launch: true to open the user's default browser; (4) hand the URL to the user only if all of that fails. The result's next repeats this. If the MCP tools are not loaded (a newly installed plugin may need a host restart), use the command line instead (Node 20+): node <cli> open canvas <projectDir> prints the canvas URL (open it yourself in the built-in browser, or add --launch to open the user's default browser), and node <cli> call <tool> @args.json runs any tool below with the same arguments. <cli> is <plugin-dir>/scripts/canvas.mjs in the plugin, or <skill-dir>/runtime/scripts/canvas.mjs when this skill folder is used on its own. The canvas page must stay open: it captures annotations, places images and saves the user's edits.
The user gives generation and editing instructions directly in the Codex conversation. For a new image, use the host image tool (or generate_canvas_image, see below), inspect its local output, then call insert_canvas_image with a new stable operationId to place it on the open canvas.
For edits to a canvas image, keep the widget open and use the same projectDir that opened it.
get_canvas_selection to identify the current image. Call get_canvas_request with a new stable requestId and the user's chat instruction as prompt to capture that selection and its nearby annotations. Read the same request ID until status is pending. While capturing, allow the open widget time to prepare the snapshot. If it stays capturing, report that the widget needs to be open and responsive. If it is failed, report its error and resolve the selection issue before creating a new request. A ready request includes absolute reference-image paths and verbatim annotation text.generate_canvas_image with the requestId and, as prompt, the change in plain words; it sends the clean original as the reference with the website's edit prompt. Use the newly generated local image path, inspect the result, and report any observed unintended changes.insert_canvas_image with projectDir, requestId, imagePath, a brief note and a stable operationId. Use the request ID as the operation ID for that request. Reuse the same operation ID when retrying.get_canvas_selection for the operation's applied status. A pending operation needs the existing widget open to finish placement. Reopen it only when the user asks or it has been closed.If generation fails, call fail_canvas_request with the request ID and the actual error, then report that failure in chat. A failed request leaves the source image and scene intact.
For an image supplied directly in chat, call insert_canvas_image with a new stable operation ID. Add sourceElementId for a revision of an existing image when a canvas annotation snapshot is unnecessary. Use get_canvas_selection to identify that source. Keep each user's request separate, and preserve original image files.
generate_canvas_image draws through the image API the user configured, with the website's own image routes: a new image goes to /images/generations, an edit to /images/edits with the captured original, each falling back to chat completions. Pass size (auto, 1024x1024, 1536x1024, 1024x1536, ...) and quality (auto, low, medium, high) when the user asks for them. It returns imagePath; place it with insert_canvas_image as above.
The API is configured in config/image-provider.json ({"apiKey","model","baseUrl"}, copy config/image-provider.example.json), in the plugin or this skill folder, or the file named by CANVAS_IMAGE_CONFIG. The user fills it in themselves; never ask for the key in chat. When neither a host image tool nor this config exists, tell the user which file to fill in.
The MCP server saves the authoritative Excalidraw scene, selection, requests and operation status in <projectDir>/canvas/canvas.json, with image files under canvas/assets/. The widget reads and writes through MCP. Scene writes use revision checks to prevent overwriting another widget's updates. If a revision conflict occurs, tell the user and reopen to load the saved version.
The website canvas code remains the source of truth. Maintainers rebuild the plugin with node scripts/sync-canvas-skill.mjs in the CanvasAnvil checkout. The installed plugin needs Node 20+ and includes its runtime dependencies and UI assets.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/cad-skillHome interior design in a live house designer (2D / 3D / furniture / MEP / ceilings / quote / drawing set) the user can also edit by hand; every model change starts from the user's latest saved version. From an existing floor plan (image, PDF, DXF, CAD) it reconstructs the plan; from a brief it first settles a design plan with the user as clickable decisions, describes the layout as a grid with intent and lets programs draw it; MEP is laid out, the wiring preferences applied, checks and a room-by-room MEP audit run, and exports are produced. Shown in the conversation where the host renders MCP App widgets, otherwise opened by the agent in the built-in browser or the user's default browser. Use for home layout, renovation design, floor plan to designer./diagram-skillCreate and edit draw.io diagrams in a live draw.io editor the user can also edit by hand; every model change starts from the user's latest saved version. Shown in the conversation where the host renders MCP App widgets, otherwise opened by the agent in the built-in browser or the user's default browser. Use for new diagrams, local XML edits, shape-library diagrams, and truncated XML continuation./ppt-skillMake presentations the way CanvasAnvil's PPT workspace does -- pick a template from the bundled library, then build the deck from an idea, from an outline, or by beautifying an existing PPT/PDF; review and adjust the outline with the user before anything is drawn; draw all slides concurrently, redraw failures, edit single slides; export PDF, image PPTX or editable PPTX. Also makes template backgrounds on their own and exports existing slides.npx claudepluginhub codingfeng101/canvasanvil --plugin canvasanvil-canvasOther plugins' skills for the same job