canvas-layout

canvas-layout is a skill for Claude Code from AgriciDaniel/claude-canvas. It costs 104 tokens per session (900 once invoked), scanned A, original, MIT.

A tool for rearranging nodes on an Obsidian Canvas, a visual workspace where notes, files, and links appear as movable boxes. It supports layouts such as grids, flowcharts, mind maps, timelines, and knowledge graphs.

In plain words
What is it for?
Use it to arrange image galleries, flowcharts, organizational charts, mind maps, timelines, or connected knowledge graphs.
Why use it?
It organizes crowded canvases while preserving group membership and aligning items to a grid. It can also refit groups around their contents and validate the result.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/canvas_layout.py [canvas_path] [algorithm] [options].

Part of the claude-canvas plugin — 8 skills, 1 command, 3 agents shipped together

Good fit Use it to arrange image galleries, flowcharts, organizational charts, mind maps, timelines, or connected knowledge graphs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/AgriciDaniel/claude-canvas
agentmods
npx agentmods add skills/agricidaniel/claude-canvas/canvas-layout

Made for: Claude Code.

Or install claude-canvas, the plugin that ships this one along with the rest of its 8 skills, 1 command, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for canvas-layout

README.md
[![agentmods](https://agentmods.dev/badge/skills/agricidaniel/claude-canvas/canvas-layout/github.svg)](https://agentmods.dev/skills/agricidaniel/claude-canvas/canvas-layout)
Your own site
<a href="https://agentmods.dev/skills/agricidaniel/claude-canvas/canvas-layout"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-canvas/canvas-layout/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for canvas-layout

Your own site · 80×15
<a href="https://agentmods.dev/skills/agricidaniel/claude-canvas/canvas-layout"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-canvas/canvas-layout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 900 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.00900
Opus 5 $0.00052 $0.00450
Sonnet 5 $0.00021 $0.00180
Haiku 4.5 $0.00010 $0.00090

Measured 9d ago against content hash 595a9091a70b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

canvas-layout scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/canvas-layout/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

canvas-layout: Re-Layout Canvas Nodes

Read ../canvas/references/layout-algorithms.md for algorithm details and selection guide. Read ../canvas/references/performance-guide.md for node limits.


Workflow

  1. Identify target canvas: Use the active canvas or ask which one (/canvas list to show options).
  2. Select algorithm: Use the user-specified algorithm, or run auto detection.
  3. Confirm before applying: Show what will happen: "Will apply [algorithm] layout to [canvas] ([N] nodes, [M] groups). Create backup? [Y/n]"
  4. Run the layout script:
    python3 scripts/canvas_layout.py [canvas_path] [algorithm] [options]
    
  5. Report results: "Moved [N] of [M] nodes. [G] groups refitted. Backup at [path].bak"
  6. Validate: Run python3 scripts/canvas_validate.py [canvas_path] to confirm valid output.

Algorithm Selection

When the user says /canvas layout auto or doesn't specify an algorithm, use the auto-detection in the script. It analyzes edge density, node types, and connection patterns.

For explicit requests, map user intent to algorithm:

User says Algorithm Options
"organize these images" grid --sort-by type
"make a grid" grid
"flowchart layout" dagre --direction TB
"left to right flow" dagre --direction LR
"mind map layout" radial
"expand from [node]" radial --center [node-id]
"untangle this" force
"spread out the nodes" force
"make a timeline" linear --axis horizontal
"vertical sequence" linear --axis vertical
"auto-layout" auto
"fix the layout" auto

Options Forwarding

Pass algorithm-specific options to the script:

  • grid: --columns N (override auto-detection), --sort-by type|size
  • dagre: --direction TB|LR|BT|RL
  • radial: --center node-id (override auto-detection of hub node)
  • force: --iterations N (default 100, reduce to 50 for 50+ nodes)
  • linear: --axis horizontal|vertical

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 90 lines · 104 tokens per session scan A 595a9091a70b

Subscribe to this mod's changes

canvas-layout is a skill published in the GitHub repository AgriciDaniel/claude-canvas (291 stars, last pushed 5mo ago), licensed MIT. It adds 104 tokens to every session and 900 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

wiki-ingest

Ingest supplied source material into an Obsidian vault with provenance and claim tracking: pasted text, files staged in the selected vault's inbox or .raw archive, or explicitly approved URLs. Use for a single source or bounded batch, not for saving an assistant answer. Triggers: ingest, ingest this file, ingest this…

AgriciDaniel/claude-obsidian · 88 tokens

autoresearch

Run a bounded, source-grounded research loop, draft a cited dossier, and optionally propose a separately reviewed canonical vault merge. Use when the user wants autonomous or deep research that may access the public web. Triggers: /autoresearch, autoresearch, research this topic, deep dive into, investigate, find…

AgriciDaniel/claude-obsidian · 80 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

canvas

Create, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, spatial layouts, adding vault notes or media to a .canvas file, and requests such as create canvas, add to canvas, or put this on the canvas.

AgriciDaniel/claude-obsidian · 72 tokens

defuddle

Plan and, with explicit network consent, use an optional external Defuddle cleaner to extract article-like HTTPS pages as Markdown. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion.

AgriciDaniel/claude-obsidian · 57 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens