From the-ai-brain
Create an Obsidian JSON Canvas visualization from vault content. Use when the user says "create a canvas", "visualize", "make a diagram", "map this out", "canvas view", or wants to create an Obsidian canvas file.
How this skill is triggered — by the user, by Claude, or both
Slash command
/the-ai-brain:brain-canvasclaude-sonnet-4-6The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<objective>
Ask the user (or infer from context) what to map:
If visualizing vault content:
With Obsidian CLI:
obsidian search query=<topic> format=json
obsidian backlinks file=<note-name> format=json
Without Obsidian CLI:
Plan the layout:
Obsidian canvas format is a .canvas file (JSON):
{
"nodes": [
{
"id": "node1",
"type": "text",
"text": "## Title\nContent here",
"x": 0,
"y": 0,
"width": 250,
"height": 120,
"color": "1"
},
{
"id": "node2",
"type": "file",
"file": "Human/Projects/MyProject.md",
"x": 350,
"y": 0,
"width": 250,
"height": 120
},
{
"id": "node3",
"type": "link",
"url": "https://example.com",
"x": 700,
"y": 0,
"width": 250,
"height": 120
}
],
"edges": [
{
"id": "edge1",
"fromNode": "node1",
"fromSide": "right",
"toNode": "node2",
"toSide": "left",
"label": "leads to"
}
]
}
Node types:
text -- inline markdown text (use for concepts, labels, summaries)file -- link to an existing vault file (renders the note preview)link -- external URL cardgroup -- container for grouping related nodes (add label field)Color values (Obsidian theme colors):
"1" = red, "2" = orange, "3" = yellow, "4" = green, "5" = cyan, "6" = purpleLayout tips:
Save to Machine/Canvases/{descriptive-name}.canvas
Create the directory if it doesn't exist.
With Obsidian CLI: After saving, run:
obsidian open "Machine/Canvases/{name}.canvas"
to open it immediately in Obsidian.
Tell the user:
<success_criteria>
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub cfircoo/the-ai-brain --plugin the-ai-brain