canvas-skill

canvas-skill is a skill for Claude Code, Codex from CodingFeng101/CanvasAnvil. It costs 45 tokens per session (1,304 once invoked), scanned A, original, MIT.

A canvas tool for opening and editing an Excalidraw drawing, a browser-based diagram and sketch format, inside a workspace. It supports placing images and revising selected images from drawn annotations.

In plain words
What is it for?
Use it to create or revise diagrams, sketches, image compositions, and annotated visual drafts.
Why use it?
It gives you a visual surface for arranging and marking up ideas instead of describing every change only in text. Edits can be kept with the workspace.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions Codex.

Part of the canvasanvil-canvas plugin — 3 skills shipped together

Good fit Use it to create or revise diagrams, sketches, image compositions, and annotated visual drafts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codingfeng101/canvasanvil/canvas-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CodingFeng101/CanvasAnvil --skill canvas-skill
Clone the repo
git clone --depth 1 https://github.com/CodingFeng101/CanvasAnvil

Made for: Claude Code, Codex.

Or install canvasanvil-canvas, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for canvas-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/codingfeng101/canvasanvil/canvas-skill/github.svg)](https://agentmods.dev/skills/codingfeng101/canvasanvil/canvas-skill)
Your own site
<a href="https://agentmods.dev/skills/codingfeng101/canvasanvil/canvas-skill"><img src="https://agentmods.dev/badge/skills/codingfeng101/canvasanvil/canvas-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for canvas-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/codingfeng101/canvasanvil/canvas-skill"><img src="https://agentmods.dev/badge/skills/codingfeng101/canvasanvil/canvas-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,304 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.01304
Opus 5.5 $0.00018 $0.00522
Sonnet 5.5 $0.00009 $0.00261
Haiku 4.5 $0.00005 $0.00130

Measured 17d ago against content hash 434b9d3d7e80, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

canvas-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

The scan reads SKILL.md. This mod also ships 14 executable files (assets/canvas-mcp.mjs, mcp/image-fallback.mjs, mcp/native-editors.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/canvas-skill/SKILL.md · 41 lines

How it starts

The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Canvas Skill

Use the canvasanvil_canvas MCP tools and the native widget. The widget reuses CanvasAnvil's Excalidraw CanvasBoard, annotation compositor, image placement and version strip.

Open

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.

Generate and edit

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.

  1. Call 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.
  2. For edits, inspect the clean original and annotated preview. Apply only the requested change, preserving other content and the image's aspect ratio. Quote requested replacement text exactly. The output should be a clean image with the annotations removed.
  3. Use the host's image generation/editing tool. Respect its access checks. Without one, call 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.
  4. Call 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.
  5. The open widget inserts the image using the website's existing placement logic, links the version family and removes the consumed annotations. Check 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.

Read the full file on GitHub · 41 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed 434b9d3d7e80
  2. 19d ago First seen · 41 lines · 45 tokens per session scan A 4b89df73c0dc

Subscribe to this mod's changes

canvas-skill is a skill published in the GitHub repository CodingFeng101/CanvasAnvil (241 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 1,304 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-11.

Related

canvas-skill compared with skills from other repositories

canvas-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
canvas-skillCodingFeng101/CanvasAnvilSkill241todayMITA45Claude Code, Codex
drawio-skillAgents365-ai/drawio-skillSkill11kyesterdayMITA107Claude Code, Codex
cocosketchSnowflake-Labs/cocoplusSkill72923d agoMITA20Claude Code
fin-arch-diagramcsmar432/finai-researchSkill1127d agoMITA72Cursor
bruce-drawiobruc3van/bruce-drawioSkill1153mo agoMITA129Claude Code, Codex
FlowForgewentong2022-arch/flowforge-skillSkill1394mo agoMITA153Claude Code
tldraw-skillAgents365-ai/365-skillsSkill10828d agononeA70Claude Code