Skip to content

Code Lab

Obsidian Skills Explained: Turn Research Notes into a Connected Canvas

By Miles Park·
GitHub preview of obsidianmd/obsidian-skills, Official agent instructions for Markdown, Canvas, Bases, and Obsidian workflows.

CODE LAB · PROJECT SPOTLIGHT

Obsidian Skills MIT

Official agent instructions for Markdown, Canvas, Bases, and Obsidian workflows.

Preview: GitHub · obsidianmd/obsidian-skills

Research notes become more useful when you can see which source supports which claim. Obsidian Skills gives compatible coding agents instructions for working with Obsidian and its file formats. A good first task is a small Canvas linking an official announcement to an article note. The files remain inspectable, and the relationship is explicit enough to validate before opening the desktop app.

Look at the actual Canvas interface

Official Obsidian Canvas screen arranging research notes and images with visible connecting lines.
Obsidian’s official Canvas product image. It shows the application’s visual workspace, independently of our JSON example. Creator image source.

Notice how text cards, images, and connecting lines share one workspace. Their positions help the reader compare material while the edges express relationships. In our example, the relationship is “supports.” The screenshot demonstrates the product interface. It is the publisher’s screen, and it shows different content from the small example below. Official Canvas overview.

Install the skills for your agent

The repository provides installation routes for several supported agent hosts. Choose the instructions for the application you actually use. For a Claude Code terminal, the documented marketplace commands are shown below. Installing the skill supplies format and workflow guidance. Access to an existing vault still depends on the host and the files you make available. Official installation instructions.

claude plugin marketplace add obsidianmd/obsidian-skills
claude plugin install obsidian@obsidian-skills

The repository source is an executable instruction format

This project’s core source consists of skill instructions. The pinned JSON Canvas skill spells out how to construct cards and edges and what to validate. Displaying that original Markdown makes the agent’s guidance inspectable. The Python example below is our own implementation of a small validation step.

obsidianmd/obsidian-skillsMarkdown · source excerpt
Ma  plugins/obsidian/skills/json-canvas/SKILL.md
2122## Common Workflows2324### 1. Create a New Canvas25261. Create a `.canvas` file with the base structure `{"nodes": [], "edges": []}`272. Generate unique 16-character hex IDs for each node (e.g., `"6f0ad84f44ce9c17"`)283. Add nodes with required fields: `id`, `type`, `x`, `y`, `width`, `height`294. Add edges referencing valid node IDs via `fromNode` and `toNode`305. **Validate**: Parse the JSON to confirm it is valid. Verify all `fromNode`/`toNode` values exist in the nodes array31
Lines 21–31 · commit 9c9560aView original on GitHub ↗

Source credit: obsidianmd/obsidian-skills. MIT license and copyright notices.

Create two cards and connect the evidence

Save the following as research.canvas in an Obsidian vault. The left card contains the source note. The right contains the article task. The edge links their stable IDs. Coordinates and dimensions control the arrangement, while the label records why the cards are connected.

{
  "nodes": [
    {"id":"a000000000000001", "type":"text", "x":0, "y":0,
     "width":300, "height":180, "text":"# Source\nOfficial announcement"},
    {"id":"a000000000000002", "type":"text", "x":400, "y":0,
     "width":300, "height":180, "text":"# Article\nVerify claims before publishing"}
  ],
  "edges": [
    {"id":"b000000000000001", "fromNode":"a000000000000001",
     "toNode":"a000000000000002", "label":"supports"}
  ]
}

We wrote this file and checked it with Python. Parsing proves that the JSON is readable. Checking the endpoint IDs catches a more useful error, an edge pointing to a card that no longer exists. A full Canvas validator would also check required fields, types, and uniqueness across the file.

import json
from pathlib import Path
canvas = json.loads(Path("research.canvas").read_text())
ids = {node["id"] for node in canvas["nodes"]}
assert all(edge["fromNode"] in ids and edge["toNode"] in ids
           for edge in canvas["edges"])
print(f"{len(canvas['nodes'])} nodes, {len(canvas['edges'])} edge; all references resolve")
# Observed local output
# 2 nodes, 1 edge; all references resolve

Opening the file in Canvas should arrange the source card to the left of the article card with a labeled connection. That display is expected from the documented format. We ran the JSON and reference checks without opening Obsidian. For real research, replace the placeholder text with a source URL, a checked claim, and a note about the evidence you still need. File-backed cards can connect the canvas to longer Markdown notes.

For a different document-and-canvas model, see AFFiNE’s document and canvas walkthrough. To prepare source documents as text first, read Microsoft MarkItDown. For related agent workflow guidance, continue with Agent Skills and quality checks.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *