marcop135/draw/draw-scene

Claude Code and agent skill by marcop135/draw

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Drive whiteboard (whiteboard.marcopontili.com or local :5173) with Playwriter. Load .excalidraw JSON via window.draw, read the scene back, export PNG or SVG. Use when building or exporting an Excalidraw scene through the live app.

Install

npx vskill@latest install marcop135/draw/draw-scene

SKILL.md

draw-scene

Browser-only whiteboard at https://whiteboard.marcopontili.com (or http://127.0.0.1:5173 in development).

Read /llms.txt and /for-agents.html on the target origin for the live contract.

Prerequisites

  • Playwriter attached to Chrome (extension mode preferred).
  • Prefer the Playwriter CLI (playwriter -s <id> -e "...").

Procedure

  1. Open the app and wait for the bridge:
bash
playwriter -s 1 -e "await page.goto('https://whiteboard.marcopontili.com/'); await page.waitForFunction(() => window.draw && typeof window.draw.setScene === 'function');"
  1. Load a scene (.excalidraw JSON string: type: "excalidraw", elements array, max 20 MB). This replaces the current canvas:
bash
playwriter -s 1 -e "console.log(await page.evaluate((json) => window.draw.setScene(json), state.sceneJson));"

Put the JSON on state.sceneJson in a prior step, or pass a literal string into evaluate.

  1. Read the scene back (after edits in the UI, for example):
bash
playwriter -s 1 -e "state.sceneJson = await page.evaluate(() => window.draw.getScene()); console.log(state.sceneJson.length);"
  1. Export:
bash
playwriter -s 1 -e "const url = await page.evaluate(() => window.draw.exportImage('png')); require('fs').writeFileSync('scene.png', Buffer.from(url.split(',')[1], 'base64'));"
playwriter -s 1 -e "require('fs').writeFileSync('scene.svg', await page.evaluate(() => window.draw.exportImage('svg')));"

exportImage throws Canvas is empty. when the scene has no live elements.

Notes

  • No auth, no backend: the scene lives in the tab and its localStorage autosave.
  • setScene validates JSON shape, then restores elements and embedded files through Excalidraw's loader.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/marcop135/draw/draw-scene/badge)](https://verified-skill.com/skills/marcop135/draw/draw-scene)

Something wrong with this skill or its page? Tell us.