/alex-agent-skills:wireframe-excalidrawfrom alex-agent-skills
Turn a markdown brief, screen description, or feature spec into a hand-drawn-looking wireframe by generating an `.excalidraw` scene file via a small Node.js script. Use when the user wants a low-fi sketchy wireframe they can open and edit in Excalidraw (excalidraw.com or the desktop app), or asks for a "sketch", "hand-drawn mockup", or "Excalidraw wireframe". For a deterministic DSL with SVG/PDF export instead, see the sibling skill `wireframe-wire-dsl`.
Ships in alex-agent-skills. 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.
Generate a wireframe by writing a small Node.js script that emits an .excalidraw scene JSON file. The output opens in Excalidraw (web or desktop) where the user can refine, restyle, or export.
No external dependencies. Pure Node, no npm install. Excalidraw scene format is a JSON document with an
elementsarray.
Trigger phrases: Excalidraw wireframe, sketchy wireframe, hand-drawn mockup, low-fi sketch I can edit in the browser, open in Excalidraw. Also use when the user wants to share a wireframe as a single editable file rather than an SVG/PDF.
Do not use when the user wants:
wireframe-wire-dsl instead.markdown brief / spec input
↓
draft generator script you write
↓
node generator.mjs produces .excalidraw
↓
open in Excalidraw user reviews & edits
Identify per screen:
Drop a single self-contained .mjs file. Copy the boilerplate verbatim from references/helpers.mjs at the top of your script (strip the export keywords if you're inlining), or import from the helpers file directly. Either way you get the palette, ID/seed helpers, base element factory, all primitives (rect, ellipse, text, line, arrow, frame), and composites (button, inputField, selectField, checkbox, radio, radioGroup, breadcrumbs, card, tableEl, imagePlaceholder, stat).
Then add screen builder functions that return arrays of elements, a frame layout that positions each screen on the canvas, and an emit block that writes the .excalidraw JSON.
Minimum viable script:
#!/usr/bin/env node
// {paste contents of references/helpers.mjs here, removing `export` keywords}
function welcomeScreen(ox, oy) {
const els = [];
els.push(text("Welcome", ox + 40, oy + 40, { fontSize: 28 }));
els.push(text("Sign in to continue", ox + 40, oy + 80, { fontSize: 14, strokeColor: C.muted }));
els.push(...inputField(ox + 40, oy + 120, 320, "Email", "[email protected]"));
els.push(...inputField(ox + 40, oy + 200, 320, "Password", "••••••••"));
els.push(...button(ox + 40, oy + 280, 320, 44, "Sign in", { variant: "primary" }));
return els;
}
const f1 = frame(0, 0, 1200, 900, "Welcome");
const elements = [f1];
const tagAndPush = (frameEl, els) => { for (const e of els) { e.frameId = frameEl.id; elements.push(e); } };
tagAndPush(f1, welcomeScreen(0, 0));
import fs from "node:fs";
fs.writeFileSync("out.excalidraw", JSON.stringify({
type: "excalidraw", version: 2, source: "wireframe-excalidraw",
elements, appState: { viewBackgroundColor: "#ffffff", gridSize: null }, files: {}
}, null, 2));
console.log(`Wrote ${elements.length} elements → out.excalidraw`);
node generator.mjs
# → out.excalidraw written
Open out.excalidraw in Excalidraw to confirm it loads:
open out.excalidraw on macOS if the desktop app is installedIf JSON is malformed Excalidraw will refuse to load. The most common cause is a missing field in an element — every element needs the keys produced by make() in the helpers.
Reply with:
.excalidraw file..mjs script alongside (so the user can re-run / modify).Match the wire-dsl skill's defaults: low-fi but visually differentiated. Pure grey-on-white reads as blank; the palette in references/helpers.mjs anchors on cool blue/slate but uses state hues (teal, amber, red) so semantic intent is visible at a glance.
C.ink (#0f172a) — text, crisp borders (deeper than pure black)C.muted (#475569) — secondary textC.faint (#94a3b8) — labels, framesC.border (#cbd5e1) — input/card bordersC.panel (#f8fafc) — surfaces, subtly tinted (not stark white)C.hatch (#e2e8f0) — table rows, image placeholdersC.primary (#1d4ed8) — primary actions (blue-700, draws the eye)C.success (#0d9488) — teal, distinct from primaryC.warning (#b45309) — restrained amberC.danger (#b91c1c) — recognizable redC.info (#0284c7) — sky-600 accentThe two warm tones (warning + danger) are the only departures from strict cool — they're there because state semantics outweigh aesthetic purity. If the user wants strict monochrome (no warm hues), point them at swapping C.warning and C.danger to slate-600/-800.
If the user wants brand color, swap C.primary to their hex and keep the rest as-is.
| File | When to read |
|---|---|
| references/helpers.mjs | Boilerplate to copy into every generator script |
| references/cheatsheet.md | Excalidraw element schema (rectangle, ellipse, text, line, arrow, frame) and required fields |
| references/components.md | Composite component catalog, intrinsic heights, line() 2-point caveat |
| references/patterns.md | Login, dashboard, sidebar shell, mobile, multi-frame, faked tabs, state matrix, responsive triptych, branching wizard |
| references/troubleshooting.md | Common errors when Excalidraw fails to load the file |
Scenario briefs live in cases/ — pick one when you need a benchmark of what this skill should be able to handle:
assertFits (very-complex)Cases describe the brief; agents generate output to /tmp/ (artifacts don't ship with the skill).
node <script>.mjs runs to completion (no syntax/runtime errors).excalidraw file is valid JSON (node -e 'JSON.parse(fs.readFileSync("out.excalidraw"))')frame so it's groupable in Excalidrawcases/01-multi-screen-flow.md (opens in a new tab)cases/02-state-matrix.md (opens in a new tab)cases/03-responsive-comparison.md (opens in a new tab)cases/README.md (opens in a new tab)references/cheatsheet.md (opens in a new tab)references/components.md (opens in a new tab)references/helpers.mjs (opens in a new tab)references/patterns.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub duyphaphach/agent-skills --plugin alex-agent-skills33 skills in this plugin
/basecampInteract with Basecamp via the Basecamp CLI. Full API coverage: projects, todos, cards,
messages, files, schedule, check-ins, timeline, recordings, templates, webhooks,
subscriptions, lineup, and campfire. Use for ANY Basecamp question or action.
/cert-tutorAct as a personal tutor for professional certification exams (AWS, Azure, GCP, Kubernetes, security, PMP, and similar). Use whenever the user is studying for a cert - explaining an exam topic or service, quizzing with exam-style scenario questions, reviewing missed questions, running a timed mock exam, or asking "which service for X" or "is this the right answer". Trigger even for a single question, and even if the user never says "teach me", e.g. "difference between Kendra and OpenSearch", "quiz me on IAM", "why is B wrong here"./Other plugins' skills for the same job