← 返回 Skills 市场
axtonliu

Obsidian Canvas Creator

作者 Axton · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
446
总下载
0
收藏
9
当前安装
2
版本数
在 OpenClaw 中安装
/install obsidian-canvas-creator
功能描述
Create Obsidian Canvas files from text content, supporting both MindMap and freeform layouts. Use this skill when users want to visualize content as an inter...
使用说明 (SKILL.md)

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 (\x3C30 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

  1. Quote Handling:

    • Chinese double quotes → 『』
    • Chinese single quotes → 「」
    • English double quotes → \"
  2. ID Generation:

    • 8-12 character random hex strings
    • Must be unique across all nodes and edges
  3. Z-Index Order:

    • Output groups first (bottom layer)
    • Then subgroups
    • Finally text/link nodes (top layer)
  4. Spacing Requirements:

    • Minimum horizontal: 320px between node centers
    • Minimum vertical: 200px between node centers
    • Account for node dimensions when calculating
  5. JSON Structure:

    • Top level contains only nodes and edges arrays
    • No extra wrapping objects
    • No comments in output
  6. 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:

  1. Identify center: "Solar System"
  2. Primary branches: Inner Planets, Outer Planets, Dwarf Planets
  3. Secondary nodes: Individual planets with key facts
  4. Apply radial layout
  5. Generate JSON with proper spacing

Freeform Content Request

User: "Turn this article into a canvas" + [article text]

Process:

  1. Extract article structure (intro, body sections, conclusion)
  2. Identify key concepts and relationships
  3. Group related sections spatially
  4. Connect with labeled edges
  5. 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

  1. Keep text concise: Each node should be scannable (\x3C2 lines preferred)
  2. Use hierarchy: Group by importance and relationship
  3. Balance the canvas: Distribute nodes to avoid clustering
  4. Strategic colors: Use colors to encode meaning, not just decoration
  5. Meaningful connections: Only add edges that clarify relationships
  6. 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)
安全使用建议
This skill is internally consistent and appears to do only what it claims: convert user-provided text into Obsidian-compatible Canvas JSON. Before using it with sensitive content, test it on non-sensitive examples to confirm formatting (especially the Chinese quote substitutions and the strict JSON-only output). If you plan to install files from the README (git clone / plugin marketplace), verify the GitHub repository and review any additional scripts there before running them. Finally, validate the generated .canvas JSON in a JSON linter or Obsidian sandbox before opening in your main vault to avoid accidental content import or layout issues.
功能分析
Type: OpenClaw Skill Name: obsidian-canvas-creator Version: 1.0.1 The obsidian-canvas-creator skill bundle provides comprehensive instructions and technical references for an AI agent to transform text into Obsidian Canvas JSON files. The bundle includes detailed layout algorithms (radial, tree, and force-directed) in references/layout-algorithms.md and a clear specification of the target format in references/canvas-spec.md. No evidence of malicious intent, data exfiltration, or harmful prompt injection was found; the instructions are strictly focused on content analysis and spatial organization.
能力评估
Purpose & Capability
Name and description match the delivered assets: instruction-only SKILL.md plus canvas-spec and layout-algorithms references. No unexpected binaries, credentials, or system paths are requested that would be unrelated to generating canvas JSON.
Instruction Scope
SKILL.md limits runtime behavior to analyzing provided text, planning layout, generating JSON according to the included canvas spec, validating IDs/coordinates, and returning only the JSON. This is appropriately scoped. Note: it enforces unusual quote substitutions for Chinese punctuation and a strict "no extra text" output rule — these are design choices that could affect readability or require careful testing with bilingual content.
Install Mechanism
No install spec or code files beyond documentation; this is an instruction-only skill so nothing will be downloaded or written by an installer. README references optional manual cloning of a GitHub repo for local use — that is standard and optional.
Credentials
The skill declares no required environment variables, credentials, or config paths. The instructions do not ask for or reference any secrets or unrelated environment information.
Persistence & Privilege
always is false and there is no request to modify other skills or system settings. The skill is user-invocable and may be invoked autonomously per platform defaults — that is expected for a prompt-based skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install obsidian-canvas-creator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /obsidian-canvas-creator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added English and Chinese documentation files: README.md and README_CN.md. - No other changes to the core skill or functionality.
v1.0.0
Initial release of obsidian-canvas-creator: turn text into Obsidian Canvas JSON for mind maps and freeform layouts. - Converts structured or unstructured text into Obsidian Canvas format, supporting both MindMap (radial, hierarchical) and freeform visualizations. - Automatically analyzes content, determines layout, extracts structure, and organizes nodes and edges. - Assigns unique hex IDs and appropriate node sizes based on text length. - Enforces strict spacing, color schemes, ID, and quote-format rules for compatibility and clarity. - Outputs fully validated, import-ready JSON files for Obsidian with no extra text or comments.
元数据
Slug obsidian-canvas-creator
版本 1.0.1
许可证 MIT-0
累计安装 9
当前安装数 9
历史版本数 2
常见问题

Obsidian Canvas Creator 是什么?

Create Obsidian Canvas files from text content, supporting both MindMap and freeform layouts. Use this skill when users want to visualize content as an inter... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 446 次。

如何安装 Obsidian Canvas Creator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install obsidian-canvas-creator」即可一键安装,无需额外配置。

Obsidian Canvas Creator 是免费的吗?

是的,Obsidian Canvas Creator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Obsidian Canvas Creator 支持哪些平台?

Obsidian Canvas Creator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Obsidian Canvas Creator?

由 Axton(@axtonliu)开发并维护,当前版本 v1.0.1。

💬 留言讨论