/gabbe-coding:sketch-to-diagramfrom gabbe-coding
Transforms hand-drawn sketches, whiteboard photos, and paper wireframes into editable digital diagrams (Excalidraw, Mermaid, or Draw.io) via image recognition and user approval.
Ships in gabbe-coding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Transform hand-drawn sketches (whiteboard photos, napkin drawings, paper wireframes) into formal, editable digital diagrams using the Sketch → Recognize → Redraw pipeline:
image-recognition must be configured (requires ANTHROPIC_API_KEY or OPENAI_API_KEY)excalidraw — for .excalidraw outputdrawio — for Draw.io XML output| Input | Examples |
|---|---|
| Whiteboard photos | Architecture sketches, event storming boards, sprint planning |
| Napkin drawings | Quick flowcharts, ER diagrams, state machines |
| Paper wireframes | UI layouts, page flows, component hierarchies |
| Screenshot mockups | Existing diagram screenshots to recreate as editable |
| Hand-drawn charts | Bar charts, timelines, Gantt outlines |
| Annotated screenshots | Marked-up UIs with arrows and notes |
{id, label, shape, position, color, group}{source, target, label, direction}{name, children[]}excalidraw MCP toolsdrawio MCP toolsSKETCH_TO_DIAGRAM_TEMPLATE.md with results| Format | When to Use | MCP Required |
|---|---|---|
Excalidraw (.excalidraw) | Visual collaboration, hand-drawn aesthetic | excalidraw |
Mermaid (.md) | Version-controlled docs, PRDs, READMEs | None |
Draw.io (.drawio) | Enterprise docs, Confluence, detailed layouts | drawio |
| PNG/SVG export | Static documentation, presentations | Depends on source |
> "Here's a photo of our whiteboard architecture sketch. Convert it to an Excalidraw diagram."
> "I drew this flowchart on paper [image]. Convert it to Mermaid syntax for our README."
> "Recognize this hand-drawn wireframe and create a component hierarchy diagram."
> "Here's a photo of our event storming session. Extract all events, commands, and aggregates into a structured diagram."
SKETCH_TO_DIAGRAM_TEMPLATE.md: Structured report with original image description, recognized elements, and generated diagram.excalidraw, .md with Mermaid, or .drawio)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-coding30 skills in this plugin
/agent-trajectory-evalScore an agent's run by its tool calls and state transitions, not only its final answer: tool and parameter F1, in-order match, legal transitions, pass^k. Use when you evaluate how an agent reached an answer or need a reliability figure over repeated runs./artisan-commandsRun Laravel Artisan commands safely: check the project and environment, run the command, verify the result. Use when the user asks to scaffold a controller or model, run migrations or manage a Laravel app with php artisan./browser-tddWrite Playwright tests that check a UI in a real browser (DOM, computed styles, scroll, screenshots) before the code. Use when a UI task is about layout, sticky or fixed elements, modals, animations or anything that only works when it renders correctly./chaos-fault-injectionProduce a fault-injection matrix: each fault (dropped connection, corrupt write, latency, bad response, resource exhaustion) with its expected recovery and an assertion. Use when you must show that a system recovers, rolls back or stops safely when a dependency fails./ci-autofixFix a failing CI run: read the log, find the first root cause (lint, types, test, build), apply a minimal change and verify it locally. Use when CI is red, a build is broken, or a lint, type or test job fails./design-by-contractState preconditions, postconditions and invariants at module boundaries and make them runnable checks. Use at S03/S05 for level 1 code with logic, public module interfaces, or when a requirement says what must always hold. Use when: design by contract, preconditions, postconditions, invariants, contract at boundary, icontract, assert contracts, module boundary checks.Other plugins' skills for the same job