AgriciDaniel/claude-canvas / skills/canvas
canvas
VerifiedAI-orchestrated visual production for Obsidian Canvas. Create presentations, flowcharts, mood boards, knowledge graphs, galleries, storyboards, timelines, dashboards, and more with intelligent layout and AI-generated content. Claude acts as Creative Director — dispatching sub-agents for image generation, SVG diagrams, GIF creation, and spatial layout. Supports 12 template archetypes, 6 layout algorithms, and Advanced Canvas presentation mode. Triggers on: /canvas, create canvas, build canvas, make a presentation, visual board, mood board, flowchart canvas, storyboard, canvas from template, lay out canvas, export canvas, canvas layout, canvas generate, add to canvas, put this on the canvas, open canvas, canvas present, canvas template.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.8 KB |
| references/canvas-spec.md | markdown | 9.1 KB |
| references/layout-algorithms.md | markdown | 7.1 KB |
| references/media-guide.md | markdown | 5.2 KB |
| references/mermaid-patterns.md | markdown | 3.9 KB |
| references/performance-guide.md | markdown | 4.8 KB |
| references/presentation-spec.md | markdown | 6.9 KB |
| references/template-catalog.md | markdown | 5.2 KB |
references/mermaid-patterns.md
View on GitHub# Mermaid Patterns for Canvas Text Nodes
Mermaid diagrams render **natively** in Obsidian canvas text nodes — no external tools or plugins needed. Wrap the code in a fenced code block inside a text node's `text` field.
---
## How to Embed Mermaid in Canvas
Create a text node with the Mermaid code inside triple backticks:
```json
{
"id": "text-diagram-1744032823",
"type": "text",
"text": "```mermaid\ngraph LR\n A[Start] --> B[Process]\n B --> C[End]\n```",
"x": 0, "y": 0,
"width": 500, "height": 400,
"color": "5"
}
```
**Sizing recommendations**:
- Minimum width: 500px (Mermaid needs horizontal space)
- Minimum height: 400px (most diagrams need vertical space)
- **Complex diagrams** (7+ nodes): use 600-700px wide, 500-600px tall
- Mermaid renders INSIDE the text node bounds — if the node is too small, the diagram is clipped or overflows visually
- Always add 40-60px vertical padding below the heading text above the mermaid block
- Use color `"5"` (cyan) for diagram nodes to distinguish from text cards
---
## Supported Diagram Types
### Flowchart (graph)
```mermaid
graph TD
A[Input] --> B{Decision}
B -->|Yes| C[Process A]
B -->|No| D[Process B]
C --> E[Output]
D --> E
```
**Canvas sizing**: width=500, height=400
**Best for**: Process flows, decision trees, system diagrams
### Sequence Diagram
```mermaid
sequenceDiagram
participant U as User
participant S as Server
participant D as Database
U->>S: Request
S->>D: Query
D-->>S: Results
S-->>U: Response
```
**Canvas sizing**: width=500, height=350
**Best for**: API flows, interaction patterns, timing
### Gantt Chart
```mermaid
gantt
title Project Timeline
dateFormat YYYY-MM-DD
section Phase 1
Research :a1, 2026-01-01, 14d
Design :a2, after a1, 7d
section Phase 2
Development :b1, after a2, 21d
Testing :b2, after b1, 14d
```
**Canvas sizing**: width=600, height=300
**Best for**: Project timelines, sprint planning, scheduling
### Pie Chart
```mermaid
pie title Traffic Sources
"Organic" : 45
"Paid" : 25
"Social" : 20
"Direct" : 10
```
**Canvas sizing**: width=400, height=350
**Best for**: Proportional data, simple breakdowns
### State Diagram
```mermaid
stateDiagram-v2
[*] --> Draft
Draft --> Review
Review --> Approved
Review --> Draft : Revisions
Approved --> Published
Published --> [*]
```
**Canvas sizing**: width=500, height=350
**Best for**: Status flows, lifecycle models, workflow states
### Entity-Relationship Diagram
```mermaid
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
PRODUCT ||--o{ LINE_ITEM : "is in"
USER {
string name
string email
}
ORDER {
int id
date created
}
```
**Canvas sizing**: width=600, height=400
**Best for**: Database schemas, data modeling
### Git Graph
```mermaid
gitGraph
commit
branch feature
commit
commit
checkout main
merge feature
commit
```
**Canvas sizing**: width=500, height=300
**Best for**: Branching strategies, release flows
---
## Performance Notes
- Large Mermaid diagrams (20+ nodes) may overflow their text node bounds
- Complex diagrams (50+ elements) cause rendering lag
- Text node height should be generous — Obsidian does not auto-resize for Mermaid
- Mermaid renders on every zoom/pan — keep diagrams under 30 elements for smooth canvas interaction
---
## When to Use Mermaid vs. SVG
| Scenario | Use Mermaid | Use SVG (/svg skill) |
|----------|-------------|---------------------|
| Quick flowchart | Yes | No — overkill |
| Complex architecture diagram | No — limited styling | Yes |
| Data visualization with colors | No — limited palette | Yes |
| Inline in a text card | Yes — native rendering | No — requires file node |
| Needs custom fonts/sizing | No | Yes |
| Live-editable in Obsidian | Yes — edit the text | No — regenerate file |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |