canvas-populate
Installation
SKILL.md
canvas-populate: Add Content to Canvases
Read ../canvas/references/canvas-spec.md for the full JSON format before any edit.
Read ../canvas/references/performance-guide.md for node limits and constraints.
General Workflow
For every add operation:
- Read the target canvas JSON. Parse
nodesandedgesarrays. - Collect existing IDs to prevent collisions.
- Generate a new ID:
[type]-[slug]-[unix-timestamp]. - Calculate position using the auto-positioning algorithm (see canvas orchestrator).
- Spacing check: Verify the calculated position has at least 80px horizontal and 60px vertical gap from ALL existing content nodes. If not, shift the position until spacing is clear.
- Append the new node to the
nodesarray (after any groups — z-index ordering). - Validate: Run
python3 scripts/canvas_validate.py <path>— check for overlaps and node count. - Write the updated canvas JSON.
Related skills