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.
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-canvasRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/obsidianmd/obsidian-skills /tmp/obsidian-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/obsidian-skills/plugins/obsidian/skills/json-canvas ~/.gemini/antigravity-cli/skills/json-canvasAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
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.
