SKILL.md--- name: canvas description: 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. --- # Canvas Treat a canvas as a vault-scoped JSON Canvas document. Keep reads read-only and route every requested mutation through one recoverable transaction. Resolve the installed product root from this skill's own location, not from the vault or current working directory: ```bash PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py" test -f "$CORE" ``` Every `../wiki/references/` link in this file resolves the same way, relative to this skill's own directory under `$PRODUCT_ROOT`, never relative to the selected vault's `wiki/` directory. ## Choose the syntax source Prefer a separately installed `kepano/obsidian-skills` `json-canvas` skill for format details. Otherwise read [references/canvas-spec.md](references/canvas-spec.md). The open standard is [JSON Canvas 1.0](https://jsoncanvas.org/spec/1.0/). Use this skill for vault workflow and transaction safety even when an upstream syntax skill is available. ## Scope - Resolve the user vault before reading. Never derive it from plugin files. - Store boards under `wiki/canvases/`; use `wiki/canvases/main.canvas` only as the default when the user did not name a board. - Treat `wiki/canvases/_index.md` as an optional catalog. Add a new board to it in the same transaction when a catalog exists. Node or edge edits inside an existing board do not require a catalog change. - The transaction engine supports file creation and replacement only. A board file cannot be deleted or renamed through this skill. Explain that boundary for a file-removal or file-rename request and return a separate cleanup plan; do not substitute host file tools or silently turn a rename into a copy. - Use vault-relative paths in `file` and `background`; reject absolute paths, `..` traversal, home shortcuts, and paths that escape through symlinks. - Reference only files already inside the vault or created in the same reviewed transaction. If an optional capture or media capability is detected, compose with it and consume its returned vault-relative path. Do not assume a particular plugin, command, or session log, and do not download or copy assets in this skill. - Use `link` nodes for URLs. Accept HTTPS URLs only; a link node does not grant permission to fetch the page. Creating its JSON makes no request, but opening it in Obsidian may fetch Open Graph metadata from that URL's host. Disclose that render-time egress and confirm it is acceptable; otherwise use a text node containing the URL. ## Read-only operations For status or list requests, parse the selecte