/claude-canvas:canvas runs instead · from claude-canvas
AI-orchestrated visual production for Obsidian Canvas: creates presentations, flowcharts, mood boards, knowledge graphs, storyboards, timelines, and dashboards with intelligent layout and AI-generated content.
This skill never runs in Claude Code
It ships in claude-canvas at skills/, but /claude-canvas:canvas (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Claude acts as Creative Director for Obsidian Canvas. Describe what you want and get a fully populated, professionally laid-out .canvas file.
Before any operation, determine the canvas directory:
wiki/canvases/ exists in the current directory or a parent: use it (claude-obsidian vault mode).
_attachments/images/canvas/.canvases/ in the current working directory (standalone mode).
.canvases/assets/Default canvas: [canvas_dir]/main.canvas
| Command | Sub-skill | Description |
|---|---|---|
/canvas (no args) | (inline) | Status: list canvases, node counts, zones |
/canvas create [name] | canvas-create | Create blank or templated canvas |
/canvas create [name] from [template] | canvas-create | Create from archetype |
/canvas add [type] [content] | canvas-populate | Add node (image/text/pdf/note/link/mermaid/svg/gif/banana) |
/canvas zone [name] [color] | canvas-populate | Add group node |
/canvas connect [from] [to] [label] | canvas-populate | Add edge between nodes |
/canvas from banana | canvas-populate | Import recent AI-generated images |
/canvas layout [algorithm] | canvas-layout | Re-layout (auto/grid/dagre/radial/force/linear) |
/canvas present [topic] | canvas-present | Build presentation canvas (1200x675 slides) |
/canvas present from [notes] | canvas-present | Presentation from existing content |
/canvas generate [description] | canvas-generate | AI-orchestrated full canvas generation |
/canvas template list | canvas-template | Browse 12 archetypes |
/canvas template use [name] | canvas-template | Instantiate a template |
/canvas export [format] [path] | canvas-export | Export to PNG/SVG/PDF |
/canvas list | (inline) | List all canvases with stats |
/canvas (no args)main.canvas)./canvas create [name] to start."/canvas list[canvas_dir]/*.canvas.main.canvas 14 nodes (8 images, 3 text, 2 file, 1 group)
design-ideas.canvas 42 nodes (30 images, 4 text, 8 groups)
Read these references before performing canvas operations:
references/canvas-spec.md — JSON Canvas 1.0 format, coordinate system, node types, edges, colors, sizingreferences/performance-guide.md — Node limits, GIF lag, SVG gotchas, 20px grid snappingAdditional references:
references/layout-algorithms.md — 6 layout algorithms (canvas-layout)
references/template-catalog.md — 12 archetypes (canvas-template)
references/presentation-spec.md — Advanced Canvas slides (canvas-present)
references/mermaid-patterns.md — Mermaid in text nodes (canvas-populate, canvas-generate)
references/media-guide.md — Image/GIF/SVG integration (canvas-generate, canvas-populate)
Used by canvas-populate to place new nodes. Read references/canvas-spec.md for the full coordinate system.
def next_position(canvas_nodes, target_zone_label, new_w, new_h):
# Find zone group node
zone = next((n for n in canvas_nodes
if n.get('type') == 'group'
and n.get('label') == target_zone_label), None)
if zone is None:
# No zone: place below all content
max_y = max((n['y'] + n.get('height', 0) for n in canvas_nodes), default=-140)
return snap_grid(-400, max_y + 60)
zx, zy = zone['x'], zone['y']
zw, zh = zone['width'], zone['height']
# Nodes inside this zone (exclude groups)
inside = [n for n in canvas_nodes
if n.get('type') != 'group'
and zx <= n['x'] < zx + zw
and zy <= n['y'] < zy + zh]
if not inside:
return snap_grid(zx + 20, zy + 20)
# Find the bottom-most row: nodes whose bottom edge is closest to the zone bottom
max_bottom = max(n['y'] + n.get('height', 0) for n in inside)
# Nodes on the last row: those whose top y is within one row-height of the bottom
last_row = [n for n in inside if n['y'] + n.get('height', 0) >= max_bottom - 20]
if not last_row:
last_row = inside # fallback
rightmost_x = max(n['x'] + n.get('width', 0) for n in last_row)
next_x = rightmost_x + 40
if next_x + new_w > zx + zw:
# Overflow: new row below the current last row
return snap_grid(zx + 20, max_bottom + 20)
# Same row: align to top of the LAST row (not all nodes)
current_row_y = min(n['y'] for n in last_row)
return snap_grid(next_x, current_row_y)
def snap_grid(x, y, grid=20):
return (round(x / grid) * grid, round(y / grid) * grid)
Read the canvas JSON first. Collect all existing IDs. Never reuse one.
Pattern: [type]-[content-slug]-[full-unix-timestamp]
Use the full 10-digit Unix timestamp to avoid collisions in batch operations.
Examples: img-cover-1744032823, text-note-1744032845, zone-branding-1744032901
If a collision is detected (ID already exists), append -2, -3, etc.
The minimal valid canvas:
{
"nodes": [],
"edges": []
}
Z-index rule: First node in the array renders at the bottom (background). Last node renders on top (foreground). Groups MUST come before their contained nodes so content renders in front of zone backgrounds.
Grid snapping: All x, y, width, height values should be multiples of 20.
Node limit: Warn the user if a canvas exceeds 100 nodes. Error if it exceeds 200.
Every canvas produced by any sub-skill MUST pass these checks before reporting success. These are not optional — they are the definition of "done."
canvas layout radial after instantiation)canvas layout force after instantiation)canvas layout dagre for proper hierarchy)canvas_validate.py to confirmpython3 scripts/canvas_validate.py <path> — must return valid: true with 0 errorsbanana (AI image generation):
/canvas add banana [prompt] delegates to the banana skill, then adds the result as a file node./canvas from banana reads .recent-images.txt or finds images modified in the last 10 minutes.svg (diagram/chart/icon generation):
/canvas add svg [description] delegates to the svg skill, then adds the SVG as a file node.<img> in Obsidian — no interactivity. Must include viewBox for proper scaling.claude-gif-* (GIF generation/editing):
/canvas add gif [description] delegates to the gif skill, then adds as a file node.Mermaid (native in text nodes):
references/canvas-spec.md (opens in a new tab)references/layout-algorithms.md (opens in a new tab)references/media-guide.md (opens in a new tab)references/mermaid-patterns.md (opens in a new tab)references/performance-guide.md (opens in a new tab)references/presentation-spec.md (opens in a new tab)references/template-catalog.md (opens in a new tab)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
/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