canvas-populate

canvas-populate is a skill for Claude Code from AgriciDaniel/claude-canvas. It costs 104 tokens per session (1,823 once invoked), scanned A, original, MIT.

A tool for adding and arranging content in Obsidian Canvas files. Obsidian Canvas is a visual workspace where notes, images, links, diagrams, and other items are placed on a large board.

In plain words
What is it for?
Use it to add images, text cards, PDFs, notes, web links, Mermaid diagrams, SVGs, GIFs, generated images, groups, and connecting lines to an existing canvas.
Why use it?
It handles the file format, item positioning, spacing, connections, and validation needed when changing a canvas. This reduces layout collisions and malformed canvas files.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the claude-canvas plugin — 8 skills, 1 command, 3 agents shipped together

Good fit Use it to add images, text cards, PDFs, notes, web links, Mermaid diagrams, SVGs, GIFs, generated images, groups, and connecting lines to an existing canvas.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agricidaniel/claude-canvas/canvas-populate
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 AgriciDaniel/claude-canvas --skill canvas-populate
Clone the repo
git clone --depth 1 https://github.com/AgriciDaniel/claude-canvas

Made for: Claude Code.

Or install claude-canvas, the plugin that ships this one along with the rest of its 8 skills, 1 command, 3 agents.

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-populate

README.md
[![agentmods](https://agentmods.dev/badge/skills/agricidaniel/claude-canvas/canvas-populate/github.svg)](https://agentmods.dev/skills/agricidaniel/claude-canvas/canvas-populate)
Your own site
<a href="https://agentmods.dev/skills/agricidaniel/claude-canvas/canvas-populate"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-canvas/canvas-populate/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-populate

Your own site · 80×15
<a href="https://agentmods.dev/skills/agricidaniel/claude-canvas/canvas-populate"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-canvas/canvas-populate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,823 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00104 $0.01823
Opus 5 $0.00052 $0.00911
Sonnet 5 $0.00021 $0.00365
Haiku 4.5 $0.00010 $0.00182

Measured 11d ago against content hash 6d6028c8451f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

canvas-populate scanned grade A with 1 finding 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 11d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- If URL (starts with `http`): download with `curl -sL [url] -o [media_dir]/[filename]`.
skills/canvas-populate/SKILL.md · 213 lines

How it starts

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

canvas-populate: Add Content to Canvases

Read ../canvas/references/canvas-spec.md for the full JSON format before any edit. Read ../canvas/references/performance-guide.md for node limits and constraints.


General Workflow

For every add operation:

  1. Read the target canvas JSON. Parse nodes and edges arrays.
  2. Collect existing IDs to prevent collisions.
  3. Generate a new ID: [type]-[slug]-[unix-timestamp].
  4. Calculate position using the auto-positioning algorithm (see canvas orchestrator).
  5. Spacing check: Verify the calculated position has at least 80px horizontal and 60px vertical gap from ALL existing content nodes. If not, shift the position until spacing is clear.
  6. Append the new node to the nodes array (after any groups — z-index ordering).
  7. Validate: Run python3 scripts/canvas_validate.py <path> — check for overlaps and node count.
  8. Write the updated canvas JSON.
  9. Report: "Added [description] to [zone] zone at position ([x], [y])."

Node Operations

add image (/canvas add image [path or url])

Resolve the image:

  • If URL (starts with http): download with curl -sL [url] -o [media_dir]/[filename]. Derive filename from URL path, or use img-[timestamp].jpg if unclear.
  • If local path outside canvas dir: cp [path] [media_dir]/
  • If already canvas-relative: use as-is.

Detect aspect ratio:

python3 -c "from PIL import Image; img=Image.open('[path]'); print(img.width, img.height)"
# or fallback
identify -format '%w %h' [path]

Map to the sizing table in ../canvas/references/canvas-spec.md (7 ratios + PDF + fallback).

Create file node with calculated dimensions. Position using auto-layout.

add text (/canvas add text [content])

{
  "id": "text-[slug]-[timestamp]",
  "type": "text",
  "text": "[content]",
  "x": 0, "y": 0,
  "width": 300, "height": 120
}

For multi-line content, estimate height: count newlines, multiply by 24, add 40px padding. Minimum 120px.

Read the full file on GitHub · 213 lines

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. 11d ago First seen · 213 lines · 104 tokens per session scan A 6d6028c8451f

Subscribe to this mod's changes

canvas-populate is a skill published in the GitHub repository AgriciDaniel/claude-canvas (293 stars, last pushed 5mo ago), licensed MIT. It adds 104 tokens to every session and 1,823 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

canvas

Create, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, spatial layouts, adding vault notes or media to a .canvas file, and requests such as create canvas, add to canvas, or put this on the canvas.

AgriciDaniel/claude-obsidian · 72 tokens

wiki-ingest

Ingest supplied source material into an Obsidian vault with provenance and claim tracking: pasted text, files staged in the selected vault's inbox or .raw archive, or explicitly approved URLs. Use for a single source or bounded batch, not for saving an assistant answer. Triggers: ingest, ingest this file, ingest this…

AgriciDaniel/claude-obsidian · 88 tokens

autoresearch

Run a bounded, source-grounded research loop, draft a cited dossier, and optionally propose a separately reviewed canonical vault merge. Use when the user wants autonomous or deep research that may access the public web. Triggers: /autoresearch, autoresearch, research this topic, deep dive into, investigate, find…

AgriciDaniel/claude-obsidian · 80 tokens

save

Save a user-selected answer, decision, insight, or session summary into an Obsidian vault as one reviewed transaction. Use only when the user explicitly asks to preserve specific conversation content, not when they supply a file or URL to ingest. Triggers: /save, save this, save that answer, file this conversation…

AgriciDaniel/claude-obsidian · 80 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

wiki

Initialize, adopt, and route work for a separate Obsidian knowledge vault through the portable claude-obsidian core. Use for vault setup, scaffolding, workspace selection, cross-project configuration, or choosing the correct wiki sub-skill. Triggers: /wiki, set up wiki, scaffold vault, create knowledge base, adopt…

AgriciDaniel/claude-obsidian · 84 tokens