---
name: sketch
description: "Throwaway HTML mockups: 2-3 design variants to compare."
platforms: [linux, macos, windows]
metadata:
hermes:
tags: [sketch, mockup, design, ui, prototype, html, variants, exploration, wireframe, comparison]
related_skills: [spike, claude-design, popular-web-designs, excalidraw]
license: MIT
author: NousResearch (Hermes Agent)
source: "https://github.com/NousResearch/hermes-agent/tree/main/optional-skills/creative/sketch"
version: 1.0.0
adapted_from: "https://github.com/NousResearch/hermes-agent/tree/main/optional-skills/creative/sketch"
---
# Sketch
Use this skill when the user wants to **see a design direction before committing** to one — exploring a UI/UX idea as disposable HTML mockups. The point is to generate 2-3 interactive variants so the user can compare visual directions side-by-side, not to produce shippable code.
Load this when the user says things like "sketch this screen", "show me what X could look like", "compare layout A vs B", "give me 2-3 takes on this UI", "let me see some variants", "mockup this before I build".
## When NOT to use this
- User wants a production component — use `claude-design` or build it properly
- User wants a polished one-off HTML artifact (landing page, deck) — `claude-design`
- User wants a diagram — `excalidraw`, `architecture-diagram`
- The design is already locked — just build it
## If the user has the full GSD system installed
If `gsd-sketch` shows up as a sibling skill (installed via `npx get-shit-done-cc --hermes`), you can use **`gsd-sketch`** for the fuller workflow: persistent `.planning/sketches/` with MANIFEST, frontier mode analysis, consistency audits across past sketches, and integration with the rest of GSD. This skill is the lightweight standalone version — one-off sketching without the state machinery.
> **Note:** The upstream GSD project ([gsd-build/get-shit-done](https://github.com/gsd-build/get-shit-done)) is **archived / no longer maintained** on GitHub. The npm package (`get-shit-done-cc`) still installs, but treat it as an archived community project — this standalone `sketch` skill is the maintained path and needs nothing extra.
## Core method
```
intake → variants → head-to-head → pick winner (or iterate)
```
### 1. Intake (skip if the user already gave you enough)
Before generating variants, get three things — one question at a time, not all at once:
1. **Feel.** "What should this feel like? Adjectives, emotions, a vibe." — *"calm, editorial, like Linear"* tells you more than *"minimal"*.
2. **References.** "What apps, sites, or products capture the feel you're imagining?" — actual references beat abstract descriptions.
3. **Core action.** "What's the single most important thing a user does on this screen?" — the variants should all serve this well; if they don't, they're just decoration.
Reflect each answer briefly before the next question. If the user already gave you all three upfront, skip straight to variants.
### 2. Variants (2-3, never 1, rarely 4+)
Produce **2-3 variants** in one go. Each variant is a complete, standalone HTML file. Don't describe variants — build them. The point is comparison.
Each variant should take a **different design stance**, not different pixel values. Three good variant axes:
- **Density:** compact / airy / ultra-dense (pick two contrasting poles)
- **Emphasis:** content-first / action-first / tool-first
- **Aesthetic:** editorial / utilitarian / playful
- **Layout:** single-column / sidebar / split-pane
- **Grounding:** card-based / bare-content / document-style
Pick one axis and pull apart from it. Two variants that differ only in accent color are wasted effort — the user can't distinguish them.
**Variant naming:** describe the stance, not the number.
```
sketches/
├── 001-calm-editorial/
│ ├── index.html
│ └── README.md
├── 001-utilitarian-dense/
│ ├── index.html
│ └── README.md
└── 001-playful-split/
├── index.html
└── README.md
```
### 3. Make them real HTML
Each variant is a **single self-contained HTML file**:
- Inline `
```
### 4. Variant README
Each variant's `README.md` answers:
```markdown
## Variant: {stance name}
### Design stance
One sentence on the principle driving this variant.
### Key choices
- Layout: ...
- Typography: ...
- Color: ...
- Interaction: ...
### Trade-offs
- Strong at: ...
- Weak at: ...
### Best for
- The kind of user or use case this variant actually serves
```
### 5. Head-to-head
After all variants are built, present them as a comparison. Don't just list — **opinionate**:
```markdown
## Three takes on the home screen
| Dimension | Calm editorial | Utilitarian dense | Playful split |
|-----------|----------------|-------------------|---------------|
| Density | Low | High | Medium |
| Primary action visibility | Low | High | Medium |
| Scan-ability | High | Medium | Low |
| Feel | Calm, trusted | Sharp, tool-like | Inviting, energetic |
**My take:** Utilitarian dense for power users, calm editorial for content-forward audiences. Playful split is weakest — tries to do both and commits to neither.
```
Let the user pick a winner, or combine two into a hybrid, or ask for another round.
## Theming (when the project has a visual identity)
If the user has an existing theme (colors, fonts, tokens), put shared tokens in `sketches/themes/tokens.css` and `@import` them in each variant. Keep tokens minimal:
```css
/* sketches/themes/tokens.css */
:root {
--color-bg: #fafafa;
--color-fg: #1a1a1a;
--color-accent: #0066ff;
--color-muted: #666;
--radius: 8px;
--font-display: "Inter", sans-serif;
--font-body: -apple-system, BlinkMacSystemFont, sans-serif;
}
```
Don't over-tokenize a throwaway sketch — three colors and one font is usually enough.
**Take the tokens from the live product source, not from a design note.** When the sketch is for an existing app (a web version of a shipped mobile app, a redesign), read the app's actual theme file (e.g. a Compose `Theme.kt`, Tailwind config, CSS variables) and its newest QA screenshots before writing any colour. Design-direction notes in the vault are written once and go stale when the brand moves (accent colour, fonts, light-vs-dark default) — a whole round of variants built from such a note looks wrong to the user on sight. Also mirror the app's UI language (Turkish UI → Turkish mock content) and its signature patterns (nav shape, caption style, tile grids), and say in the reply which tokens came from which source file.
## Interactivity bar
A sketch is interactive enough when the user can:
1. **Click a primary action** and something visible happens (state change, modal, toast, navigation feint)
2. **See one meaningful state transition** (filter a list, toggle a mode, open/close a panel)
3. **Hover recognizable affordances** (buttons, rows, tabs)
More than that is over-engineering a throwaway. Less than that is a screenshot.
## Frontier mode (picking what to sketch next)
If sketches already exist and the user says "what should I sketch next?":
- **Consistency gaps** — two winning variants from different sketches made independent choices that haven't been composed together yet
- **Unsketched screens** — referenced but never explored
- **State coverage** — happy path sketched, but not empty / loading / error / 1000-items
- **Responsive gaps** — validated at one viewport; does it hold at mobile / ultrawide?
- **Interaction patterns** — static layouts exist; transitions, drag, scroll behavior don't
Propose 2-4 named candidates. Let the user pick.
## Output
- Create `sketches/` (or `.planning/sketches/` if the user is using GSD conventions) in the repo root
- One subdir per variant: `NNN-stance-name/index.html` + `README.md`
- Tell the user how to open them: `open sketches/001-calm-editorial/index.html` on macOS, `xdg-open` on Linux, `start` on Windows
- Keep variants disposable — a sketch that you felt the need to preserve should be promoted into real project code, not curated as an asset
**Typical tool sequence for one variant:**
```
terminal("mkdir -p sketches/001-calm-editorial")
write_file("sketches/001-calm-editorial/index.html", "...")
write_file("sketches/001-calm-editorial/README.md", "## Variant: Calm editorial\n...")
browser_navigate(url="file://$(pwd)/sketches/001-calm-editorial/index.html")
browser_vision(question="How does this look? Any obvious layout issues?")
```
Repeat for each variant, then present the comparison table.
### Phone-to-desktop adaptation audit (web port of a mobile app)
When porting a mobile-app mockup (Android/iOS) to a desktop web mockup, audit for
these concrete phone-isms before building the desktop version — they recur in every
such port and are easy to miss when the visual language (colors/fonts) looks fine:
- **Hard `max-width` caps on the shell** (e.g. `max-width:1280px`) that leave the
content centered-left with dead space at 1920px instead of using a fluid/3-column
layout at wide viewports.
- **Fixed-column-count grids** (`repeat(4,1fr)`) that reserve empty tracks when there
are fewer items than columns, instead of `repeat(auto-fit,minmax(Npx,1fr))` with a
`max-width` cap on the card so it grows sanely rather than stretching huge.
- **A single "master" list/sidebar that only exists on one route** (e.g. an agent or
contact list only shown on its own page) instead of being persistent chrome across
every screen — the #1 "forgot this is a computer" tell on router-driven SPA mocks.
- **Compare/slider/detail views wrapped in an inline `max-width:~640px` div** sized
for a phone screen and literally centered in a vast empty canvas.
- **`aspect-ratio` + `max-height` set on the same element that also carries an inline
background/gradient style** — the two constraints fight and leave a blank strip;
fix by putting the background on an absolutely-positioned `inset:0` child instead
of the element itself.
- **No desktop interaction layer**: no hover states, no right-click context menus, no
keyboard shortcuts (J/K, space, bracket keys) with visible `kbd` hints, no
multi-select, no resizable split panes — all present in the phone app's gesture
equivalents (long-press, swipe) but silently dropped on the web port.
- **Ratio-split detail pages.** Splitting a profile/settings page into percentage
columns (e.g. 37/63) reads as unbalanced on every viewport. Use a FIXED narrow
sidebar (~320–340px) + flexible content, and put reading/form screens (profile,
settings, permissions, job detail, sessions) in ONE centered column capped at
~720px with grouped cards. Only chat, galleries, media viewers and dashboards
take the full width.
- **Chat composer floating mid-screen.** With few messages the composer ends up
halfway up the page. Pin it to the bottom and stack messages from the bottom
(`flex-direction:column; justify-content:flex-end`), message column ≤760px
centered, thin (~56px) header with no extra title card.
- **Phone navigation left over after adding a persistent sidebar.** Back buttons,
a page title plus a second header card for the same object, and a nav item that
highlights the wrong section (e.g. "Chat" lit while on a profile) are redundant
once the master list is always visible — remove them and check the active state
per route.
Write the audit as a short per-screen severity table (Yüksek/Orta/Düşük) with a
concrete fix per row, then build the desktop version directly off that table so
every "Yüksek" item has a traceable corresponding code change.
### When the user sends reference screenshots of an app they like
The user often answers a weak round by sending screenshots of a desktop app whose
feel they want (e.g. Telegram Desktop: chat, profile, settings, storage usage,
active sessions). Treat that as the signal to stop delegating open-ended design:
1. Acknowledge each screenshot briefly as it arrives: list the concrete layout
decisions it shows (widths, grouping, row anatomy, the single primary action) and
the screen in our product it maps to. Wait for "that's all" before building.
2. Then write a **binding spec yourself** in the project's notes folder: shell
skeleton with px widths, per-route layout, row/card anatomy, interaction list,
tokens, out-of-scope items. The subagent builds against the spec; it does not
re-decide the layout. A vague brief ("make it more desktop") produced the bad
proportions in the first place.
3. Delegate with the reference images attached (`images`), the spec path, the prior
mock as read-only code source, a required screenshot list that names every
sub-route and state, and a hash/query way to force states (`?inspector=1`,
`?theme=dark`, `#upload`). Restrict writes to the new variant folder.
4. **Scan reference screenshots for secrets** (API keys in chat previews, tokens,
phone numbers). Warn the user once that the key is now visible in the
conversation and should be rotated, and instruct the subagent never to transcribe
any key/token text from the images.
5. When the result returns, look at the screenshots yourself before reporting and
list what is still phone-like or broken; do not forward the subagent's
self-report as the verdict.
### Headless-screenshot verification without a browser tool
When only `terminal`/`write_file` are available (no `browser_exec`), render each
hash route with headless Chrome directly — fast and scriptable for N named screens:
```bash
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
FILE="file://$(pwd)/index.html"
"$CHROME" --headless=new --disable-gpu --hide-scrollbars --window-size=1440,900 \
--virtual-time-budget=4000 --screenshot="screenshots/01-home.png" "${FILE}#home"
```
`--virtual-time-budget` lets any route-driven JS (hash router, animations) settle
before the capture.
**Screenshot the detail and interaction states, not only the top-level routes.** The
screens the user asked about most (a player with timestamped feedback, a compare
slider, a palette overlay) usually live on sub-routes (`#video/`,
`#photos//compare`) or behind a toggle; a capture list of only the tab routes
hides exactly the parts that break (overflowing image, unlisted pins, a floating bar
covering a button). When delegating variants to subagents, name these sub-routes in
the required screenshot list, and after they return grep the HTML for the real ids
(`grep -oE "id: *'[a-z0-9-]+'"`) and capture the detail views yourself before
presenting. Check that a fixed-height sidebar fits at the target viewport height —
a clipped agent list is the most common miss at 1440×900. Loop over route names, zero-pad the filename index, then load
each PNG with `vision_analyze` yourself and look for overlapping text/unrendered
icons/misaligned bars before calling it done — don't just trust that HTML with no
console errors rendered correctly.
## Attribution
Adapted from the GSD (Get Shit Done) project's `/gsd-sketch` workflow — MIT © 2025 Lex Christopherson ([gsd-build/get-shit-done](https://github.com/gsd-build/get-shit-done)). The upstream GSD repo is now **archived/unmaintained** on GitHub; the `get-shit-done-cc` npm package still installs (`npx get-shit-done-cc --hermes --global`) and ships persistent sketch state, theme/variant pattern references, and consistency-audit workflows, but treat it as an archived community project.