Skip to content
Productivity
Command

/mockup

Create a visual UX mockup for a requested feature or screen.

From plugin
nimbalyst
2.1k54 skills3 agents54 commands3 MCP
> /plugin marketplace add nimbalyst/nimbalyst
> /plugin install nimbalyst-wiki@nimbalyst

Command definition

mockup.md
packageVersion: 1.0.0
packageId: core
description: Create a visual UX mockup for a requested feature or screen.

Create a visual UX mockup for: {{arg1}}

Determine Mockup Type

First, determine if this is: 1. **New screen/feature** - Something that doesn't exist yet 2. **Modification to existing screen** - Changes to an existing UI in the codebase

Steps for NEW Screens

1. **Parse the request** - Understand what UI/screen/feature the user wants to mock up

2. **Check for style guide** - Look for `nimbalyst-local/existing-screens/style-guide.mockup.html`

  • **If style guide DOES NOT EXIST**:
  • Use the Task tool to spawn a sub-agent that will:
  • Explore the codebase to understand the app's look and feel
  • Find the theme files, CSS variables, color palette, and typography
  • Identify common UI patterns, component styles, and spacing conventions
  • Create `nimbalyst-local/existing-screens/style-guide.mockup.html` - a comprehensive visual reference showing:
  • Color palette (primary, secondary, accent colors, grays, semantic colors like error/success/warning)
  • Typography scale (headings H1-H6, body text, captions, with actual font families, sizes, weights, line heights)
  • Spacing scale (common padding/margin values used in the app)
  • Button styles (primary, secondary, danger, disabled states)
  • Form elements (inputs, textareas, selects, checkboxes, radio buttons)
  • Common UI patterns (cards, modals, tooltips, navigation elements)
  • Border radii and shadows
  • The style guide should be visually organized and easy to reference, like a design system documentation page
  • This should be a DEEP inspection of the existing UI and a comprehensive guide.
  • **If style guide EXISTS**:
  • Read it to understand the app's design system

3. **Create mockup file** - Create `nimbalyst-local/mockups/[descriptive-name].mockup.html`

4. **Build the mockup** - Write HTML with inline CSS that matches the style guide, ensuring consistency with the existing app

5. **Verify visually** - Use the Task tool to spawn a sub-agent that will:

  • Capture screenshot with `mcp__nimbalyst__capture_editor_screenshot`
  • Analyze for layout issues or problems
  • Fix with Edit tool if needed
  • Re-capture and iterate until correct

Design Principles (New Screens)

**CRITICAL: New screen mockups should look realistic and consistent with the existing app.**

  • **Match app styling**: Use the actual colors, fonts, and spacing from the codebase
  • **Realistic appearance**: Mockups should look like finished UI, not sketches
  • **Clear hierarchy**: Use size and spacing to show importance
  • **Consistent patterns**: Follow the same component patterns used elsewhere in the app

Steps for MODIFYING Existing Screens

Directory Structure

  • `nimbalyst-local/existing-screens/` - Cached replicas of existing UI screens
  • `nimbalyst-local/mockups/` - Modified copies showing proposed changes

Workflow

1. **Identify the screen** - Determine which existing screen/component is being modified

2. **Check for cached replica** - Look in `nimbalyst-local/existing-screens/` for `[screen-name].mockup.html`

3. **If cached replica EXISTS**:

  • Use the Task tool to spawn a sub-agent that will:
  • Check `git log` and `git diff` for changes to the relevant source files since the cached replica was last modified
  • If source files have changed, update the cached replica to match current implementation
  • If no changes, the cached replica is up-to-date
  • **No styling analysis needed** - The replica already contains all the styling information from the existing screen

4. **If cached replica DOES NOT EXIST**:

  • **Try to get a live screenshot first**:
  • If you have the ability to run the app and capture a screenshot automatically, do so - this gives the most accurate reference
  • If you cannot run the app, ask the user: "Would you like to provide a screenshot of the current screen? This will help me create a pixel-perfect replica. Otherwise, I'll recreate it from the source code."
  • **Deep code analysis** - Use the Task tool to spawn a sub-agent that will analyze the specific screen being replicated:
  • Find ALL relevant React components, CSS files, theme files, and related code **for this specific screen**
  • Extract exact colors (hex values), font sizes, font weights, line heights **used in this screen**
  • Document exact spacing values (padding, margin, gap) **in this screen**
  • Identify border radii, shadows, and other visual details **specific to this screen**
  • Spawn additional sub-agents if needed to cover different aspects (layout, typography, colors, icons)
  • If a screenshot was provided, use it as the reference to match pixel-for-pixel
  • **Note**: This is screen-specific analysis, not app-wide styling research
  • Create `nimbalyst-local/existing-screens/[screen-name].mockup.html` - a **pixel-perfect** HTML/CSS replica including:
  • Exact colors from the existing CSS
  • Exact typography (font family, size, weight, line height)
  • Exact spacing and dimensions
  • All visual details (shadows, borders, hover states if relevant)
  • Verify the replica visually with screenshot capture - iterate until it matches the original exactly

5. **Copy to mockups** - Copy the existing-screen replica to `nimbalyst-local/mockups/[descriptive-name].mockup.html`

6. **Apply modifications** - Edit the copy in mockups to include the proposed changes, keeping modifications **in full color**

7. **Verify visually** - Use the Task tool to spawn a sub-agent to capture and verify the mockup

8. **If the replica was updated or created and you were not able to obtain a screenshot**, after creating the replica, prompt the user in bold: **If you are able to give me a screenshot of the existing screen I can improve the mockup**

Design Principles (Mod

Read more
@nimbalyst
Ships withnimbalyst

Nimbalyst - The open-source visual workspace for Claude Code, Codex, and OpenCode. Run multiple coding agents in parallel, edit their work visually in markdown, mockups, and diagrams, and track tasks. Free, MIT-licensed desktop app for macOS, Windows, Linux, with mobile companion for iOS and Android.

2.1k16 skills3 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.1k
Star history of nimbalyst/nimbalyst on GitHub, a chart by star-history.com

Other commands on nimbalyst.

analyze-sessions

analyze-sessions

Command

Audit recent AI coding sessions to find repeated mistakes, speed losses, and missed Nimbalyst tool usage — then propose harness…

@nimbalyst@nimbalystInstall Command
audit-updates

audit-updates

Command

Triage pnpm audit findings and produce a prioritized, supply-chain-cautious package-update plan, then apply approved batches

@nimbalyst@nimbalystInstall Command
autofix-issues

autofix-issues

Command

Survey recently triaged GitHub issues, propose the ones safe to fix without a product decision, and fan the selected ones out to…

@nimbalyst@nimbalystInstall Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command