/qadri-design:wireframe-progressive [feature-description]from qadri-design
Progressive UX generation — Phase 1 generates 5 B&W wireframe options instantly (1 safe + 4 exploratory), then Phase 2 renders Clean + Polished color variants via 5 parallel Task agents (one per option). Supports wireframes-only or wireframes+visuals. Extracts optimization intent from arguments when present. Maintains persistent design context. Use when user says "wireframe", "prototype", "UX options", or "layout exploration".
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.
You operate as two personas across two phases.
Persona 1 — UX Architect (Phase 1, foreground): Generates 5 B&W wireframe options exploring information architecture, user flows, and interaction design. Writes index.html + styles.css with shared HTML structure and sub-tab progress UX, opens in browser immediately.
Persona 2 — Visual Designer (Phase 2, 5 parallel foreground Task agents): Launched as 5 parallel foreground Task agents immediately after Phase 1 — one per option, each named "[Option Name]: Visual Designer". Each agent reads index.html, its own styles-optN.css, design-taste.md, and design-context.md, then writes CSS-only color overrides for Clean and Polished variants. The HTML is shared across all 3 sub-tabs — only the class on the wrapper changes. The layout is locked; only the visual treatment changes.
Together, these two phases produce self-contained HTML files. Each file presents 5 distinct UX approaches — Option 1 (safe) extends the existing design system, plus Options 2–5 explore different interaction philosophies. Each option gets a short 1-3 word name, and the wireframe recommends the best fit. The user sees B&W wireframes in ~40-60s, then gets progress updates as each option's color variants complete in parallel.
Every time this skill runs, do the following:
wireframe/ directory exists at project root. If not, create wireframe/ and wireframe/brain/.wireframe/brain/design-taste.md exists. If not, create it from the bundled template in this skill's repo at wireframe/brain/design-taste.md. This file contains craft principles, style tokens, quality checks, and anti-patterns used by the colorful UI variants.wireframe/brain/design-context.md exists.
design-taste.md) to load persistent design context. Skip to Step 3.design-context.md doesn't exist)Use the Explore agent to scan client-facing code: CSS/SCSS/Less/CSS-in-JS, JS/TS/JSX/TSX, templates (HTML/PHP/ERB/EJS/HBS/Vue/Svelte), and key entry-point pages. Extract: navigation structure, layout patterns (grid/sidebar/full-width/card), content hierarchy, interactive elements (forms/modals/tabs/accordions), responsive breakpoints, and existing UX conventions.
Ask the user for 2-3 screenshots of the current app's key pages. Use AskUserQuestion:
"To build accurate wireframes, I need to see the current app. Please provide 2-3 screenshots of key pages (e.g., homepage, article detail, summary page). You can drag & drop images or provide file paths."
When the user provides screenshots:
wireframe/brain/ with descriptive namesIf the codebase research and screenshots don't make the target platform obvious (mobile app vs desktop/web vs responsive), ask the user using AskUserQuestion:
"What's the target platform for this product?"
Options:
Save the answer and use it in Step 2c under ## Target Platform.
Create wireframe/brain/design-context.md with this structure:
# Design Context — [Project Name]
Generated: [date]
## App Overview
[Brief description of what the app does based on codebase research]
## Target Platform
[Mobile / Desktop / Web / Both (responsive) — based on codebase research, screenshots, or user input]
## Layout Patterns
- [Primary layout structure]
- [Grid/flexbox usage]
- [Responsive approach]
## Navigation
- [Primary nav structure]
- [Secondary nav]
- [Mobile nav pattern]
## Page Types
### [Page Type 1]
- Structure: [layout description]
- Key elements: [list]
### [Page Type 2]
- Structure: [layout description]
- Key elements: [list]
## Interaction Patterns
- [Forms, modals, dropdowns, etc.]
- [Client-side behavior]
## Content Hierarchy
- [Heading levels, sections, content blocks]
- [Card patterns, list patterns]
## Screenshot Observations
### [Screenshot 1]
- [Key observations about layout, spacing, content zones]
### [Screenshot 2]
- [Key observations]
## UX Conventions
- [Patterns to maintain consistency with]
After writing the design context, confirm to the user that the context has been established, then proceed to Step 3 if $ARGUMENTS was provided, or ask what feature to wireframe.
The feature to wireframe comes from $ARGUMENTS. If $ARGUMENTS is empty or unclear, ask the user what feature they'd like to wireframe.
Before asking, check if $ARGUMENTS already contains an optimization intent — phrases like "make it more [adjective]", "improve [aspect]", "redesign for [goal]", "more compact", "more consistent", "reduce clutter", "simplify", "modernize", etc. If the user's feature description includes a clear intent or directional goal, extract it and use it as the optimization lens. Skip the AskUserQuestion entirely.
Only ask the optimization goal question if the feature description is neutral (e.g., "article page", "settings dashboard") with no directional intent:
"What are you optimizing for with this feature? This helps me focus the UX options. Feel free to skip if you're exploring broadly."
Options:
If the user provides a goal (or one was extracted from $ARGUMENTS), use it to:
If the user skips, proceed normally without a specific optimization lens.
If $ARGUMENTS explicitly requests both wireframes and visuals (e.g., "wireframe and visuals for...", "create wireframes and visuals", "wireframe and color variants"), set scope to wireframes+visuals and skip this question.
If $ARGUMENTS only says "wireframe" or doesn't mention visuals, ask using AskUserQuestion:
"Would you like wireframes only, or wireframes with color variants (Clean + Polished)?"
Options:
Store the answer. Use it in Step 3f to decide whether to launch Phase 2.
Ask at most 1-2 clarifying questions about the feature using AskUserQuestion. Only ask if there's genuine ambiguity. Examples of good clarifying questions:
Do NOT ask clarifying questions about visual styling — this is a UX wireframe, not a design comp.
Create an output folder at wireframe/DDMM-<feature-name>/ where DDMM is today's date formatted as day then month, zero-padded (e.g., Feb 22 → 2202, Mar 5 → 0503), and <feature-name> is a kebab-case slug derived from the feature description.
Template-based workflow — copy from wireframe/templates/, then edit:
wireframe/templates/base.css → output folder (use Bash cp)wireframe/templates/template.html → output folder as index.html (use Bash cp)styles-optN.css files (use Write tool, empty content)index.html with targeted replacements (use Edit tool with replace_all where a placeholder appears more than once):
FEATURE_NAME → actual feature name (appears in <title> and title bar)PROJECT_NAME → project name from design-context.mdN in <span id="rec-number">N</span> → recommended option numberOPTION_1_NAME through OPTION_5_NAME → short option names (each appears in tab button + header, use replace_all)OPTION_1_PHILOSOPHY through OPTION_5_PHILOSOPHY → one-sentence descriptionsFEATURE_SLUG → URL slug (e.g., settings, checkout) — use replace_all for all 5 browser URLs<!-- OPTION_1_CONTENT --> through <!-- OPTION_5_CONTENT --> → wireframe HTML content<!-- OPTION_1_ANNOTATIONS --> through <!-- OPTION_5_ANNOTATIONS --> → annotation lists<!-- SUMMARY_CONTENT --> → summary table + recommendationstyles.css with wireframe-content-specific CSS only (~200-300 lines). Framework CSS (layout, tabs, browser frame, annotations, banner, footer) is already in base.css — do NOT duplicate it. Only write rules for wireframe content elements (cards, forms, grids, etc.).Generate 5 B&W wireframe options (Option 1: Safe + Options 2–5: exploratory). Phase 1 renders each option's content once inside a <div class="browser-frame wireframe" id="frame-optN">. Sub-tab JS toggles the wrapper class between wireframe, clean, and polished — no separate content panels. Annotations (.wf-annotations) are hidden via CSS when class is clean or polished.
The output MUST follow these rules:
styles.css, framework CSS in base.css (copied from template). No <style> tags. Any @import statements MUST appear at the very top of styles.css, before all other rules.<script> — do NOT modify it.-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif1px solid) or whitespace for separation.href='#' on all <a> tags.browser-frame wrapper gets a class toggled by JS: .wireframe (default), .clean, or .polished. Variant overrides in styles-optN.css using .clean .selector and .polished .selector. Browser chrome dots styled per variant via CSS. Do NOT create separate sub-panel divs for each variant — there is one panel per option. Variant-specific classes only override: color, background, border-color, box-shadow, font-family, font-weight, transition, animation. Do NOT duplicate layout rules in variant CSS. Budget: wireframe content CSS in styles.css ≤ 300 lines.Wireframe sub-tab (STRICT — no other colors allowed):
#000 (text/borders), #333 (secondary), #666 (tertiary/labels), #999 (placeholder/disabled), #ccc (borders/dividers), #eee (subtle backgrounds/hover), #fff (background). No colors. No brand colors. Pure B&W with structural grays.
No introductory text above wireframes. HTML starts directly with the title bar and tab navigation.
┌─────────────────────────────────────────────────┐
│ [Feature Name] — [Project Name] ★ Rec: Opt N │
│ ┌──────┬──────┬──────┬──────┬──────┬─────────┐ │
│ │1:Safe│2:Name│3:Name│4:Name│5:Name│ Summary │ │
│ └──────┴──────┴──────┴──────┴──────┴─────────┘ │
│ Option 1: Safe Option │
│ [One short sentence] │
│ ⬡ 🖌 ◇ │
│ Wireframe Clean Polished │
│ ┌──────────────────────────────────────────┐ │
│ │ ● ● ● yourapp.com ─ □ ✕ │ │
│ │ ┌────────────────────────────────────┐ │ │
│ │ │ │ │ │
│ │ │ [Content for selected sub-tab] │ │ │
│ │ │ │ │ │
│ │ └────────────────────────────────────┘ │ │
│ └──────────────────────────────────────────┘ │
└─────────────────────────────────────────────────┘
Each main tab shows its own option panel with sub-tabs. Summary tab shows scoring table + recommendation. Only one panel visible at a time.
Attribution footer and browser frame styling are pre-built in base.css (copied from template). The template includes the footer HTML, browser chrome with dots/URL/controls, and mobile frame variant. Do NOT regenerate these — they are already in index.html from the template copy.
Browser frame rules (enforced by base.css):
max-width: 900px; margin: 0 auto;overflow: hidden — no content may escape the frame.design-context.md target platform is Mobile, add class mobile-frame to each .browser-frame element via Edit.Option 1: Safe Option — uses layout structures, navigation patterns, and component styles from design-context.md. Natural extension of the existing app — no new paradigms. Low-risk baseline.
Final tab with: a compact scoring table (option name, 1-line description, 1–5 star score against optimization goal or "Overall UX"), and 1–2 sentence recommendation rationale.
Include functional interactive elements: clickable tabs/accordions, typeable form inputs, hover states (grays only), toggleable states, responsive behavior.
Option 1: Safe Option — replicate existing patterns from design-context.md.
Options 2–5 — pick 4 from: Progressive Disclosure, Dashboard-First, Wizard/Step-by-Step, Hub-and-Spoke, Inline Editing, Split View, Card-Based, Conversational, Kanban/Column, Timeline, Search-First, Contextual Actions, Feed-Based, Spatial/Map-Centric, Gesture-Driven, Command Palette, Notification-Driven, Floating Action, Comparison Table, Drag-and-Drop, Accordion/Collapsible, Gamified Progress — or create your own.
Small numbered markers (①②③) on wireframe elements, corresponding to UX notes below. Visible but not dominant — small circles with light border. Wireframe sub-tab only — not on color variants.
Sub-tabs — iOS-style icon tab bar (3 items: Wireframe, Clean, Polished):
| Tab | Icon | No content yet | Ready | Hover (ready) | Active (selected) |
|---|---|---|---|---|---|
| Wireframe | sketch | — | — | — | #000 + 2px bottom border |
| Clean | paint | #999 (gray) | #64B5F6 (light blue) | #1E88E5 (medium blue) | #1565C0 (dark blue) + 2px bottom border |
| Polished | diamond-one | #999 (gray) | #81C784 (light green) | #43A047 (medium green) | #2E7D32 (dark green) + 2px bottom border |
Wireframe icon: always #000 when active, #666 otherwise. No progress states needed.
#999) and transition to their active colors when CSS loads.Badges, sub-tab icons, completion banner, footer, and all JS are pre-built in the template. Do NOT regenerate any of these — they are already in index.html from the template copy.
CSS self-reveal mechanism — the template links 5 empty styles-optN.css files. When Phase 2 writes variant CSS, self-reveal rules at the end hide badges and color sub-tabs. When the page is re-opened after all agents complete, the inline JS load check sees no visible badges → shows the completion banner. No polling needed — pure CSS cascade + one-time load check.
Immediately after writing index.html and styles.css, launch 5 parallel foreground Task agents in a single tool-call message — one per option. Each agent writes its CSS to a separate file (styles-opt1.css, styles-opt2.css, styles-opt3.css, styles-opt4.css, styles-opt5.css). The Phase 1 HTML must include <link rel="stylesheet" href="styles-optN.css"> tags for all 5 variant CSS files in <head> (empty files created during Phase 1).
Launch all 5 Task agents in ONE tool-call message (parallel):
Agent 1: description: "[Option 1 Name]: Visual Designer"
Agent 2: description: "[Option 2 Name]: Visual Designer"
Agent 3: description: "[Option 3 Name]: Visual Designer"
Agent 4: description: "[Option 4 Name]: Visual Designer"
Agent 5: description: "[Option 5 Name]: Visual Designer"
All with:
subagent_type: "general-purpose"
run_in_background: false
Each agent's prompt MUST include:
index.html, the agent's own styles-optN.css, design-taste.md, design-context.md, and this skill's bundled wireframe/templates/self-reveal.cssstyles-optN.css. Do NOT modify index.html."styles-optN.cssVisual Designer persona for each agent prompt:
You are the Visual Designer for Option N: [Option Name]. The UX Architect's B&W wireframe layout is locked. Your job: bring this option's wireframe to life with color, typography, and motion. Do NOT change layout, information architecture, or content hierarchy — only visual treatment changes.
Your task:
- Read
index.html,styles-optN.css,design-taste.md, anddesign-context.md- Study the wireframe HTML structure for Option N (inside
#frame-optN)- Write CSS to
styles-optN.csswith: a..clean .selectorrules for the Clean variant b..polished .selectorrules for the Polished variant c. Browser chrome coloring:.clean .browser-dots span:nth-child(1) { background: #ff5f57; }etc. d. Use::before/::afterpseudo-elements for decorative accents in Polished (badges, overlays, accent borders)- Do NOT modify
index.html— CSS is your only output- Google Fonts allowed via
@importat top ofstyles-optN.css- Budget: ≤ 200 lines
- At the END of your CSS file, copy the self-reveal rules from this skill's bundled
wireframe/templates/self-reveal.cssand replaceNwith your option number.Do NOT duplicate layout rules — only override:
color,background,border-color,box-shadow,font-family,font-weight,transition,animation.CSS Anti-Patterns — MUST avoid:
- Decorative borders overlapping content: Never add
border-top,border-left, or decorative lines to a container without ensuring adequatepaddingormarginon the same side. If you addborder-top: 3px solid, add at leastpadding-top: 16pxso content doesn't overlap the line. Test: would any child element touch or overlap the border?- Full-width sections clipped by parent containers: If the wireframe has a
max-widthcontainer but a section (hero, masthead, banner, nav bar) should be full-width, usewidth: 100vw; margin-left: calc(-50vw + 50%);or break out of the container. Never leave a full-width section visually cut off at the sides. Test: does any section appear to "float" with gaps on the left/right edges?- Flat backgrounds where gradients are specified: When the Polished spec calls for gradients, use high-contrast gradient stops (e.g.,
linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%)) — not near-identical colors that appear flat. The gradient must be perceptible at a glance. Test: screenshot it — can you see the gradient without squinting?- Content escaping browser frame: All variant content must stay within the browser frame wrapper. Use
overflow: hiddenon the frame content area. No negative margins, absolute positioning, or transforms that push content outside the frame boundaries.- Dark mode in Polished: NEVER use dark backgrounds (
#0a-#2frange) for Polished. Polished must keep the same light base as Clean. Dark backgrounds make it look like a different theme, not a polished version.Clean (Style A): Simple, clean colors from
design-context.mdpalette (or Warmth/Precision tokens fromdesign-taste.md). System fonts only (-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif). Solid fills, clean typography, proper spacing. No gradients, no shadows, no effects — just color applied to the layout.Polished (Style B): Builds on Clean's color scheme — same backgrounds, same palette, same light feel. The difference is craft and finish, not a different color scheme. Specifically:
- Typography: Use a Google Font pairing (display + body) that complements Clean's system fonts. Slightly more refined sizing/spacing.
- Gradients: Replace flat solid backgrounds on heroes/banners/card headers with subtle gradients using lighter/darker shades of the same Clean colors (e.g.,
#f0faf5→#e2f5ec, not dark backgrounds).- Depth & shadows: Elevated cards with soft multi-layer shadows, subtle background glow effects. All on light backgrounds.
- Animation: Staggered entrance reveals, hover scale/lift on cards and buttons, micro-interactions on form inputs (focus glow), smooth transitions. Respect
prefers-reduced-motion.- Decorative accents:
::before/::afterpseudo-elements for colored top borders on cards, pill badges, accent lines, subtle background patterns.- Hover effects: Interactive lift, color shift, underline animations on links and buttons.
CRITICAL: Polished must NOT use dark backgrounds. Keep the same light/white base as Clean. If Clean has a white hero, Polished has a white-to-light-tint gradient hero — NOT a dark one. The goal is "Clean but with more craft" — not a different theme.
Polished MUST use the color palette from
design-context.mdas its foundation — do not invent new brand colors. Elevate through gradients, depth, and animation applied to the existing palette. If Clean is "color applied to wireframe", Polished is "Clean but with more craft and finish".Rules:
- EXACT same layout/structure as B&W wireframe — only visual treatment changes
- Each variant must have a distinct, intentional aesthetic
- Apply quality checks from
design-taste.md(swap, squint, signature, token tests)- Consumer features → Warmth & Approachability tokens; admin/dashboard → Precision & Density tokens
- Avoid anti-patterns from
design-taste.md- Both Clean and Polished MUST use colors from
design-context.mdpalette — no invented brand colors- No annotation markers on color variants — annotations are hidden via CSS class toggle
As each parallel agent returns, the main agent reports to the user:
"✔ [Option Name] — Clean + Polished ready."
After all 5 return, confirm everything is done.
3f-i. After wireframes written (before launching color agents):
Open the generated HTML file: open wireframe/DDMM-<feature-name>/index.html
Then tell the user:
wireframe/DDMM-<feature-name>/Then decide whether to launch Phase 2 (using the scope stored in Step 3b-ii):
3f-ii. As each parallel agent returns:
Report progress as each of the 5 agents completes:
"✔ [Option Name] — Clean + Polished ready."
3f-iii. After all 5 agents return:
Re-open the HTML file so the user sees the final result:
open wireframe/DDMM-<feature-name>/index.html
Tell the user: "All 5 options now have color variants (Clean + Polished). The page has been re-opened with the final result."
Note: Do not include "Refresh your browser" language — the CSS self-reveal mechanism and completion banner handle notification automatically when the page is re-opened.
After generating wireframes, check if the feature reveals new patterns or page types not yet documented in wireframe/brain/design-context.md. If so, append the new information to the appropriate section.
design-context.md. Options 2–5 must each represent a genuinely different UX philosophy.design-context.md and design-taste.md every time.LICENSE (opens in a new tab)README.md (opens in a new tab)examples/wireframe-annotations.png (opens in a new tab)examples/wireframe-option-detail.png (opens in a new tab)examples/wireframe-tabs.png (opens in a new tab)wireframe/brain/design-taste.md (opens in a new tab)wireframe/templates/base.css (opens in a new tab)wireframe/templates/self-reveal.css (opens in a new tab)wireframe/templates/template.html (opens in a new tab)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.