canvas-export

canvas-export is a skill for Claude Code from AgriciDaniel/claude-canvas. It costs 94 tokens per session (1,109 once invoked), scanned A, original, MIT.

A tool for exporting Obsidian Canvas files, which are visual boards of connected notes and objects, as PNG images, SVG files, or PDFs.

In plain words
What is it for?
Use it for single-canvas exports, slide-by-slide presentation PDFs, or batch exports of multiple canvases, using Obsidian when available or browser screenshots as a fallback.
Why use it?
It provides a way to share or archive a canvas outside Obsidian, including presentation-style PDF pages.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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

Good fit Use it for single-canvas exports, slide-by-slide presentation PDFs, or batch exports of multiple canvases, using Obsidian when available or browser screenshots as a fallback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agricidaniel/claude-canvas/canvas-export
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AgriciDaniel/claude-canvas --skill canvas-export
Clone the repo
git clone --depth 1 https://github.com/AgriciDaniel/claude-canvas

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-export

README.md
[![agentmods](https://agentmods.dev/badge/skills/agricidaniel/claude-canvas/canvas-export/github.svg)](https://agentmods.dev/skills/agricidaniel/claude-canvas/canvas-export)
Your own site
<a href="https://agentmods.dev/skills/agricidaniel/claude-canvas/canvas-export"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-canvas/canvas-export/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-export

Your own site · 80×15
<a href="https://agentmods.dev/skills/agricidaniel/claude-canvas/canvas-export"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-canvas/canvas-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,109 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.00094 $0.01109
Opus 5 $0.00047 $0.00554
Sonnet 5 $0.00019 $0.00222
Haiku 4.5 $0.00009 $0.00111

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

Security

Grade A, and why

canvas-export 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-export/SKILL.md · 128 lines

How it starts

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

canvas-export: Export Canvas to Image/PDF


Export Methods

Method 1: Advanced Canvas Plugin Export (Preferred)

The Advanced Canvas plugin provides built-in PNG and SVG export with transparency support.

Requirements: Obsidian running with Advanced Canvas installed.

Workflow:

  1. Instruct the user: "In Obsidian, right-click the canvas background → Advanced Canvas → Export as PNG/SVG"
  2. Or use Obsidian's command palette: Advanced Canvas: Export as PNG
  3. The exported file appears in the canvas directory.

This is the highest-quality export method — it uses Obsidian's own rendering engine.

Method 2: Playwright Screenshot (Fallback)

When Obsidian is not running or Advanced Canvas is not installed, use Playwright to capture the canvas.

Requirements: Playwright installed (pip install playwright && playwright install chromium)

Workflow:

  1. Check if Playwright is available:
    python3 -c "from playwright.sync_api import sync_playwright; print('ok')" 2>/dev/null && echo "available" || echo "not available"
    
  2. If available, generate a standalone HTML viewer of the canvas and screenshot it:
    # Generate HTML from canvas JSON
    python3 -c "
    import json, sys
    canvas = json.load(open(sys.argv[1]))
    # ... render to HTML with absolute positioning ...
    " [canvas_path] > /tmp/canvas-preview.html
    
    # Screenshot with Playwright
    python3 -c "
    from playwright.sync_api import sync_playwright
    with sync_playwright() as p:
        browser = p.chromium.launch()
        page = browser.new_page(viewport={'width': 1920, 'height': 1080})
        page.goto('file:///tmp/canvas-preview.html')
        page.screenshot(path='[output_path]', full_page=True)
        browser.close()
    "
    
  3. Report the output path and dimensions.

Method 3: User-Assisted Screenshot

When neither method is available:

  1. Tell the user: "Open the canvas in Obsidian, zoom to fit all content, then take a screenshot."
  2. On Linux (COSMIC): suggest Print key for screenshot tool.
  3. On macOS: suggest Cmd+Shift+4.

Read the full file on GitHub · 128 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 · 128 lines · 94 tokens per session scan A 6e0c21828309

Subscribe to this mod's changes

canvas-export is a skill published in the GitHub repository AgriciDaniel/claude-canvas (291 stars, last pushed 5mo ago), licensed MIT. It adds 94 tokens to every session and 1,109 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