Ships in qadri-design. 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 JSON wireframe definition and render it as a self-contained HTML preview.
Two modes:
design-id argument: /wireframe {design-id} — reads designs/{design-id}/output/design-spec.md and extracts layout structure from the Information Architecture section.Two files per screen:
{name}.wireframe.json — Machine-readable wireframe definition{name}.wireframe.html — self-contained HTML preview (open in browser)HTML preview features:
Output path:
design-id: designs/{design-id}/output/wireframe/ (automatic)design-id: prompted — ask user for directory pathIf a design-id argument is provided:
designs/{design-id}/output/design-spec.mdIf no argument:
wireframe-designer.md in this skill's directorySchema rules (mechanical — these constrain the JSON format, not design judgment):
namedirection and childrentypebutton, link, and text elements must never have fixed width — use height only and let content determine width. input elements use height plus grow or maxWidth, never a fixed width aloneDerive {name} (the filename stem) from the JSON name field: English words, lowercase, joined by hyphens. Translate a non-English name into English first.
If design-id was provided:
designs/{design-id}/output/wireframe/ (no prompt needed)If no design-id:
AskUserQuestion with a simple text promptBoth .wireframe.json and .wireframe.html go in the same output directory, referred to below as {output_dir}.
Write the JSON to {output_dir}/{name}.wireframe.json with the Write tool.
Use a Bash command to splice the JSON into the template. This avoids outputting the ~1300-line template through the Write tool (which is slow because every line becomes output tokens):
python3 -c "
t = open('{skill_dir}/wireframe-template.html').read()
d = open('{output_dir}/{name}.wireframe.json').read()
open('{output_dir}/{name}.wireframe.html', 'w').write(t.replace('const WIREFRAME_DATA = null;', 'const WIREFRAME_DATA = ' + d + ';'))
"
Replace {skill_dir} with the absolute path of the directory that contains this SKILL.md, and {output_dir} and {name} with the values from Step 3. Use absolute paths.
Do NOT read the template with the Read tool or write the HTML with the Write tool. The Python script handles both file operations directly on disk.
open {output_dir}/{name}.wireframe.htmlWireframe generated:
- JSON: {output_dir}/{name}.wireframe.json
- Preview: {output_dir}/{name}.wireframe.html (opened in browser)
{
"name": "Screen Name",
"viewport": { "width": 1280, "height": 800 },
"root": {
"name": "Root",
"direction": "vertical",
"children": []
}
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Screen/wireframe name |
viewport | { width, height } | Yes | Canvas dimensions in px |
root | node | Yes | Root layout node |
Identity:
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Node label (shown in wireframe) |
type | string | No | Element type for placeholder rendering |
variant | string | No | Text hierarchy: "display" (32px), "heading" (24px), "caption" (12px). Default body (16px). Only for type: "text". |
Layout (for containers with children):
| Field | Type | Default | CSS equivalent |
|---|---|---|---|
direction | "vertical" / "horizontal" | "vertical" | flex-direction |
children | node[] | — | child elements |
gap | number | 0 | gap (px) |
padding | number or [v, h] | 0 | padding (px) |
justify | string | "flex-start" | justify-content |
align | string | "stretch" | align-items |
wrap | boolean | false | flex-wrap: wrap |
Sizing:
| Field | Type | Default | CSS equivalent |
|---|---|---|---|
width | number | — | width (px) |
height | number | — | height (px) |
grow | boolean | false | flex: 1 |
maxWidth | number | — | max-width (px) |
| Type | Rendered as | Use for | Sizing |
|---|---|---|---|
"text" | Gray text label | Labels, headings, body text | height only. No width — text reflows naturally |
"image" | Gray box with image icon | Photos, thumbnails, hero images | width + height, or height + grow |
"icon" | Small gray circle | Action icons, status indicators | Fixed width + height always |
"button" | Rounded rectangle | CTAs, primary actions | height only. Never width — label length varies |
"link" | Underlined text | Navigation items, secondary actions, text links | height only. Never width — label length varies |
"input" | Bordered rectangle | Search fields, form inputs, dropdowns | height + grow or maxWidth. Never fixed width alone |
"card" | Bordered box with light gray fill | Content cards, list items | height + grow, or height alone in vertical lists |
"table" | Header row + placeholder data rows | Data tables, lists with columns | grow or omit. Column widths via columns[].width / columns[].grow |
"divider" | Thin horizontal line | Section separators | No sizing needed |
| (none) | Transparent container | Structural grouping only | grow for flexible, width for fixed (e.g., sidebar) |
Tables use columns and rows instead of children:
| Field | Type | Default | Description |
|---|---|---|---|
columns | array | — | Column definitions (required for table) |
columns[].name | string | — | Column header text |
columns[].grow | boolean | true if width is unset | Flexible width (flex: 1). A column without width grows even when grow is omitted |
columns[].width | number | — | Fixed width in px |
rows | number | 3 | Number of placeholder data rows |
{
"name": "Users Table",
"type": "table",
"columns": [
{ "name": "Name", "grow": true },
{ "name": "Email", "grow": true },
{ "name": "Role", "width": 120 },
{ "name": "Status", "width": 100 }
],
"rows": 5
}
Visual properties for downstream consumers. These are purely additive — a wireframe JSON with zero style properties is 100% valid and renders as a monochrome wireframe (current behavior, unchanged). The wireframe HTML renderer ignores style properties.
The /wireframe skill itself produces plain wireframes. Style properties are added by /ui-prompts when a design system is specified, creating a "styled wireframe" that downstream consumers (/pencil-generate, /stitch-generate, Figma Make) use directly.
| Field | Type | Description | Applies to |
|---|---|---|---|
fill | string (hex) | Background fill color | Containers, cards, buttons |
color | string (hex) | Text/icon foreground color | Text, icons, links |
fontSize | number | Font size in px | Text |
fontWeight | number | Font weight (400, 600) | Text |
borderRadius | number | Corner radius in px | Containers, cards, buttons, inputs |
stroke | { color, width } | Border definition | Containers, cards, inputs |
shadow | { x, y, blur, color } | Drop shadow | Containers, cards |
opacity | number (0–1) | Element opacity | Any node |
Rules:
fill on a container = background; color on text = foreground (avoid ambiguity)stroke and shadow use object notation for clean parsingAnnotation fields:
| Field | Type | Description |
|---|---|---|
_solves | string | Traces this element to a PRD problem or user need. Metadata only — ignored by all renderers. |
Canonical schema: This JSON schema is the canonical layout format used across the pipeline. The ## Layout section in UI prompt files (prompts/*.md) uses this same schema inline, optionally with style properties. Skills that generate prompts (/ui-prompts, /style-exploration, /figma-variation) produce wireframe JSON. Skills that consume prompts (/pencil-generate, /stitch-generate) parse it directly.
A dashboard with proper typographic hierarchy, spacing rhythm, and proportional heights:
{
"name": "Dashboard",
"viewport": { "width": 1280, "height": 800 },
"root": {
"name": "Page",
"direction": "vertical",
"children": [
{
"name": "Header",
"direction": "horizontal",
"height": 56,
"padding": [0, 24],
"justify": "space-between",
"align": "center",
"children": [
{ "name": "Logo", "type": "image", "width": 100, "height": 28 },
{ "name": "Search", "type": "input", "grow": true, "maxWidth": 400, "height": 40 },
{ "name": "Avatar", "type": "icon", "width": 32, "height": 32 }
]
},
{
"name": "Body",
"direction": "horizontal",
"grow": true,
"children": [
{
"name": "Sidebar",
"width": 240,
"direction": "vertical",
"padding": 16,
"gap": 4,
"children": [
{ "name": "Overview", "type": "link", "height": 40 },
{ "name": "Projects", "type": "link", "height": 40 },
{ "name": "Settings", "type": "link", "height": 40 }
]
},
{
"name": "Main",
"grow": true,
"direction": "vertical",
"padding": 32,
"gap": 24,
"children": [
{ "name": "Dashboard", "type": "text", "variant": "display", "height": 48 },
{
"name": "Stats Row",
"direction": "horizontal",
"gap": 16,
"children": [
{ "name": "Total Users", "type": "card", "grow": true, "height": 100 },
{ "name": "Revenue", "type": "card", "grow": true, "height": 100 },
{ "name": "Active Today", "type": "card", "grow": true, "height": 100 }
]
},
{
"name": "Recent Activity",
"direction": "vertical",
"gap": 12,
"children": [
{ "name": "Recent Activity", "type": "text", "variant": "heading", "height": 36 },
{
"name": "Activity Table",
"type": "table",
"columns": [
{ "name": "User", "grow": true },
{ "name": "Action", "grow": true },
{ "name": "Status", "width": 120 },
{ "name": "Time", "width": 140 }
],
"rows": 6
}
]
}
]
}
]
}
]
}
}
Cognitive reasoning behind this wireframe:
grow: true). Sidebar exists because content inventory includes navigation that aids the monitoring task.display for page identity ("Dashboard"), heading for section identity ("Recent Activity"), body (default) for data content. Caption reserved for table column headers (chrome, not content). Sidebar nav uses link (navigation aids the task but isn't the task itself). Primary CTAs in the content area would use button.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub qadri-uk/claude-skills --plugin qadri-design176 skills in this plugin
/accessibility-agentsWCAG 2.2 AA enforcement as a package of Agent Skills: router skills for web UI, full-site audits,
Office/PDF/ePub documents, markdown, desktop and Python tooling, and GitHub workflows dispatch
specialist, helper and reference skills by name.
/accessibility-auditAudit an existing interface against WCAG, producing findings with severity ratings and remediation steps. Use when you have a design or build to assess now. Not for planning future sessions with assistive-technology users — use `accessibility-test-plan` (prototyping-testing)./accessibility-catalogueDomain navigator for accessibility, WCAG compliance, performance auditing,
and code quality skills. Routes to the right skill for a11y remediation,
WCAG 2.2 audits, Core Web Vitals, React quality, and motion performance.