Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

json-canvas

Skill by obsidianmd

Creates and edits JSON Canvas (.canvas) files with nodes, edges, groups and connections. It is for users who build visual canvases, mind maps or flowcharts in Obsidian.

  • Score 94
  • 55k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install json-canvas

Built from the published package, never by AI.

git clone --depth 1 https://github.com/obsidianmd/obsidian-skills /tmp/obsidian-skills && mkdir -p ~/.claude/skills && cp -r /tmp/obsidian-skills/plugins/obsidian/skills/json-canvas ~/.claude/skills/json-canvas

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install json-canvas in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill teaches an AI assistant how to create and edit JSON Canvas files that use the .canvas extension. It follows the JSON Canvas Spec 1.0 and covers text, file, link and group nodes, plus edges that connect nodes by ID. The skill gives step-by-step workflows for new canvases, adding nodes, connecting nodes and editing existing files.

The skill also sets validation rules. The assistant checks for unique IDs, dangling edge references, valid node types and side values, and correctly escaped quotes and newlines. It includes layout and CJK text sizing guidelines and points to a separate examples file with mind maps, project boards, research canvases and flowcharts. The source is aimed at users who work with Canvas files in Obsidian.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create a new canvasBuilds a .canvas file with nodes and edges arrays and valid node IDs.
  • Add a nodeAppends a node to an existing canvas at a position that avoids overlap.
  • Connect two nodesAdds an edge with optional anchor sides, arrow ends and a text label.
  • Edit an existing canvasFinds a node or edge by ID, changes its attributes and writes the file back.
  • Validate canvas filesChecks ID uniqueness, edge references, node types, colors and escaping.
  • Layout guidanceGives suggested node sizes, spacing and extra width for CJK text.

Try asking

  • Create a .canvas mind map of my project ideas with linked nodes
  • Add a new text node to my existing canvas and connect it to the goals node
  • Turn this list of steps into a flowchart canvas in Obsidian

Good to know

  • Preset color values are intentionally undefined, so applications use their own brand colors.
  • Text quotes and newlines must be escaped correctly or the canvas will fail to render.
  • Canvas files should be written directly, not created with obsidian create content=.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/obsidian/skills/json-canvas/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB
  • references/EXAMPLES.md6 KB

Alternatives to json-canvas

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

json-canvas: common questions

What is a JSON Canvas file?

A .canvas file holds two top-level arrays, nodes and edges, following the JSON Canvas Spec 1.0. The source describes it as the format Obsidian uses for canvases.

What node types does the skill support?

The skill lists text, file, link and group node types. Each type has its own required attributes.

How does the skill avoid broken canvas files?

It asks the assistant to parse the JSON, confirm unique IDs and check that every fromNode and toNode exists. It also advises using a JSON serializer for generated text.

How do I install json-canvas?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is json-canvas free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is json-canvas safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to json-canvas?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

json-canvas Install

Add to stack

Loading.