Agent skill
using-gui-wireframes
Use when creating or editing UI mockups, screen layouts, or interface designs. Use INSTEAD of ASCII art for any visual UI representation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/using-gui-wireframes
SKILL.md
Using GUI Wireframes
Overview
ALWAYS use mermaid wireframe syntax for UI mockups. Never use ASCII art boxes, tables, or text representations for UI layouts.
When to Use
Use wireframe syntax when:
- User asks for a "mockup", "wireframe", "UI design", or "screen layout"
- Visualizing app screens, forms, dashboards, or navigation flows
- Showing multi-screen user flows or journeys
- Any situation where you'd otherwise draw ASCII boxes for UI
NEVER use ASCII art for UI. Wireframe syntax renders as actual visual diagrams.
Quick Syntax Reference
wireframe [viewport] [direction]
[component] ["label"] [modifiers]
Viewports: mobile (375×600), tablet (768×1024), desktop (1200×800)
Direction: LR (horizontal screens), TD (vertical screens)
Containers:
| Component | Purpose |
|---|---|
col |
Stack children vertically |
row |
Place children horizontally |
Card |
Bordered container |
screen "label" |
Separate viewport (for flows) |
Components:
| Component | Example |
|---|---|
AppBar "title" |
Top navigation bar |
Title "text" |
Large heading |
Text "text" |
Body text |
Input "placeholder" |
Text field |
Button "label" |
Clickable button |
Checkbox "label" |
Checkbox |
Switch "label" |
Toggle |
Dropdown "label" |
Select menu |
Avatar |
User avatar |
Image |
Image placeholder |
spacer |
Flexible space |
divider |
Horizontal line |
Modifiers: primary, secondary, danger, disabled, flex=N, width=N, height=N, padding=N
Critical Syntax Rules
- Indentation = hierarchy - Use 2 spaces per level, no tabs
- Labels in quotes -
Button "Submit"notButton Submit - Modifiers after label -
Button "Save" primarynotprimary Button "Save" - Grid uses pipes -
header "Col1 | Col2"androw "Val1 | Val2"
Common Patterns
Mobile form:
wireframe mobile
col
AppBar "Form Title"
col padding=24
Input "Field 1"
Input "Field 2"
spacer
Button "Submit" primary
Multi-screen flow:
wireframe mobile LR
screen "Login"
col
AppBar "Sign In"
col padding=24
Input "Email"
Button "Login" primary
screen "Home"
col
AppBar "Dashboard"
Title "Welcome"
Desktop sidebar layout:
wireframe desktop
col
AppBar "App"
row flex
col width=200
List "Nav 1"
List "Nav 2"
col flex
Title "Content"
Common Mistakes
| Mistake | Fix |
|---|---|
Using ASCII boxes [Button] |
Use Button "label" |
| Missing quotes on labels | Title "Hello" not Title Hello |
| Wrong indentation | Exactly 2 spaces per level |
| Tabs instead of spaces | Use spaces only |
| Modifier before label | Button "X" primary not primary Button "X" |
Red Flags - You're Doing It Wrong
If you find yourself:
- Drawing
+----+boxes → Use wireframe syntax - Writing
| Button |→ UseButton "label" - Making ASCII tables for UI → Use
Gridwithheader/row - Describing UI in prose → Create a wireframe diagram
These all mean: Use wireframe syntax instead.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?