canvas-create
Skill299 starsChanged 8 months agoMITView on GitHub
Create new Obsidian Canvas files — blank with a starter structure, or from one of 12 template archetypes (presentation, flowchart, mind-map, gallery, dashboard, storyboard, knowledge-graph, mood-board, timeline, comparison, kanban, project-brief). Handles directory creation, slug generation, and starter zone setup. Triggers on: canvas create, create canvas, new canvas, canvas new, start canvas.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- canvas-exportSkill
- canvas-generateSkill
- canvas-layoutSkill
- canvas-populateSkill
- canvas-presentSkill
- canvasSkill
- canvas-templateSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Create [canvas_dir]/[slug].canvas with starter structure:
- Distinctive: line 52
If no template name given or unclear, show available templates:
- Distinctive: line 69
Ask the user for template-specific parameters (title, number of items, color scheme).
- Distinctive: line 72
Read the generated canvas JSON
- Very specific: line 74
Use the Edit tool to update each node's text field
- Very specific: line 76
Run python3 scripts/canvas_validate.py <path> to verify validity.
- Distinctive: line 99
Create the directory if it doesn't exist.
- Distinctive: line 100
Never overwrite an existing canvas without asking the user.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
canvas-create: Create New Canvases
Operations
Blank Canvas (/canvas create [name])
- Slugify the name: lowercase, spaces to hyphens, strip special chars.
- Determine canvas directory (see canvas orchestrator for context detection).
- Create
[canvas_dir]/[slug].canvaswith starter structure:
{
"nodes": [
{
"id": "zone-default",
"type": "group",
"label": "General",
"x": -400, "y": -140, "width": 800, "height": 400, "color": "4"
},
{
"id": "title",
"type": "text",
"text": "# [Name]\n\nDrop images, PDFs, and notes here.",
"x": -400, "y": -300, "width": 400, "height": 120, "color": "6"
}
],
"edges": []
}Note: Groups MUST come before content nodes in the array (z-index ordering — groups render behind content).
- Report: "Created [canvas_dir]/[slug].canvas. Open it in Obsidian to view."
Templated Canvas (/canvas create [name] from [template])
- Validate template name against the 12 archetypes.
- If no template name given or unclear, show available templates:
presentation — Slide deck (1200x675, Advanced Canvas)
flowchart — Process flow (Sugiyama/dagre layout)
mind-map — Radial center-out expansion
gallery — Grid of image nodes
dashboard — Metric cards + charts + zones
storyboard — Linear scene cards + script annotations
knowledge-graph — Force-directed entity map
mood-board — Asymmetric image grid
timeline — Horizontal event sequence
comparison — Side-by-side columns
kanban — Column zones (Todo/Doing/Done)
project-brief — Hero zone + objectives + deliverables- Ask the user for template-specific parameters (title, number of items, color scheme).
- Delegate to canvas-template skill for instantiation.
- MANDATORY: Replace ALL placeholder text in every node with real, relevant content based on the title and topic. This is not optional:
- Read the generated canvas JSON
- For each text node, replace generic text ("Describe this step", "YYYY-MM-DD", "Value: 0") with real content relevant to the canvas title
- Use the Edit tool to update each node's
textfield - This is the difference between a skeleton and a finished canvas
- Run
python3 scripts/canvas_validate.py <path>to verify validity. - Report the created canvas with node/zone counts.
Slug Generation
import re
def slugify(name):
slug = name.lower().strip()
slug = re.sub(r'[^a-z0-9\s-]', '', slug)
slug = re.sub(r'[\s]+', '-', slug)
slug = re.sub(r'-+', '-', slug)
return slug.strip('-')Directory Rules
- Vault mode (
wiki/canvases/exists): create there, media to_attachments/images/canvas/ - Standalone mode: create in
.canvases/, media to.canvases/assets/ - Create the directory if it doesn't exist.
- Never overwrite an existing canvas without asking the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

