/alex-agent-skills:wireframe-wire-dslfrom alex-agent-skills
Turn a markdown brief, screen description, or feature spec into a wire-dsl `.wire` wireframe and render it to SVG/PDF/PNG via the local `wire` CLI. Use when the user asks for a wire-dsl wireframe specifically, OR when they want a deterministic text-based wireframe DSL with multi-format export (SVG/PDF/PNG). For a hand-drawn-looking, edit-in-browser alternative, see the sibling skill `wireframe-excalidraw`.
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 wireframes-as-code from a markdown brief or freeform description. The skill produces a .wire file in WireDSL syntax and renders it locally via the wire CLI.
Engine assumed installed. Verify with
wire --version. If missing:npm install -g @wire-dsl/cli.
Trigger on phrases like: wireframe, mockup, mock up, sketch, prototype, low-fi design, screen flow, draw the UI for…, what would the screen look like for…. Also use when the user pastes a feature spec / PRD / markdown brief and asks for visuals.
Do not use when the user wants production code (HTML/React) — wire-dsl outputs static wireframes, not implementations.
markdown brief / spec input
↓
draft .wire file you write
↓
wire validate <file> syntax check
↓
wire render <file> -o <path> SVG / PDF / PNG
↓
show artifact path + summary deliver
Pull the input from the IDE-open file, a path the user gave, or the conversation. Identify per screen:
If the brief is too thin to wireframe meaningfully, ask one focused question — e.g. "Is this a single screen or a flow? Any sidebar nav?" — before drafting.
.wire fileFollow the rules in references/dsl-cheatsheet.md. Minimum viable file:
project "ProjectName" {
style {
density: "normal"
spacing: "md"
radius: "md"
stroke: "normal"
font: "base"
}
colors {
primary: #1d4ed8
secondary: #64748b
success: #0d9488
warning: #b45309
danger: #b91c1c
info: #0284c7
accent: primary
}
screen Home {
layout stack(direction: vertical, gap: md, padding: lg) {
component Heading text: "Welcome"
component Button text: "Get Started" variant: primary
}
}
}
Wireframes still need to be low-fi, but pure-grey monochrome leaves the renderer producing visually-flat output that reads as "just white" — primary, secondary, success and warning buttons all look the same. Default to the palette above instead: a cool blue primary anchors the scheme, and state hues (success teal, warning amber, danger red) provide enough contrast that semantic intent is visible at a glance.
variant: primary (blue-700) — draws the eyevariant: secondary (slate-500) — neutralvariant: success (teal-600) — cool green, distinct from primaryvariant: danger (red-700) — recognizablevariant: warning (amber-700) — restrained warmvariant: info (sky-600)The 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), tell them and only swap warning and danger to slate-600 and slate-800.
If the user wants brand color, swap primary to their hex (bare, no quotes) and keep the rest of the palette as-is.
Hex syntax reminder: values inside colors { } are bare tokens (#334155), not strings ("#334155"). Quoted hex passes wire validate but fails wire render.
Hard rules (from the wire-dsl LLM-prompting guide):
project { style { ... } screen X { ... } }. One root layout per screen.12, true.xs sm md lg xl.split requires exactly 2 children; grid is 12-column.wire validate path/to/file.wire
Fix any errors before rendering. Common ones are listed in references/troubleshooting.md.
Default output directory: ./wireframes/ (create if missing). Choose format by intent:
# Single screen → SVG (sharp, scales, good for review)
wire render brief.wire --svg ./wireframes/brief.svg
# Multi-screen flow → PDF (one file, page per screen)
wire render brief.wire --pdf ./wireframes/brief.pdf
# Pasteable raster → PNG (directory, one per screen)
wire render brief.wire --png ./wireframes/png/
# Render only one screen
wire render brief.wire -s Dashboard --svg ./wireframes/dashboard.svg
# Mobile viewport (390 wide, height auto-extends to fit content)
wire render brief.wire --width 390 --height 844 --svg ./wireframes/mobile.svg
# Sketch-style "hand-drawn" look (great for early-stage low-fi)
wire render brief.wire --renderer sketch --svg ./wireframes/sketch.svg
# Dark theme
wire render brief.wire --theme dark --svg ./wireframes/dark.svg
--renderer accepts standard | skeleton | sketch. --theme accepts light | dark.--width N sets the page width exactly. --height N sets a minimum — content taller than N causes the renderer to auto-extend the viewport vertically. To preview a true mobile crop, use --width 390 and accept that pages may exceed 844px.Image type: landscape ignores viewport width and emits an internal rect ≈1228px wide; it overflows narrow viewports. Use type: square or type: avatar on mobile.Reply with:
.wire source in a fenced ```wire code block (so it's reviewable inline in markdown).If the user is on macOS and asked to preview, offer open <path> — don't run it without consent.
.wire files are plain text and embed cleanly in markdown via ```wire fences. When the user wants the wireframe inline in a markdown doc (e.g. a spec or PRD), produce both:
.| File | When to read |
|---|---|
| references/dsl-cheatsheet.md | Layout primitives, style tokens, event syntax, define Layout invocation |
| references/components.md | Full component catalog with props |
| references/patterns.md | Ready-to-adapt snippets: form, dashboard, sidebar app, modal, tabs workaround, define Layout reuse, branching wizard |
| references/troubleshooting.md | Common parser/render errors and fixes |
Scenario briefs live in cases/ — pick one when you need a benchmark of what this skill should be able to handle:
define Layout reuse (very-complex)Cases describe the brief; agents generate output to /tmp/ (artifacts don't ship with the skill).
wire validate passespadding.wire is shown in the reply so the user can edit itcases/01-ecommerce-checkout.md (opens in a new tab)cases/02-saas-admin.md (opens in a new tab)cases/03-branching-wizard.md (opens in a new tab)cases/README.md (opens in a new tab)references/components.md (opens in a new tab)references/dsl-cheatsheet.md (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
Other plugins' skills for the same job
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"./code-review-and-qualityConducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch./concizeTighten the wording and presentation of any document, README, runbook, comment, commit message, or chat reply, or restate a message in its shortest clear form. Use whenever the user asks to shorten, tighten, condense, make concise, restate, rephrase, reword, clean up, review wording, or improve the layout of text; whenever they say something is too long, wordy, repetitive, hard to scan, or sounds like AI; whenever they want em dashes, smart quotes or other AI-trace punctuation stripped, or a document checked for plain English; and whenever they ask "say this better" or "how should I phrase this". Also use it on any document you generated that runs past one screen, before you hand it over. Keywords concise, concize, tighten, shorten, restate, rephrase, wording, presentation, scannable, terminology, refine, plain english, em dash, smart quotes, prose cleanup, ai detection./e2e-test-designDesign end-to-end (e2e) test scenarios by exploring a live, running app with the `pw` browser CLI. This is a design-thinking skill. It maps real user journeys, ranks them by risk, and writes a layered set of markdown scenario docs organised as an Epic / Feature / Story tree with severity labels and Gherkin steps, ready to map onto Allure Report. It does not write test code, selectors, fixtures, or runner config. Use it whenever the user asks what to test end-to-end, wants an e2e test plan or scenario list, asks to design or review e2e coverage, or says things like "how should we test this flow" or "what scenarios do we need", even if they do not say "e2e" explicitly. Requires a running app URL and the `pw` CLI from the playwright-cli skill./frontend-refactoringUse when the user wants to migrate templates to the new design system convention without breaking behavior or visuals. Examples: "Refactor this template", "Migrate this view to the new convention", "Clean up these class names", "Extract this pattern to a partial", "Replace repeated HTML with a loop"