Skip to content
Back to skills

Mockup Server

ASecurity

Use when a stage needs visual preview — wireframes, mockups, design comparisons, multi-variant voting, or design system showcases

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 4, 2026
ai-agentsbashapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned June 4, 2026

npx -y skills add solofounder-ai/solofounder --skill mockup-server --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mockup Server?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mockup Server
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/solofounder-ai-mockup-server/badge)](https://www.skillsdirectory.com/skills/solofounder-ai-mockup-server)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mockup-server
description: Use when a stage needs visual preview — wireframes, mockups, design comparisons, multi-variant voting, or design system showcases
---

# Mockup Server

## Overview

Browser-based visual companion for showing mockups, diagrams, design variants, and interactive options. Agents write HTML files, the server serves them on localhost, users view and vote in their browser.

**Core principle:** Decide per-question, not per-session. The test: would the user understand this better by seeing it than reading it?

## When to Use

**Use the browser** when the content itself is visual:
- UI mockups, wireframes, layout comparisons
- Architecture diagrams, data flow visualizations
- Side-by-side design variant comparison
- Design system showcases (color palettes, typography, components)
- Any content where spatial relationships matter

**Use the terminal** when the content is text:
- Requirements questions, conceptual choices
- Tradeoff lists, comparison tables
- Technical decisions, API design
- Clarifying questions

## Quick Reference

**Start server:**
```bash
capabilities/mockup-server/scripts/start-server.sh --project-dir /path/to/project
```

**Write content:** Use the Write tool to create HTML files in `screen_dir`. Write content fragments (no `<html>` wrapper needed — server adds the frame template automatically).

**Read user interactions:** Check `state_dir/events` for click/vote/feedback events as JSONL.

**Stop server:**
```bash
capabilities/mockup-server/scripts/stop-server.sh $SESSION_DIR
```

## Multi-Variant Comparison

When multiple agents produce design variants, use the `variant-` filename prefix:

```
content/
  variant-a-minimal.html
  variant-b-bold.html
  variant-c-rounded.html
```

The server auto-generates a comparison view. Users can vote on variants and provide per-variant feedback.

**Event types:**
```jsonl
{"type":"vote","variant":"variant-a-minimal","timestamp":...}
{"type":"feedback","variant":"variant-b-bold","text":"like the colors","timestamp":...}
{"type":"merge","from":["variant-a","variant-b"],"note":"A's layout + B's colors","timestamp":...}
```

## Design Research Gallery

When presenting curated design references from `solofounder:live-research`, use the design research gallery pattern. This shows references as visual cards with images, multi-select for picking favorites, AI combination suggestions, and a refinement flow.

See `design-research-gallery.md` in this directory for the complete gallery template: HTML structure, refinement page, event handling, and iteration flow.

## Detailed Guide

See `visual-companion.md` in this directory for the complete operational guide: server lifecycle, content fragments, CSS classes, browser events, platform-specific launch instructions.

Files in this skill

  • SKILL.md2.7 KB
  • design-research-gallery.md8.8 KB
  • scripts/frame-template.html10.5 KB
  • scripts/helper.js4.1 KB
  • scripts/server.cjs13.5 KB
  • scripts/start-server.sh4.5 KB
  • scripts/stop-server.sh1.3 KB
  • visual-companion.md14 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.