No slash command · from claude-canvas
Adds content to Obsidian Canvas files: images, text cards, PDFs, wiki notes, web links, Mermaid diagrams, SVGs, GIFs, and AI-generated images. Handles auto-positioning, spacing, and aspect ratio detection.
Ships in claude-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.
None: SKILL.md is the whole skill.
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.
For every add operation:
nodes and edges arrays.[type]-[slug]-[unix-timestamp].nodes array (after any groups — z-index ordering).python3 scripts/canvas_validate.py <path> — check for overlaps and node count./canvas add image [path or url])Resolve the image:
http): download with curl -sL [url] -o [media_dir]/[filename].
Derive filename from URL path, or use img-[timestamp].jpg if unclear.cp [path] [media_dir]/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.
/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.
/canvas add pdf [path])Copy to [media_dir]/ if outside canvas dir. Fixed size: width=400, height=520.
/canvas add note [wiki-page])"type": "file" with vault-relative path. Not "type": "link" — that's for URLs only./canvas add link [url]){
"id": "link-[slug]-[timestamp]",
"type": "link",
"url": "[url]",
"x": 0, "y": 0,
"width": 400, "height": 120
}
Obsidian fetches Open Graph preview automatically.
/canvas add mermaid [code])Mermaid renders natively in Obsidian text nodes. Wrap in a fenced code block:
{
"id": "text-mermaid-[timestamp]",
"type": "text",
"text": "```mermaid\n[code]\n```",
"x": 0, "y": 0,
"width": 500, "height": 400,
"color": "5"
}
Wider text nodes work better for Mermaid (min 400px wide, 300px tall).
/canvas add svg [description or path])/svg skill to generate, then add the output file.<img> — no interactivity. Must have viewBox attribute./canvas add gif [description or path])/claude-gif-generate skill, then add the output./canvas add banana [prompt]).recent-images.txt in the canvas directory./canvas zone [name] [color])-80 if canvas is empty (consistent with starter canvas layout where title is at y=-300 and default zone at y=-140):
if not canvas_nodes:
max_y = -80
else:
max_y = max(n["y"] + n.get("height", 0) for n in canvas_nodes) + 60
{
"id": "zone-[slug]-[timestamp]",
"type": "group",
"label": "[name]",
"x": -400,
"y": "[max_y]",
"width": 1000,
"height": 400,
"color": "[color or '4']"
}
Valid colors: "1"=red "2"=orange "3"=yellow "4"=green "5"=cyan "6"=purple
/canvas connect [from] [to] [label])from and to nodes by ID, label text, or partial match.{
"id": "e-[from-slug]-[to-slug]-[timestamp]",
"fromNode": "[from-id]",
"toNode": "[to-id]",
"toEnd": "arrow"
}
fromSide/toSide for auto-routing (better results).label if provided./canvas from banana)[canvas_dir]/.recent-images.txt for recently logged image paths.find [media_dir] -name "*.png" -o -name "*.jpg" -newer /tmp/ten-min-ago
_attachments/images/canvas/.canvases/assets/What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 plugins ship this exact skill · first indexed Oct 20, 2026
8 skills in this plugin
/canvasAI-orchestrated visual production for Obsidian Canvas. Create presentations, flowcharts, mood boards, knowledge graphs, galleries, storyboards, timelines, dashboards, and more with intelligent layout and AI-generated content. Claude acts as Creative Director — dispatching sub-agents for image generation, SVG diagrams, GIF creation, and spatial layout. Supports 12 template archetypes, 6 layout algorithms, and Advanced Canvas presentation mode. Triggers on: /canvas, create canvas, build canvas, make a presentation, visual board, mood board, flowchart canvas, storyboard, canvas from template, lay out canvas, export canvas, canvas layout, canvas generate, add to canvas, put this on the canvas, open canvas, canvas present, canvas template.
/canvas-createCreate new Obsidian Canvas files — blank with a starter structure, or from one of 12 template archetypes (presentation, flowchart, mind-map, gallery, dashboard, storyboard, knowledge-graph, mood-board, timeline, comparison, kanban, project-brief). Handles directory creation, slug generation, and starter zone setup. Triggers on: canvas create, create canvas, new canvas, canvas new, start canvas.
/canvas-exportExport Obsidian Canvas files to PNG, SVG, or PDF formats. Uses the Advanced Canvas plugin's built-in export when Obsidian is running, or falls back to Playwright browser-based screenshot capture. Supports single canvas export, presentation slide-per-page PDF export, and batch export. Triggers on: canvas export, export canvas, canvas to png, canvas to pdf, canvas to svg, save canvas as image, screenshot canvas, export presentation.
Generated from the plugin's indexed repository (agricidaniel/claude-canvas) — no native marketplace selected
npx claudepluginhub p/agricidaniel-claude-canvasOther plugins' skills for the same job