Design Mockup Creator

SkillMedia

Create interactive HTML mockups from requirements + design system tokens. Stack: HTML + Alpine.js (CDN) + Tailwind CSS (npx build). Actions: create, update.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Design Mockup Creator skill

What this skill tells your AI

The instructions your AI receives, as published by typv/nest-turbo-starter in .claude/skills/design-mockup-create/SKILL.md and read by ahel’s review.

Generate interactive multi-page HTML mockups from requirements and design system tokens using HTML + Alpine.js + Tailwind CSS.

Default (No Arguments)

If invoked without arguments, use AskUserQuestion to present available operations:

OperationDescription
createGenerate a new mockup flow from requirements
updateModify an existing mockup flow

Present as options via AskUserQuestion with header "Design Mockup", question "What would you like to do?".

Prerequisites

MANDATORY checks before any action — STOP with error if either fails:

  1. Design system tokens: Check docs/design-system/tokens.json exists.
    • If missing: STOP. Print: "Design system not found. Run '/design-system create' first."
  2. Requirements source: Check if free-text description exists in $ARGUMENTS OR docs/project-fsd.md exists.
    • If neither: STOP. Print: "No requirements found. Provide a description or run '/specs init' first."
  3. Both exist: proceed.

Skill activations (in order):

1. Skill(skill: "ui-ux-pro-max")   — design intelligence (palette, typography, layout)
2. Skill(skill: "ui-styling")      — Tailwind CSS patterns + best practices

Routing

Parse $ARGUMENTS first word:

ActionWorkflowReference Files
createCreate WorkflowAll 3 references
updateUpdate WorkflowAll 3 references
emptyDefault menu (AskUserQuestion)

Create Workflow

  1. Validate prerequisites (see Prerequisites above)
  2. Activate skills: ui-ux-pro-max, then ui-styling
  3. Read inputs:
    • Design tokens: docs/design-system/tokens.json
    • Theme overrides: docs/design-system/themes/*.json (if exist)
    • Component catalog: docs/design-system/component-catalog.md (if exists)
    • Requirements: FSD (docs/project-fsd.md) and/or $ARGUMENTS description
  4. Generate Tailwind config:
    node .claude/skills/design-mockup-create/scripts/tokens-to-tailwind-config.js \
      --tokens-dir docs/design-system/ \
      --output docs/design-mockups/{flow-name}/tailwind.config.js
    
  5. Scaffold flow directory:
    node .claude/skills/design-mockup-create/scripts/scaffold-mockup-flow.js \
      --name {flow-name} \
      --output-dir docs/design-mockups/ \
      --pages "{comma-separated-pages}" \
      --description "{flow-description}"
    
  6. Plan pages: Determine pages from requirements, define navigation graph, write mockup.json
  7. Generate HTML pages:
    • Load references/mockup-html-patterns.md for component patterns
    • Load references/responsive-layout-patterns.md for layout patterns
    • Load references/flow-navigation-patterns.md for navigation patterns
    • Use semantic HTML5 (<nav>, <main>, <section>, <form>, <label>)
    • Alpine.js x-data, x-show, x-on for interactivity
    • Tailwind classes from token-derived config (e.g., bg-primary-500, text-neutral-900)
    • Responsive: mobile-first with sm:, md:, lg: breakpoints
    • Dark mode: dark: variant classes if themes detected
    • Consistent nav/footer on each page
  8. Build CSS:
    bash .claude/skills/design-mockup-create/scripts/build-mockup-css.sh docs/design-mockups/{flow-name}/
    
  9. Open in browser:
    open docs/design-mockups/{flow-name}/index.html
    

Update Workflow

  1. Validate prerequisites (see Prerequisites above)
  2. Activate skills: ui-ux-pro-max, then ui-styling
  3. Read existing flow: Parse mockup.json from docs/design-mockups/{flow-name}/
  4. Parse update requirements from $ARGUMENTS
  5. Modify HTML files (or create new pages). Load all 3 references for patterns.
  6. Update mockup.json (add/reorder pages if changed, update updated date)
  7. Build CSS with watch:
    bash .claude/skills/design-mockup-create/scripts/build-mockup-css.sh docs/design-mockups/{flow-name}/ --watch
    
  8. Open in browser:
    open docs/design-mockups/{flow-name}/index.html
    

Output Structure

All output goes to docs/design-mockups/{flow-name}/:

docs/design-mockups/
  {flow-name}/
    mockup.json          # Flow manifest (pages, navigation, metadata)
    tailwind.config.js   # Generated from design system tokens
    input.css            # @tailwind directives
    output.css           # Built CSS (generated by npx tailwindcss)
    index.html           # Flow entry point (links to all pages)
    {page-name}.html     # Individual page mockups

mockup.json Schema

{
  "name": "auth-flow",
  "description": "Authentication flow with login, register, password reset",
  "created": "2026-03-30",
  "updated": "2026-03-30",
  "themes": ["light", "dark"],
  "pages": [
    {
      "file": "login.html",
      "title": "Login",
      "description": "Email/password login with social auth",
      "navOrder": 1
    }
  ],
  "navigation": {
    "login.html": ["register.html", "forgot-password.html"]
  }
}

Scripts

Deterministic operations use Node.js scripts and shell scripts:

Generate Tailwind Config

node .claude/skills/design-mockup-create/scripts/tokens-to-tailwind-config.js \
  --tokens-dir docs/design-system/ \
  --output {flow-dir}/tailwind.config.js \
  --content-glob "./*.html"

Scaffold Flow

node .claude/skills/design-mockup-create/scripts/scaffold-mockup-flow.js \
  --name {flow-name} \
  --output-dir docs/design-mockups/ \
  --pages "page1,page2,page3" \
  --description "Flow description"

Build CSS

bash .claude/skills/design-mockup-create/scripts/build-mockup-css.sh {flow-dir}/
# Add --watch for live rebuild during updates
bash .claude/skills/design-mockup-create/scripts/build-mockup-css.sh {flow-dir}/ --watch

Reference Loading

ActionReferences to Load
createreferences/mockup-html-patterns.md, references/responsive-layout-patterns.md, references/flow-navigation-patterns.md
updatereferences/mockup-html-patterns.md, references/responsive-layout-patterns.md, references/flow-navigation-patterns.md

Signals

GitHub stars
224
Forks
47
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
design-mockup-create
Source
github.com/typv/nest-turbo-starter