zhanlincui/ultimate-agent-skills-collection/json-canvas
Claude Code and agent skill by zhanlincui/ultimate-agent-skills-collection
- community
Checking that the SKILL.md file is still in the repository.
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.
Install
npx vskill@latest install zhanlincui/ultimate-agent-skills-collection/json-canvasSKILL.md
JSON Canvas Skill
This skill enables skills-compatible agents to create and edit valid JSON Canvas files (.canvas) used in Obsidian and other applications.
Overview
JSON Canvas is an open file format for infinite canvas data. Canvas files use the .canvas extension and contain valid JSON following the JSON Canvas Spec 1.0.
File Structure
A canvas file contains two top-level arrays:
nodes(optional): Array of node objectsedges(optional): Array of edge objects connecting nodes
Nodes
Nodes are objects placed on the canvas. There are four node types:
text- Text content with Markdownfile- Reference to files/attachmentslink- External URLgroup- Visual container for other nodes
Z-Index Ordering
Nodes are ordered by z-index in the array:
- First node = bottom layer (displayed below others)
- Last node = top layer (displayed above others)
Generic Node Attributes
All nodes share these attributes:
| Attribute | Required | Type | Description | |
|---|---|---|---|---|
id | Yes | string | Unique identifier for the node | |
type | Yes | string | Node type: text, file, link, or group | |
x | Yes | integer | X position in pixels | |
y | Yes | integer | Y position in pixels | |
width | Yes | integer | Width in pixels | |
height | Yes | integer | Height in pixels | |
color | No | canvasColor | Node color (see Color section) |
Text Nodes
Text nodes contain Markdown content.
| Attribute | Required | Type | Description | |
|---|---|---|---|---|
text | Yes | string | Plain text with Markdown syntax |
File Nodes
File nodes reference files or attachments (images, videos, PDFs, notes, etc.).
| Attribute | Required | Type | Description | |
|---|---|---|---|---|
file | Yes | string | Path to file within the system | |
subpath | No | string | Link to heading or block (starts with #) |
Link Nodes
Link nodes display external URLs.
| Attribute | Required | Type | Description | |
|---|---|---|---|---|
url | Yes | string | External URL |
Group Nodes
Group nodes are visual containers for organizing other nodes.
| Attribute | Required | Type | Description | |
|---|---|---|---|---|
label | No | string | Text label for the group | |
background | No | string | Path to background image | |
backgroundStyle | No | string | Background rendering style |
Background Styles
| Value | Description | |
|---|---|---|
cover | Fills entire width and height of node | |
ratio | Maintains aspect ratio of background image | |
repeat | Repeats image as pattern in both directions |
Edges
Edges are lines connecting nodes.
| Attribute | Required | Type | Default | Description | |
|---|---|---|---|---|---|
id | Yes | string | - | Unique identifier for the edge | |
fromNode | Yes | string | - | Node ID where connection starts | |
fromSide | No | string | - | Side where edge starts | |
fromEnd | No | string | none | Shape at edge start | |
toNode | Yes | string | - | Node ID where connection ends | |
toSide | No | string | - | Side where edge ends | |
toEnd | No | string | arrow | Shape at edge end | |
color | No | canvasColor | - | Line color | |
label | No | string | - | Text label for the edge |
Side Values
| Value | Description | |
|---|---|---|
top | Top edge of node | |
right | Right edge of node | |
bottom | Bottom edge of node | |
left | Left edge of node |
End Shapes
| Value | Description | |
|---|---|---|
none | No endpoint shape | |
arrow | Arrow endpoint |
Colors
The canvasColor type can be specified in two ways:
Hex Colors
Preset Colors
| Preset | Color | |
|---|---|---|
"1" | Red | |
"2" | Orange | |
"3" | Yellow | |
"4" | Green | |
"5" | Cyan | |
"6" | Purple |
Note: Specific color values for presets are intentionally undefined, allowing applications to use their own brand colors.
Complete Examples
Simple Canvas with Text and Connections
Project Board with Groups
Research Canvas with Files and Links
Flowchart
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingobsidian/json-canvas/SKILL.md
Popularity
- Repository stars
- 120
- Repository forks
- 18
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zhanlincui/ultimate-agent-skills-collection/json-canvas)