# obsidian-canvas > Create, edit, and manipulate Obsidian Canvas (.canvas) files. Use this skill when the user wants to visualize concepts, build flowcharts, or organize information spatially using the JSON Canvas format. - Author: Martin Maričák - Repository: altshiftstudio/skills - Version: 20260124071627 - Stars: 1 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/altshiftstudio/skills - Web: https://mule.run/skillshub/@@altshiftstudio/skills~obsidian-canvas:20260124071627 --- --- name: obsidian-canvas description: Create, edit, and manipulate Obsidian Canvas (.canvas) files. Use this skill when the user wants to visualize concepts, build flowcharts, or organize information spatially using the JSON Canvas format. --- # Obsidian Canvas This skill handles the creation and manipulation of `.canvas` files (JSON Canvas). ## Core Workflow 1. **Library**: Utilization of the provided `scripts/canvas_lib.py` is **MANDATORY**. Do not write raw JSON. 2. **Execution**: Construct a JSON payload and pipe it to the library script via stdin (CLI mode). Do not create temporary Python scripts. 3. **Layout**: Focus on logical coordinates (x,y). The library handles ID generation, node height, and edge routing automatically. ## Resources - **Library**: `scripts/canvas_lib.py` (Core logic for nodes, groups, and smart edges). - **CLI Spec**: [references/library_spec.md](references/library_spec.md) - **Read strictly for JSON format**. - **Specification**: See [references/spec.md](references/spec.md) for the detailed JSON schema. - **Example**: See [assets/flowchart.canvas](assets/flowchart.canvas). ## Layout & Aesthetics - **Layout**: Space nodes nicely (e.g., 100px gap). Align to a theoretical grid. - **Swimlanes**: When using groups as swimlanes (columns), align interacting nodes across lanes to the same `y` axis. - **Colors**: Use presets `"1"`-`"6"` for semantic meaning (Red=Error, Green=Success, Purple=System). ## Output To create a new canvas, construct a JSON payload and pipe it to the library script: ```bash cat <