canvas

Generate spatial diagrams from JSON node and edge definitions.

Updated May 29, 2026
One-click install
npx skills add https://github.com/aryanshrai03/readme-ai --skill canvas-aryanshrai03
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canvas
Source: https://github.com/aryanshrai03/readme-ai/tree/main/api/skills/canvas
Command: npx skills add https://github.com/aryanshrai03/readme-ai --skill canvas-aryanshrai03

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you turn complex relationships into clear spatial diagrams without relying on manual drawing tools.

Core Features & Use Cases

  • JSON-based spatial layout: Place nodes using exact x/y coordinates and explicit width/height for predictable results.
  • Rich node semantics: Use text, file, link, and group nodes to represent information, references, and containers.
  • Directional connections: Connect nodes with edges that specify source/target sides and arrow ends for readable relationship graphs.

Quick Start

Create a diagram by writing a JSON object with nodes (each with id, type, x, y, width, height) and edges (with fromNode and toNode) and then wrap it in a canvas code block named canvas.

Frequently Asked Questions about canvas

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a spatial diagram from JSON?

To generate a spatial diagram from JSON, define a JSON object with mandatory `nodes` and `edges` arrays, specifying exact x/y coordinates and dimensions for each node, then wrap it in a canvas code block. This creates predictable knowledge graphs and workflow layouts without manual drawing.

What is the best way to create a knowledge graph using node and edge definitions?

The best way to create a knowledge graph is by defining structured JSON with directional edges and semantically typed nodes. You can use `text`, `file`, `link`, and `group` node types to represent information and containers, specifying source and target sides for readable relationship connections.

Can I use exact pixel coordinates for workflow planning visualization?

Yes, you can use exact pixel coordinates for workflow planning visualization by assigning non-negative x and y positions along with explicit width and height values to each node in your JSON definition, ensuring predictable and precise spatial layouts.

Does this approach support directional connections for mind map structures?

Yes, this approach supports directional connections for mind map structures by allowing edges to specify source and target sides with arrow ends. This ensures readable relationship graphs and clear directional flow between connected nodes.

What are the requirements for structuring JSON nodes and edges?

Structuring JSON nodes and edges requires a mandatory `nodes` array with validated attributes including `id`, `type`, `x`, `y`, `width`, and `height`, alongside an `edges` array defining connections using `fromNode` and `toNode` properties within a canvas code block.