Obsidian Canvas Creator
Transform text content into structured Obsidian Canvas files with support for MindMap and freeform layouts.
When to Use This Skill
- User requests to create a canvas, mind map, or visual diagram from text
- User wants to organize information spatially
- User mentions "Obsidian Canvas" or similar visualization tools
- Converting structured content (articles, notes, outlines) into visual format
Core Workflow
1. Analyze Content
Read and understand the input content:
- Identify main topics and hierarchical relationships
- Extract key points, facts, and supporting details
- Note any existing structure (headings, lists, sections)
2. Determine Layout Type
Ask user to choose or infer from context:
MindMap Layout:
- Radial structure from center
- Parent-child relationships
- Clear hierarchy
- Good for: brainstorming, topic exploration, hierarchical content
Freeform Layout:
- Custom positioning
- Flexible relationships
- Multiple connection types
- Good for: complex networks, non-hierarchical content, custom arrangements
3. Plan Structure
For MindMap:
- Identify central concept (root node)
- Map primary branches (main topics)
- Organize secondary branches (subtopics)
- Position leaf nodes (details)
For Freeform:
- Group related concepts
- Identify connection patterns
- Plan spatial zones
- Consider visual flow
4. Generate Canvas
Create JSON following the Canvas specification:
Node Creation:
- Assign unique 8-12 character hex IDs
- Set appropriate dimensions based on content length
- Apply consistent color schemes
- Ensure no coordinate overlaps
Edge Creation:
- Connect parent-child relationships
- Use appropriate arrow styles
- Add labels for complex relationships
- Choose line styles (straight for hierarchy, curved for cross-references)
Grouping (Optional):
- Create visual containers for related nodes
- Use subtle background colors
- Add descriptive labels
5. Apply Layout Algorithm
MindMap Layout Calculations:
Refer to references/layout-algorithms.md for detailed algorithms. Key principles:
- Center root at (0, 0)
- Distribute primary nodes radially
- Space secondary nodes based on sibling count
- Maintain minimum spacing: 320px horizontal, 200px vertical
Freeform Layout Principles:
- Start with logical groupings
- Position groups with clear separation
- Connect across groups with curved edges
- Balance visual weight across canvas
6. Validate and Output
Before outputting:
Validation Checklist:
- All nodes have unique IDs
- No coordinate overlaps (check distance > node dimensions + spacing)
- All edges reference valid node IDs
- Groups (if any) have labels
- Colors use consistent format (hex or preset numbers)
- JSON is properly escaped (Chinese quotes: 『』 for double, 「」 for single)
Output Format:
- Complete, valid JSON Canvas file
- No additional explanation text
- Directly importable into Obsidian
Node Sizing Guidelines
Text Length-Based Sizing:
- Short text (<30 chars): 220 × 100 px
- Medium text (30-60 chars): 260 × 120 px
- Long text (60-100 chars): 320 × 140 px
- Very long text (>100 chars): 320 × 180 px
Color Schemes
Preset Colors (Recommended):
"1" - Red (warnings, important)
"2" - Orange (action items)
"3" - Yellow (questions, notes)
"4" - Green (positive, completed)
"5" - Cyan (information, details)
"6" - Purple (concepts, abstract)
Custom Hex Colors:
Use for brand consistency or specific themes. Always use uppercase format: "#4A90E2"
Critical Rules
Quote Handling:
- Chinese double quotes → 『』
- Chinese single quotes → 「」
- English double quotes →
\"
ID Generation:
- 8-12 character random hex strings
- Must be unique across all nodes and edges
Z-Index Order:
- Output groups first (bottom layer)
- Then subgroups
- Finally text/link nodes (top layer)
Spacing Requirements:
- Minimum horizontal: 320px between node centers
- Minimum vertical: 200px between node centers
- Account for node dimensions when calculating
JSON Structure:
- Top level contains only
nodes and edges arrays
- No extra wrapping objects
- No comments in output
No Emoji:
- Do not use any Emoji symbols in node text
- Use color coding or text labels for visual distinction instead
Examples
Simple MindMap Request
User: "Create a mind map about solar system planets"
Process:
- Identify center: "Solar System"
- Primary branches: Inner Planets, Outer Planets, Dwarf Planets
- Secondary nodes: Individual planets with key facts
- Apply radial layout
- Generate JSON with proper spacing
Freeform Content Request
User: "Turn this article into a canvas" + [article text]
Process:
- Extract article structure (intro, body sections, conclusion)
- Identify key concepts and relationships
- Group related sections spatially
- Connect with labeled edges
- Apply freeform layout with clear zones
Reference Documents
- Canvas Specification:
references/canvas-spec.md - Complete JSON Canvas format specification
- Layout Algorithms:
references/layout-algorithms.md - Detailed positioning algorithms for both layout types
Load these references when:
- Need specification details for edge cases
- Implementing complex layout calculations
- Troubleshooting validation errors
Tips for Quality Canvases
- Keep text concise: Each node should be scannable (<2 lines preferred)
- Use hierarchy: Group by importance and relationship
- Balance the canvas: Distribute nodes to avoid clustering
- Strategic colors: Use colors to encode meaning, not just decoration
- Meaningful connections: Only add edges that clarify relationships
- Test in Obsidian: Verify the output opens correctly
Common Pitfalls to Avoid
- Overlapping nodes (always check distances)
- Inconsistent quote escaping (breaks JSON parsing)
- Missing group labels (causes sidebar navigation issues)
- Too much text in nodes (use file nodes for long content)
- Duplicate IDs (each must be unique)
- Unconnected nodes (unless intentional islands)
1---2name: obsidian-canvas-creator3description: Create Obsidian Canvas files from text content, supporting both MindMap and freeform layouts. Use this skill when users want to visualize content as an interactive canvas, create mind maps, or organize information spatially in Obsidian format.4---56# Obsidian Canvas Creator78Transform text content into structured Obsidian Canvas files with support for MindMap and freeform layouts.910## When to Use This Skill1112- User requests to create a canvas, mind map, or visual diagram from text13- User wants to organize information spatially14- User mentions "Obsidian Canvas" or similar visualization tools15- Converting structured content (articles, notes, outlines) into visual format1617## Core Workflow1819### 1. Analyze Content2021Read and understand the input content:22- Identify main topics and hierarchical relationships23- Extract key points, facts, and supporting details24- Note any existing structure (headings, lists, sections)2526### 2. Determine Layout Type2728Ask user to choose or infer from context:2930**MindMap Layout:**31- Radial structure from center32- Parent-child relationships33- Clear hierarchy34- Good for: brainstorming, topic exploration, hierarchical content3536**Freeform Layout:**37- Custom positioning38- Flexible relationships39- Multiple connection types40- Good for: complex networks, non-hierarchical content, custom arrangements4142### 3. Plan Structure4344**For MindMap:**45- Identify central concept (root node)46- Map primary branches (main topics)47- Organize secondary branches (subtopics)48- Position leaf nodes (details)4950**For Freeform:**51- Group related concepts52- Identify connection patterns53- Plan spatial zones54- Consider visual flow5556### 4. Generate Canvas5758Create JSON following the Canvas specification:5960**Node Creation:**61- Assign unique 8-12 character hex IDs62- Set appropriate dimensions based on content length63- Apply consistent color schemes64- Ensure no coordinate overlaps6566**Edge Creation:**67- Connect parent-child relationships68- Use appropriate arrow styles69- Add labels for complex relationships70- Choose line styles (straight for hierarchy, curved for cross-references)7172**Grouping (Optional):**73- Create visual containers for related nodes74- Use subtle background colors75- Add descriptive labels7677### 5. Apply Layout Algorithm7879**MindMap Layout Calculations:**8081Refer to `references/layout-algorithms.md` for detailed algorithms. Key principles:8283- Center root at (0, 0)84- Distribute primary nodes radially85- Space secondary nodes based on sibling count86- Maintain minimum spacing: 320px horizontal, 200px vertical8788**Freeform Layout Principles:**8990- Start with logical groupings91- Position groups with clear separation92- Connect across groups with curved edges93- Balance visual weight across canvas9495### 6. Validate and Output9697Before outputting:9899**Validation Checklist:**100- All nodes have unique IDs101- No coordinate overlaps (check distance > node dimensions + spacing)102- All edges reference valid node IDs103- Groups (if any) have labels104- Colors use consistent format (hex or preset numbers)105- JSON is properly escaped (Chinese quotes: 『』 for double, 「」 for single)106107**Output Format:**108- Complete, valid JSON Canvas file109- No additional explanation text110- Directly importable into Obsidian111112## Node Sizing Guidelines113114**Text Length-Based Sizing:**115- Short text (<30 chars): 220 × 100 px116- Medium text (30-60 chars): 260 × 120 px 117- Long text (60-100 chars): 320 × 140 px118- Very long text (>100 chars): 320 × 180 px119120## Color Schemes121122**Preset Colors (Recommended):**123- `"1"` - Red (warnings, important)124- `"2"` - Orange (action items)125- `"3"` - Yellow (questions, notes)126- `"4"` - Green (positive, completed)127- `"5"` - Cyan (information, details)128- `"6"` - Purple (concepts, abstract)129130**Custom Hex Colors:**131Use for brand consistency or specific themes. Always use uppercase format: `"#4A90E2"`132133## Critical Rules1341351. **Quote Handling:**136 - Chinese double quotes → 『』137 - Chinese single quotes → 「」138 - English double quotes → `\"`1391402. **ID Generation:**141 - 8-12 character random hex strings142 - Must be unique across all nodes and edges1431443. **Z-Index Order:**145 - Output groups first (bottom layer)146 - Then subgroups147 - Finally text/link nodes (top layer)1481494. **Spacing Requirements:**150 - Minimum horizontal: 320px between node centers151 - Minimum vertical: 200px between node centers152 - Account for node dimensions when calculating1531545. **JSON Structure:**155 - Top level contains only `nodes` and `edges` arrays156 - No extra wrapping objects157 - No comments in output1581596. **No Emoji:**160 - Do not use any Emoji symbols in node text161 - Use color coding or text labels for visual distinction instead162163## Examples164165### Simple MindMap Request166User: "Create a mind map about solar system planets"167168Process:1691. Identify center: "Solar System"1702. Primary branches: Inner Planets, Outer Planets, Dwarf Planets1713. Secondary nodes: Individual planets with key facts1724. Apply radial layout1735. Generate JSON with proper spacing174175### Freeform Content Request176User: "Turn this article into a canvas" + [article text]177178Process:1791. Extract article structure (intro, body sections, conclusion)1802. Identify key concepts and relationships1813. Group related sections spatially1824. Connect with labeled edges1835. Apply freeform layout with clear zones184185## Reference Documents186187- **Canvas Specification**: `references/canvas-spec.md` - Complete JSON Canvas format specification188- **Layout Algorithms**: `references/layout-algorithms.md` - Detailed positioning algorithms for both layout types189190Load these references when:191- Need specification details for edge cases192- Implementing complex layout calculations193- Troubleshooting validation errors194195## Tips for Quality Canvases1961971. **Keep text concise**: Each node should be scannable (<2 lines preferred)1982. **Use hierarchy**: Group by importance and relationship1993. **Balance the canvas**: Distribute nodes to avoid clustering2004. **Strategic colors**: Use colors to encode meaning, not just decoration2015. **Meaningful connections**: Only add edges that clarify relationships2026. **Test in Obsidian**: Verify the output opens correctly203204## Common Pitfalls to Avoid205206- Overlapping nodes (always check distances)207- Inconsistent quote escaping (breaks JSON parsing)208- Missing group labels (causes sidebar navigation issues)209- Too much text in nodes (use file nodes for long content)210- Duplicate IDs (each must be unique)211- Unconnected nodes (unless intentional islands)