{"id":"8ad99bd0-bcdc-4c6c-860b-6069a6e0ab78","shortId":"xnp7fW","kind":"skill","title":"design-html","tagline":"Design finalization: generates production-quality Pretext-native HTML/CSS.\nWorks with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review,\ndesign review context from /plan-design-review, or from scratch with a user\ndescription. Text actually reflows, heights ar","description":"## Preamble\n\n```bash\neval \"$(~/.vibestack/bin/vibe-slug 2>/dev/null)\" 2>/dev/null || SLUG=\"unknown\"\n_LEARN_FILE=\"${VIBESTACK_HOME:-$HOME/.vibestack}/projects/${SLUG:-unknown}/learnings.jsonl\"\nif [ -f \"$_LEARN_FILE\" ]; then\n  _LEARN_COUNT=$(wc -l < \"$_LEARN_FILE\" 2>/dev/null | tr -d ' ')\n  echo \"LEARNINGS: $_LEARN_COUNT entries loaded\"\n  if [ \"$_LEARN_COUNT\" -gt 5 ] 2>/dev/null; then\n    ~/.vibestack/bin/vibe-learnings-search --limit 5 2>/dev/null || true\n  fi\nelse\n  echo \"LEARNINGS: none yet\"\nfi\n```\n\n## DESIGN SETUP\n\n```bash\n# vibestack does not include a design daemon.\necho \"DESIGN_NOT_AVAILABLE\"\n```\n\nIf `DESIGN_NOT_AVAILABLE`: skip visual mockup generation and fall back to text-based design review.\n\n## UX Principles: How Users Actually Behave\n\nThese principles govern how real humans interact with interfaces. They are observed\nbehavior, not preferences. Apply them before, during, and after every design decision.\n\n### The Three Laws of Usability\n\n1. **Don't make me think.** Every page should be self-evident. If a user stops\n   to think \"What do I click?\" or \"What does this mean?\", the design has failed.\n   Self-evident > self-explanatory > requires explanation.\n\n2. **Clicks don't matter, thinking does.** Three mindless, unambiguous clicks\n   beat one click that requires thought. Each step should feel like an obvious\n   choice (animal, vegetable, or mineral), not a puzzle.\n\n3. **Omit, then omit again.** Get rid of half the words on each page, then get\n   rid of half of what's left. Happy talk (self-congratulatory text) must die.\n   Instructions must die. If they need reading, the design has failed.\n\n### How Users Actually Behave\n\n- **Users scan, they don't read.** Design for scanning: visual hierarchy\n  (prominence = importance), clearly defined areas, headings and bullet lists,\n  highlighted key terms. We're designing billboards going by at 60 mph, not\n  product brochures people will study.\n- **Users satisfice.** They pick the first reasonable option, not the best.\n  Make the right choice the most visible choice.\n- **Users muddle through.** They don't figure out how things work. They wing\n  it. If they accomplish their goal by accident, they won't seek the \"right\" way.\n  Once they find something that works, no matter how badly, they stick to it.\n- **Users don't read instructions.** They dive in. Guidance must be brief,\n  timely, and unavoidable, or it won't be seen.\n\n### Billboard Design for Interfaces\n\n- **Use conventions.** Logo top-left, nav top/left, search = magnifying glass.\n  Don't innovate on navigation to be clever. Innovate when you KNOW you have a\n  better idea, otherwise use conventions. Even across languages and cultures,\n  web conventions let people identify the logo, nav, search, and main content.\n- **Visual hierarchy is everything.** Related things are visually grouped. Nested\n  things are visually contained. More important = more prominent. If everything\n  shouts, nothing is heard. Start with the assumption everything is visual noise,\n  guilty until proven innocent.\n- **Make clickable things obviously clickable.** No relying on hover states for\n  discoverability, especially on mobile where hover doesn't exist. Shape, location,\n  and formatting (color, underlining) must signal clickability without interaction.\n- **Eliminate noise.** Three sources: too many things shouting for attention\n  (shouting), things not organized logically (disorganization), and too much stuff\n  (clutter). Fix noise by removal, not addition.\n- **Clarity trumps consistency.** If making something significantly clearer\n  requires making it slightly inconsistent, choose clarity every time.\n\n### Navigation as Wayfinding\n\nUsers on the web have no sense of scale, direction, or location. Navigation\nmust always answer: What site is this? What page am I on? What are the major\nsections? What are my options at this level? Where am I? How can I search?\n\nPersistent navigation on every page. Breadcrumbs for deep hierarchies.\nCurrent section visually indicated. The \"trunk test\": cover everything except\nthe navigation. You should still know what site this is, what page you're on,\nand what the major sections are. If not, the navigation has failed.\n\n### The Goodwill Reservoir\n\nUsers start with a reservoir of goodwill. Every friction point depletes it.\n\n**Deplete faster:** Hiding info users want (pricing, contact, shipping). Punishing\nusers for not doing things your way (formatting requirements on phone numbers).\nAsking for unnecessary information. Putting sizzle in their way (splash screens,\nforced tours, interstitials). Unprofessional or sloppy appearance.\n\n**Replenish:** Know what users want to do and make it obvious. Tell them what they\nwant to know upfront. Save them steps wherever possible. Make it easy to recover\nfrom errors. When in doubt, apologize.\n\n### Mobile: Same Rules, Higher Stakes\n\nAll the above applies on mobile, just more so. Real estate is scarce, but never\nsacrifice usability for space savings. Affordances must be VISIBLE: no cursor\nmeans no hover-to-discover. Touch targets must be big enough (44px minimum).\nFlat design can strip away useful visual information that signals interactivity.\nPrioritize ruthlessly: things needed in a hurry go close at hand, everything\nelse a few taps away with an obvious path to get there.\n\n## SETUP\n\n```bash\n# vibestack does not include a browse daemon.\necho \"BROWSE_NOT_AVAILABLE\"\n```\n\nIf `BROWSE_NOT_AVAILABLE`: skip all `$B` commands and use text-only fallbacks (curl, open, direct HTTP checks).\n\n## Step 0: Input Detection\n\n```bash\neval \"$(~/.vibestack/bin/vibe-slug 2>/dev/null)\"\n```\n\nDetect what design context exists for this project. Run all four checks:\n\n```bash\nsetopt +o nomatch 2>/dev/null || true\n_CEO=$(ls -t ~/.vibestack/projects/$SLUG/ceo-plans/*.md 2>/dev/null | head -1)\n[ -n \"$_CEO\" ] && echo \"CEO_PLAN: $_CEO\" || echo \"NO_CEO_PLAN\"\n```\n\n```bash\nsetopt +o nomatch 2>/dev/null || true\n_APPROVED=$(ls -t ~/.vibestack/projects/$SLUG/designs/*/approved.json 2>/dev/null | head -1)\n[ -n \"$_APPROVED\" ] && echo \"APPROVED: $_APPROVED\" || echo \"NO_APPROVED\"\n```\n\n```bash\nsetopt +o nomatch 2>/dev/null || true\n_VARIANTS=$(ls -t ~/.vibestack/projects/$SLUG/designs/*/variant-*.png 2>/dev/null | head -1)\n[ -n \"$_VARIANTS\" ] && echo \"VARIANTS: $_VARIANTS\" || echo \"NO_VARIANTS\"\n```\n\n```bash\nsetopt +o nomatch 2>/dev/null || true\n_FINALIZED=$(ls -t ~/.vibestack/projects/$SLUG/designs/*/finalized.html 2>/dev/null | head -1)\n[ -n \"$_FINALIZED\" ] && echo \"FINALIZED: $_FINALIZED\" || echo \"NO_FINALIZED\"\n[ -f DESIGN.md ] && echo \"DESIGN_MD: exists\" || echo \"NO_DESIGN_MD\"\n```\n\nNow route based on what was found. Check these cases in order:\n\n### Case A: approved.json exists (design-shotgun ran)\n\nIf `APPROVED` was found, read it. Extract: approved variant PNG path, user feedback,\nscreen name. Also read the CEO plan if one exists (it adds strategic context).\n\nRead `DESIGN.md` if it exists in the repo root. These tokens take priority for\nsystem-level values (fonts, brand colors, spacing scale).\n\nThen check for prior finalized.html. If `FINALIZED` was also found, use AskUserQuestion:\n> Found a prior finalized HTML from a previous session. Want to evolve it\n> (apply new changes on top, preserving your custom edits) or start fresh?\n> A) Evolve — iterate on the existing HTML\n> B) Start fresh — regenerate from the approved mockup\n\nIf evolve: read the existing HTML. Apply changes on top during Step 3.\nIf fresh or no finalized.html: proceed to Step 1 with the approved PNG as the\nvisual reference.\n\n### Case B: CEO plan and/or design variants exist, but no approved.json\n\nIf `CEO_PLAN` or `VARIANTS` was found but no `APPROVED`:\n\nRead whichever context exists:\n- If CEO plan found: read it and summarize the product vision and design requirements.\n- If variant PNGs found: show them inline using the Read tool.\n- If DESIGN.md found: read it for design tokens and constraints.\n\nUse AskUserQuestion:\n> Found [CEO plan from /plan-ceo-review | design review variants from /plan-design-review | both]\n> but no approved design mockup.\n> A) Run /design-shotgun — explore design variants based on the existing plan context\n> B) Skip mockups — I'll design the HTML directly from the plan context\n> C) I have a PNG — let me provide the path\n\nIf A: tell the user to run /design-shotgun, then come back to /design-html.\nIf B: proceed to Step 1 in \"plan-driven mode.\" There is no approved PNG, the plan is\nthe source of truth. Ask the user for a screen name to use for the output directory\n(e.g., \"landing-page\", \"dashboard\", \"pricing\").\nIf C: accept a PNG file path from the user and proceed with that as the reference.\n\n### Case C: Nothing found (clean slate)\n\nIf none of the above produced any context:\n\nUse AskUserQuestion:\n> No design context found for this project. How do you want to start?\n> A) Run /plan-ceo-review first — think through the product strategy before designing\n> B) Run /plan-design-review first — design review with visual mockups\n> C) Run /design-shotgun — jump straight to visual design exploration\n> D) Just describe it — tell me what you want and I'll design the HTML live\n\nIf A, B, or C: tell the user to run that skill, then come back to /design-html.\nIf D: proceed to Step 1 in \"freeform mode.\" Ask the user for a screen name.\n\n### Context summary\n\nAfter routing, output a brief context summary:\n- **Mode:** approved-mockup | plan-driven | freeform | evolve\n- **Visual reference:** path to approved PNG, or \"none (plan-driven)\" or \"none (freeform)\"\n- **CEO plan:** path or \"none\"\n- **Design tokens:** \"DESIGN.md\" or \"none\"\n- **Screen name:** from approved.json, user-provided, or inferred from CEO plan\n\n---\n\n## Step 1: Design Analysis\n\n1. If `$D` is available (`DESIGN_READY`), extract a structured implementation spec:\n```bash\n$D prompt --image <approved-variant.png> --output json\n```\nThis returns colors, typography, layout structure, and component inventory via GPT-4o vision.\n\n2. If `$D` is not available, read the approved PNG inline using the Read tool.\n   Describe the visual layout, colors, typography, and component structure yourself.\n\n3. If in plan-driven or freeform mode (no approved PNG), design from context:\n   - **Plan-driven:** read the CEO plan and/or design review notes. Extract the described\n     UI requirements, user flows, target audience, visual feel (dark/light, dense/spacious),\n     content structure (hero, features, pricing, etc.), and design constraints. Build an\n     implementation spec from the plan's prose rather than a visual reference.\n   - **Freeform:** use AskUserQuestion to gather what the user wants to build. Ask about:\n     purpose/audience, visual feel (dark/light, playful/serious, dense/spacious),\n     content structure (hero, features, pricing, etc.), and any reference sites they like.\n   In both cases, describe the intended visual layout, colors, typography, and\n   component structure as your implementation spec. Generate realistic content based\n   on the plan or user description (never lorem ipsum).\n\n4. Read `DESIGN.md` tokens. These override any extracted values for system-level\n   properties (brand colors, font family, spacing scale).\n\n5. Output an \"Implementation spec\" summary: colors (hex), fonts (family + weights),\n   spacing scale, component list, layout type.\n\n---\n\n## Step 2: Smart Pretext API Routing\n\nAnalyze the approved design and classify it into a Pretext tier. Each tier uses\ndifferent Pretext APIs for optimal results:\n\n| Design type | Pretext APIs | Use case |\n|-------------|-------------|----------|\n| Simple layout (landing, marketing) | `prepare()` + `layout()` | Resize-aware heights |\n| Card/grid (dashboard, listing) | `prepare()` + `layout()` | Self-sizing cards |\n| Chat/messaging UI | `prepareWithSegments()` + `walkLineRanges()` | Tight-fit bubbles, min-width |\n| Content-heavy (editorial, blog) | `prepareWithSegments()` + `layoutNextLine()` | Text around obstacles |\n| Complex editorial | Full engine + `layoutWithLines()` | Manual line rendering |\n\nState the chosen tier and why. Reference the specific Pretext APIs that will be used.\n\n---\n\n## Step 2.5: Framework Detection\n\nCheck if the user's project uses a frontend framework:\n\n```bash\n[ -f package.json ] && cat package.json | grep -o '\"react\"\\|\"svelte\"\\|\"vue\"\\|\"@angular/core\"\\|\"solid-js\"\\|\"preact\"' | head -1 || echo \"NONE\"\n```\n\nIf a framework is detected, use AskUserQuestion:\n> Detected [React/Svelte/Vue] in your project. What format should the output be?\n> A) Vanilla HTML — self-contained preview file (recommended for first pass)\n> B) [React/Svelte/Vue] component — framework-native with Pretext hooks\n\nIf the user chooses framework output, ask one follow-up:\n> A) TypeScript\n> B) JavaScript\n\nFor vanilla HTML: proceed to Step 3 with vanilla output.\nFor framework output: proceed to Step 3 with framework-specific patterns.\nIf no framework detected: default to vanilla HTML, no question needed.\n\n---\n\n## Step 3: Generate Pretext-Native HTML\n\n### Pretext Source Embedding\n\nFor **vanilla HTML output**, check for the vendored Pretext bundle:\n```bash\n_PRETEXT_VENDOR=\"\"\n_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)\n[ -n \"$_ROOT\" ] && [ -f \"$_ROOT/.claude/skills/design-html/vendor/pretext.js\" ] && _PRETEXT_VENDOR=\"$_ROOT/.claude/skills/design-html/vendor/pretext.js\"\n[ -z \"$_PRETEXT_VENDOR\" ] && [ -f ~/.claude/skills/design-html/vendor/pretext.js ] && _PRETEXT_VENDOR=~/.claude/skills/design-html/vendor/pretext.js\n[ -n \"$_PRETEXT_VENDOR\" ] && echo \"VENDOR: $_PRETEXT_VENDOR\" || echo \"VENDOR_MISSING\"\n```\n\n- If `VENDOR` found: read the file and inline it in a `<script>` tag. The HTML file\n  is fully self-contained with zero network dependencies.\n- If `VENDOR_MISSING`: use CDN import as fallback:\n  `<script type=\"module\">import { prepare, layout, prepareWithSegments, walkLineRanges, layoutNextLine, layoutWithLines } from 'https://esm.sh/@chenglou/pretext'</script>`\n  Add a comment: `<!-- FALLBACK: vendor/pretext.js missing, using CDN -->`\n\nFor **framework output**, add to the project's dependencies instead:\n```bash\n# Detect package manager\n[ -f bun.lockb ] && echo \"bun add @chenglou/pretext\" || \\\n[ -f pnpm-lock.yaml ] && echo \"pnpm add @chenglou/pretext\" || \\\n[ -f yarn.lock ] && echo \"yarn add @chenglou/pretext\" || \\\necho \"npm install @chenglou/pretext\"\n```\nRun the detected install command. Then use standard imports in the component.\n\n### HTML Generation\n\nWrite a single file using the Write tool. Save to:\n`~/.vibestack/projects/$SLUG/designs/<screen-name>-YYYYMMDD/finalized.html`\n\nFor framework output, save to:\n`~/.vibestack/projects/$SLUG/designs/<screen-name>-YYYYMMDD/finalized.[tsx|svelte|vue]`\n\n**Always include in vanilla HTML:**\n- Pretext source (inlined or CDN, see above)\n- CSS custom properties for design tokens from DESIGN.md / Step 1 extraction\n- Google Fonts via `<link>` tags + `document.fonts.ready` gate before first `prepare()`\n- Semantic HTML5 (`<header>`, `<nav>`, `<main>`, `<section>`, `<footer>`)\n- Responsive behavior via Pretext relayout (not just media queries)\n- Breakpoint-specific adjustments at 375px, 768px, 1024px, 1440px\n- ARIA attributes, heading hierarchy, focus-visible states\n- `contenteditable` on text elements + MutationObserver to re-prepare + re-layout on edit\n- ResizeObserver on containers to re-layout on resize\n- `prefers-color-scheme` media query for dark mode\n- `prefers-reduced-motion` for animation respect\n- Real content extracted from the mockup (never lorem ipsum)\n\n**Never include (AI slop blacklist):**\n- Purple/blue gradients as default\n- Generic 3-column feature grids\n- Center-everything layouts with no visual hierarchy\n- Decorative blobs, waves, or geometric patterns not in the mockup\n- Stock photo placeholder divs\n- \"Get Started\" / \"Learn More\" generic CTAs not from the mockup\n- Rounded-corner cards with drop shadows as the default component\n- Emoji as visual elements\n- Generic testimonial sections\n- Cookie-cutter hero sections with left-text right-image\n\n### Pretext Wiring Patterns\n\nUse these patterns based on the tier selected in Step 2. These are the correct\nPretext API usage patterns. Follow them exactly.\n\n**Pattern 1: Basic height computation (Simple layout, Card/grid)**\n```js\nimport { prepare, layout } from './pretext-inline.js'\n// Or if inlined: const { prepare, layout } = window.Pretext\n\n// 1. PREPARE — one-time, after fonts load\nawait document.fonts.ready\nconst elements = document.querySelectorAll('[data-pretext]')\nconst prepared = new Map()\n\nfor (const el of elements) {\n  const text = el.textContent\n  const font = getComputedStyle(el).font\n  prepared.set(el, prepare(text, font))\n}\n\n// 2. LAYOUT — cheap, call on every resize\nfunction relayout() {\n  for (const [el, handle] of prepared) {\n    const { height } = layout(handle, el.clientWidth, parseFloat(getComputedStyle(el).lineHeight))\n    el.style.height = `${height}px`\n  }\n}\n\n// 3. RESIZE-AWARE\nnew ResizeObserver(() => relayout()).observe(document.body)\nrelayout()\n\n// 4. CONTENT-EDITABLE — re-prepare when text changes\nfor (const el of elements) {\n  if (el.contentEditable === 'true') {\n    new MutationObserver(() => {\n      const font = getComputedStyle(el).font\n      prepared.set(el, prepare(el.textContent, font))\n      relayout()\n    }).observe(el, { characterData: true, subtree: true, childList: true })\n  }\n}\n```\n\n**Pattern 2: Shrinkwrap / tight-fit containers (Chat bubbles)**\n```js\nimport { prepareWithSegments, walkLineRanges } from './pretext-inline.js'\n\n// Find the tightest width that produces the same line count\nfunction shrinkwrap(text, font, maxWidth, lineHeight) {\n  const segs = prepareWithSegments(text, font)\n  let bestWidth = maxWidth\n  walkLineRanges(segs, maxWidth, (lineCount, startIdx, endIdx) => {\n    // walkLineRanges calls back with progressively narrower widths\n    // The first call gives us the line count at maxWidth\n    // We want the narrowest width that still produces this line count\n  })\n  // Binary search for tightest width with same line count\n  const { lineCount: targetLines } = layout(prepare(text, font), maxWidth, lineHeight)\n  let lo = 0, hi = maxWidth\n  while (hi - lo > 1) {\n    const mid = (lo + hi) / 2\n    const { lineCount } = layout(prepare(text, font), mid, lineHeight)\n    if (lineCount === targetLines) hi = mid\n    else lo = mid\n  }\n  return hi\n}\n```\n\n**Pattern 3: Text around obstacles (Editorial layout)**\n```js\nimport { prepareWithSegments, layoutNextLine } from './pretext-inline.js'\n\nfunction layoutAroundObstacles(text, font, containerWidth, lineHeight, obstacles) {\n  const segs = prepareWithSegments(text, font)\n  let state = null\n  let y = 0\n  const lines = []\n\n  while (true) {\n    // Calculate available width at current y position, accounting for obstacles\n    let availWidth = containerWidth\n    for (const obs of obstacles) {\n      if (y >= obs.top && y < obs.top + obs.height) {\n        availWidth -= obs.width\n      }\n    }\n\n    const result = layoutNextLine(segs, state, availWidth, lineHeight)\n    if (!result) break\n\n    lines.push({ text: result.text, width: result.width, x: 0, y })\n    state = result.state\n    y += lineHeight\n  }\n\n  return { lines, totalHeight: y }\n}\n```\n\n**Pattern 4: Full line-by-line rendering (Complex editorial)**\n```js\nimport { prepareWithSegments, layoutWithLines } from './pretext-inline.js'\n\nconst segs = prepareWithSegments(text, font)\nconst { lines, height } = layoutWithLines(segs, containerWidth, lineHeight)\n\n// lines = [{ text, width, x, y }, ...]\n// Use for Canvas/SVG rendering or custom DOM positioning\nfor (const line of lines) {\n  const span = document.createElement('span')\n  span.textContent = line.text\n  span.style.position = 'absolute'\n  span.style.left = `${line.x}px`\n  span.style.top = `${line.y}px`\n  container.appendChild(span)\n}\n```\n\n### Pretext API Reference\n\n```\nPRETEXT API CHEATSHEET:\n\nprepare(text, font) → handle\n  One-time text measurement. Call after document.fonts.ready.\n  Font: CSS shorthand like '16px Inter' or 'bold 24px Georgia'.\n\nlayout(prepared, maxWidth, lineHeight) → { height, lineCount }\n  Fast layout computation. Call on every resize. Sub-millisecond.\n\nprepareWithSegments(text, font) → handle\n  Like prepare() but enables line-level APIs below.\n\nlayoutWithLines(segs, maxWidth, lineHeight) → { lines: [{text, width, x, y}...], height }\n  Full line-by-line breakdown. For Canvas/SVG rendering.\n\nwalkLineRanges(segs, maxWidth, onLine) → void\n  Calls onLine(lineCount, startIdx, endIdx) for each possible layout.\n  Find minimum width for N lines. For tight-fit containers.\n\nlayoutNextLine(segs, state, maxWidth, lineHeight) → { text, width, state } | null\n  Iterator. Different maxWidth per line = text around obstacles.\n  Pass null as initial state. Returns null when text is exhausted.\n\nclearCache() → void\n  Clears internal measurement caches. Use when cycling many fonts.\n\nsetLocale(locale?) → void\n  Retargets word segmenter for future prepare() calls.\n```\n\n---\n\n## Step 3.5: Live Reload Server\n\nAfter writing the HTML file, start a simple HTTP server for live preview:\n\n```bash\n# Start a simple HTTP server in the output directory\n_OUTPUT_DIR=$(dirname <path-to-finalized.html>)\ncd \"$_OUTPUT_DIR\"\npython3 -m http.server 0 --bind 127.0.0.1 &\n_SERVER_PID=$!\n_PORT=$(lsof -i -P -n | grep \"$_SERVER_PID\" | grep LISTEN | awk '{print $9}' | cut -d: -f2 | head -1)\necho \"SERVER: http://localhost:$_PORT/finalized.html\"\necho \"PID: $_SERVER_PID\"\n```\n\nIf python3 is not available, fall back to:\n```bash\nopen <path-to-finalized.html>\n```\n\nTell the user: \"Live preview running at http://localhost:$_PORT/finalized.html.\nAfter each edit, just refresh the browser (Cmd+R) to see changes.\"\n\nWhen the refinement loop ends (Step 4 exits), kill the server:\n```bash\nkill $_SERVER_PID 2>/dev/null || true\n```\n\n---\n\n## Step 4: Preview + Refinement Loop\n\n### Verification Screenshots\n\nIf `$B` is available (browse binary), take verification screenshots at 3 viewports:\n\n```bash\n$B goto \"file://<path-to-finalized.html>\"\n$B screenshot /tmp/vibestack-verify-mobile.png --width 375\n$B screenshot /tmp/vibestack-verify-tablet.png --width 768\n$B screenshot /tmp/vibestack-verify-desktop.png --width 1440\n```\n\nShow all three screenshots inline using the Read tool. Check for:\n- Text overflow (text cut off or extending beyond containers)\n- Layout collapse (elements overlapping or missing)\n- Responsive breakage (content not adapting to viewport)\n\nIf issues are found, note them and fix before presenting to the user.\n\nIf `$B` is not available, skip verification and note:\n\"Browse binary not available. Skipping automated viewport verification.\"\n\n### Refinement Loop\n\n```\nLOOP:\n  1. If server is running, tell user to open http://localhost:PORT/finalized.html\n     Otherwise: open <path>/finalized.html\n\n  2. If an approved mockup PNG exists, show it inline (Read tool) for visual comparison.\n     If in plan-driven or freeform mode, skip this step.\n\n  3. AskUserQuestion (adjust wording based on mode):\n     With mockup: \"The HTML is live in your browser. Here's the approved mockup for comparison.\n      Try: resize the window (text should reflow dynamically),\n      click any text (it's editable, layout recomputes instantly).\n      What needs to change? Say 'done' when satisfied.\"\n     Without mockup: \"The HTML is live in your browser. Try: resize the window\n      (text should reflow dynamically), click any text (it's editable, layout\n      recomputes instantly). What needs to change? Say 'done' when satisfied.\"\n\n  4. If \"done\" / \"ship it\" / \"looks good\" / \"perfect\" → exit loop, go to Step 5\n\n  5. Apply feedback using targeted Edit tool changes on the HTML file\n     (do NOT regenerate the entire file — surgical edits only)\n\n  6. Brief summary of what changed (2-3 lines max)\n\n  7. If verification screenshots are available, re-take them to confirm the fix\n\n  8. Go to LOOP\n```\n\nMaximum 10 iterations. If the user hasn't said \"done\" after 10, use AskUserQuestion:\n\"We've done 10 rounds of refinement. Want to continue iterating or call it done?\"\n\n---\n\n## Step 5: Save & Next Steps\n\n### Design Token Extraction\n\nIf no `DESIGN.md` exists in the repo root, offer to create one from the generated HTML:\n\nExtract from the HTML:\n- CSS custom properties (colors, spacing, font sizes)\n- Font families and weights used\n- Color palette (primary, secondary, accent, neutral)\n- Spacing scale\n- Border radius values\n- Shadow values\n\nUse AskUserQuestion:\n> No DESIGN.md found. I can extract the design tokens from the HTML we just built\n> and create a DESIGN.md for your project. This means future /design-shotgun and\n> /design-html runs will be style-consistent automatically.\n> A) Create DESIGN.md from these tokens\n> B) Skip — I'll handle the design system later\n\nIf A: write `DESIGN.md` to the repo root with the extracted tokens.\n\n### Save Metadata\n\nWrite `finalized.json` alongside the HTML:\n```json\n{\n  \"source_mockup\": \"<approved variant PNG path or null>\",\n  \"source_plan\": \"<CEO plan path or null>\",\n  \"mode\": \"<approved-mockup|plan-driven|freeform|evolve>\",\n  \"html_file\": \"<path to finalized.html or component file>\",\n  \"pretext_tier\": \"<selected tier>\",\n  \"framework\": \"<vanilla|react|svelte|vue>\",\n  \"iterations\": <number of refinement iterations>,\n  \"date\": \"<ISO 8601>\",\n  \"screen\": \"<screen name>\",\n  \"branch\": \"<current branch>\"\n}\n```\n\n### Next Steps\n\nUse AskUserQuestion:\n> Design finalized with Pretext-native layout. What's next?\n> A) Copy to project — copy the HTML/component into your codebase\n> B) Iterate more — keep refining\n> C) Done — I'll use this as a reference\n\n---\n\n## Important Rules\n\n- **Source of truth fidelity over code elegance.** When an approved mockup exists,\n  pixel-match it. If that requires `width: 312px` instead of a CSS grid class, that's\n  correct. When in plan-driven or freeform mode, the user's feedback during the\n  refinement loop is the source of truth. Code cleanup happens later during\n  component extraction.\n\n- **Always use Pretext for text layout.** Even if the design looks simple, Pretext\n  ensures correct height computation on resize. The overhead is 30KB. Every page benefits.\n\n- **Surgical edits in the refinement loop.** Use the Edit tool to make targeted changes,\n  not the Write tool to regenerate the entire file. The user may have made manual edits\n  via contenteditable that should be preserved.\n\n- **Real content only.** When a mockup exists, extract text from it. In plan-driven mode,\n  use content from the plan. In freeform mode, generate realistic content based on the\n  user's description. Never use \"Lorem ipsum\", \"Your text here\", or placeholder content.\n\n- **One page per invocation.** For multi-page designs, run /design-html once per page.\n  Each run produces one HTML file.","tags":["design","html","vibestack","timurgaleev","agent-skills","ai-agents","claude-code","cursor-ide","developer-tools","kiro","mcp","prompt-engineering"],"capabilities":["skill","source-timurgaleev","skill-design-html","topic-agent-skills","topic-ai-agents","topic-claude-code","topic-cursor-ide","topic-developer-tools","topic-kiro","topic-mcp","topic-prompt-engineering","topic-slash-commands"],"categories":["vibestack"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/timurgaleev/vibestack/design-html","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add timurgaleev/vibestack","source_repo":"https://github.com/timurgaleev/vibestack","install_from":"skills.sh"}},"qualityScore":"0.457","qualityRationale":"deterministic score 0.46 from registry signals: · indexed on github topic:agent-skills · 15 github stars · SKILL.md body (26,661 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:06:20.572Z","embedding":null,"createdAt":"2026-05-18T19:06:20.572Z","updatedAt":"2026-05-18T19:06:20.572Z","lastSeenAt":"2026-05-18T19:06:20.572Z","tsv":"'-1':901,928,954,979,1842,2903 '-3':3228 '/.claude/skills/design-html/vendor/pretext.js':1976,1979 '/.vibestack/bin/vibe-learnings-search':89 '/.vibestack/bin/vibe-slug':44,870 '/.vibestack/projects':895,922,947,973,2064,2072 '/approved.json':924 '/design-html':1275,1425,3360,3642 '/design-shotgun':19,1230,1270,1386,3358 '/dev/null':46,48,72,87,93,872,890,899,917,926,942,952,968,977,1964,2959 '/finalized.html':975,3077 '/learnings.jsonl':59 '/plan-ceo-review':23,1216,1366 '/plan-design-review':28,1221,1377 '/pretext-inline.js':2300,2436,2557,2647 '/projects':56 '/tmp/vibestack-verify-desktop.png':2995 '/tmp/vibestack-verify-mobile.png':2985 '/tmp/vibestack-verify-tablet.png':2990 '/variant-':949 '0':865,2515,2575,2622,2881 '1':168,1141,1281,1431,1497,1500,2099,2288,2308,2521,3064 '10':3250,3260,3266 '1024px':2128 '127.0.0.1':2883 '1440':2997 '1440px':2129 '16px':2716 '2':45,47,71,86,92,208,871,889,898,916,925,941,951,967,976,1532,1718,1963,2275,2346,2423,2526,2958,3078,3227 '2.5':1813 '24px':2720 '3':240,1132,1557,1905,1915,1933,2196,2373,2546,2978,3104 '3.5':2845 '30kb':3549 '312px':3489 '375':2987 '375px':2126 '4':1680,2383,2633,2949,2962,3186 '44px':795 '4o':1530 '5':85,91,1700,3199,3200,3279 '6':3221 '60':316 '7':3231 '768':2992 '768px':2127 '8':3245 '9':2898 'absolut':2685 'accent':3322 'accept':1320 'accid':363 'accomplish':359 'account':2587 'across':442 'actual':37,137,284 'adapt':3028 'add':1042,2001,2007,2022,2028,2034 'addit':551 'adjust':2124,3106 'afford':777 'ai':2188 'alongsid':3399 'also':1033,1076 'alway':586,2078,3527 'analysi':1499 'analyz':1723 'and/or':1154,1579 'angular/core':1836 'anim':233,2175 'answer':587 'api':1721,1739,1746,1807,2281,2695,2698,2749 'apolog':751 'appear':716 'appli':154,760,1093,1126,3201 'approv':16,919,930,932,933,936,1019,1025,1118,1144,1170,1225,1290,1453,1464,1540,1567,1725,3081,3123,3409,3478 'approved-mockup':1452,3408 'approved.json':1012,1160,1487 'ar':40 'area':301 'aria':2130 'around':1787,2548,2810 'ask':699,1299,1435,1630,1890 'askuserquest':1079,1211,1350,1621,1851,3105,3262,3332,3432 'assumpt':485 'attent':534 'attribut':2131 'audienc':1591 'autom':3058 'automat':3367 'avail':115,119,844,848,1504,1537,2581,2916,2971,3048,3056,3236 'availwidth':2591,2604,2611 'await':2316 'awar':1757,2376 'away':801,824 'awk':2896 'b':851,1112,1151,1240,1277,1375,1411,1875,1897,2969,2981,2983,2988,2993,3045,3374,3453 'back':126,1273,1423,2469,2918 'bad':380 'base':130,1000,1234,1670,2268,3108,3616 'bash':42,104,833,868,885,912,937,963,1512,1826,1952,2014,2862,2920,2954,2980 'basic':2289 'beat':219 'behav':138,285 'behavior':151,2113 'benefit':3552 'best':334 'bestwidth':2459 'better':436 'beyond':3016 'big':793 'billboard':312,406 'binari':2495,2973,3054 'bind':2882 'blacklist':2190 'blob':2209 'blog':1783 'bold':2719 'border':3326 'branch':3428 'brand':1064,1694 'breadcrumb':621 'break':2615 'breakag':3025 'breakdown':2766 'breakpoint':2122 'breakpoint-specif':2121 'brief':396,1448,3222 'brochur':320 'brows':839,842,846,2972,3053 'browser':2937,3119,3160 'bubbl':1775,2430 'build':1605,1629 'built':3347 'bullet':304 'bun':2021 'bun.lockb':2019 'bundl':1951 'c':1253,1319,1336,1384,1413,3458 'cach':2828 'calcul':2580 'call':2349,2468,2476,2709,2731,2775,2843,3275 'canvas/svg':2667,2768 'card':1767,2235 'card/grid':1759,2294 'case':1007,1010,1150,1335,1652,1748 'cat':1829 'cd':2875 'cdn':2087 'center':2201 'center-everyth':2200 'ceo':20,892,903,905,907,910,1036,1152,1162,1176,1213,1474,1494,1577 'chang':1095,1127,2392,2942,3147,3181,3207,3226,3566 'characterdata':2416 'chat':2429 'chat/messaging':1768 'cheap':2348 'cheatsheet':2699 'check':863,884,1005,1069,1816,1946,3007 'chenglou/pretext':2023,2029,2035,2039 'childlist':2420 'choic':232,338,342 'choos':565,1887 'chosen':1799 'clariti':552,566 'class':3495 'classifi':1728 'clean':1339 'cleanup':3521 'clear':299,2825 'clearcach':2823 'clearer':559 'clever':428 'click':190,209,218,221,3135,3169 'clickabl':495,498,522 'close':816 'clutter':545 'cmd':2938 'code':3474,3520 'codebas':3452 'collaps':3019 'color':518,1065,1520,1551,1658,1695,1706,2163,3309,3318 'column':2197 'come':1272,1422 'command':852,2044 'comment':2003 'comparison':3092,3126 'complex':1789,2640 'compon':1525,1554,1661,1713,1877,2051,2242,3525 'comput':2291,2730,3543 'confirm':3242 'congratulatori':267 'consist':554,3366 'const':2304,2318,2324,2329,2333,2336,2356,2361,2394,2403,2453,2504,2522,2527,2565,2576,2594,2606,2648,2653,2674,2678 'constraint':1209,1604 'contact':684 'contain':471,1868,2154,2428,2794,3017 'container.appendchild':2692 'containerwidth':2562,2592,2658 'content':457,1596,1638,1669,1780,2178,2385,3026,3590,3606,3615,3631 'content-edit':2384 'content-heavi':1779 'contentedit':2138,3584 'context':26,876,1044,1173,1239,1252,1348,1353,1442,1449,1571 'continu':3272 'convent':411,440,447 'cooki':2251 'cookie-cutt':2250 'copi':3444,3447 'corner':2234 'correct':2279,3498,3541 'count':66,78,83,2446,2481,2494,2503 'cover':632 'creat':3296,3349,3369 'css':2090,2713,3306,3493 'ctas':2227 'cultur':445 'curl':859 'current':625,2584 'cursor':782 'custom':1100,2091,2670,3307 'cut':2899,3012 'cutter':2252 'cycl':2831 'd':74,1393,1427,1502,1513,1534,2900 'daemon':111,840 'dark':2168 'dark/light':1594,1635 'dashboard':1316,1760 'data':2322 'data-pretext':2321 'date':3426 'decis':162 'decor':2208 'deep':623 'default':1925,2194,2241 'defin':300 'dense/spacious':1595,1637 'depend':2012 'deplet':675,677 'describ':1395,1547,1585,1653 'descript':35,1676,3621 'design':2,4,24,102,110,113,117,131,161,197,279,292,311,407,798,875,991,996,1015,1155,1187,1206,1217,1226,1232,1245,1352,1374,1379,1391,1405,1479,1498,1505,1569,1580,1603,1726,1743,2094,3283,3340,3380,3433,3536,3640 'design-html':1 'design-shotgun':1014 'design.md':989,1046,1201,1481,1682,2097,3288,3334,3351,3370,3386 'detect':867,873,1815,1849,1852,1924,2015,2042 'die':270,273 'differ':1737,2805 'dir':2873,2877 'direct':581,861,1248 'directori':1311,2871 'dirnam':2874 'discov':788 'discover':505 'disorgan':540 'div':2221 'dive':391 'document.body':2381 'document.createelement':2680 'document.fonts.ready':2105,2317,2711 'document.queryselectorall':2320 'doesn':511 'dom':2671 'done':3149,3183,3188,3258,3265,3277,3459 'doubt':750 'driven':1285,1457,1470,1562,1574,3097,3413,3503,3603 'drop':2237 'dynam':3134,3168 'e.g':1312 'easi':743 'echo':75,97,112,841,904,908,931,934,957,960,982,985,990,994,1843,1983,1987,2020,2026,2032,2036,2904,2908 'edit':1101,2151,2386,2933,3140,3174,3205,3219,3554,3561,3582 'editori':1782,1790,2550,2641 'el':2330,2339,2342,2357,2368,2395,2406,2409,2415 'el.clientwidth':2365 'el.contenteditable':2399 'el.style.height':2370 'el.textcontent':2335,2411 'eleg':3475 'element':2141,2246,2319,2332,2397,3020 'elimin':525 'els':96,820,2540 'embed':1941 'emoji':2243 'enabl':2745 'end':2947 'endidx':2466,2779 'engin':1792 'enough':794 'ensur':3540 'entir':3216,3574 'entri':79 'error':747 'especi':506 'estat':767 'etc':1601,1643 'eval':43,869 'even':441,3533 'everi':160,174,567,619,672,2351,2733,3550 'everyth':461,477,486,633,819,2202 'evid':180,202 'evolv':1091,1106,1121,1459,3415 'exact':2286 'except':634 'exhaust':2822 'exist':513,877,993,1013,1040,1049,1110,1124,1157,1174,1237,3084,3289,3480,3595 'exit':2950,3194 'explan':207 'explanatori':205 'explor':1231,1392 'extend':3015 'extract':1024,1507,1583,1687,2100,2179,3285,3302,3338,3393,3526,3596 'f':61,988,1827,1967,1975,2018,2024,2030 'f2':2901 'fail':199,281,661 'fall':125,2917 'fallback':858 'famili':1697,1709,3314 'fast':2728 'faster':678 'featur':1599,1641,2198 'feedback':1030,3202,3510 'feel':228,1593,1634 'fi':95,101 'fidel':3472 'figur':349 'file':52,63,70,1323,1870,1995,2057,2853,3211,3217,3417,3575,3651 'final':5,970,981,983,984,987,1074,1083,3434 'finalized.html':1072,1137 'finalized.json':3398 'find':373,2437,2784 'first':329,1367,1378,1873,2108,2475 'fit':1774,2427,2793 'fix':546,3038,3244 'flat':797 'flow':1589 'focus':2135 'focus-vis':2134 'follow':1893,2284 'follow-up':1892 'font':1063,1696,1708,2102,2314,2337,2340,2345,2404,2407,2412,2450,2457,2510,2532,2561,2569,2652,2702,2712,2740,2833,3311,3313 'forc':710 'format':517,694,1858 'found':1004,1021,1077,1080,1167,1178,1192,1202,1212,1338,1354,1992,3034,3335 'four':883 'framework':1814,1825,1847,1879,1888,1910,1918,1923,2005,2068,3420 'framework-n':1878 'framework-specif':1917 'freeform':1433,1458,1473,1564,1619,3099,3414,3505,3611 'fresh':1104,1114,1134 'friction':673 'frontend':1824 'full':1791,2634,2761 'function':2353,2447,2558 'futur':2841,3357 'gate':2106 'gather':1623 'generat':6,123,1667,1934,2053,3300,3613 'generic':2195,2226,2247 'geometr':2212 'georgia':2721 'get':245,255,830,2222 'getcomputedstyl':2338,2367,2405 'git':1956 'give':2477 'glass':420 'go':313,815,3196,3246 'goal':361 'good':3192 'goodwil':663,671 'googl':2101 'goto':2982 'govern':141 'gpt':1529 'gpt-4o':1528 'gradient':2192 'grep':1831,2891,2894 'grid':2199,3494 'group':466 'gt':84 'guidanc':393 'guilti':490 'half':248,258 'hand':818 'handl':2358,2364,2703,2741,3378 'happen':3522 'happi':263 'hasn':3255 'head':302,900,927,953,978,1841,2132,2902 'heard':481 'heavi':1781 'height':39,1758,2290,2362,2371,2655,2726,2760,3542 'hero':1598,1640,2253 'hex':1707 'hi':2516,2519,2525,2538,2544 'hide':679 'hierarchi':296,459,624,2133,2207 'higher':755 'highlight':306 'home':54 'home/.vibestack':55 'hook':1883 'hover':502,510,786 'hover-to-discov':785 'html':3,1084,1111,1125,1247,1407,1865,1901,1928,1938,1944,2052,2082,2852,3114,3155,3210,3301,3305,3344,3401,3416,3650 'html/component':3449 'html/css':13 'html5':2111 'http':862,2857,2866 'http.server':2880 'human':144 'hurri':814 'idea':437 'identifi':450 'imag':1515,2261 'implement':1510,1607,1665,1703 'import':298,473,2048,2296,2432,2553,2643,3467 'includ':108,837,2079,2187 'inconsist':564 'indic':628 'infer':1492 'info':680 'inform':702,804 'initi':2815 'inlin':1195,1542,1997,2085,2303,3002,3087 'innoc':493 'innov':423,429 'input':866 'instal':2038,2043 'instant':3143,3177 'instead':2013,3490 'instruct':271,389 'intend':1655 'inter':2717 'interact':145,524,807 'interfac':147,409 'intern':2826 'interstiti':712 'inventori':1526 'invoc':3635 'ipsum':1679,2185,3625 'issu':3032 'iter':1107,2804,3251,3273,3425,3454 'javascript':1898 'js':1839,2295,2431,2552,2642 'json':1517,3402 'jump':1387 'keep':3456 'key':307 'kill':2951,2955 'know':432,640,718,734 'l':68 'land':1314,1751 'landing-pag':1313 'languag':443 'later':3382,3523 'law':165 'layout':1522,1550,1657,1715,1750,1754,1763,2149,2158,2203,2293,2298,2306,2347,2363,2507,2529,2551,2722,2729,2783,3018,3141,3175,3439,3532 'layoutaroundobstacl':2559 'layoutnextlin':1785,2555,2608,2795 'layoutwithlin':1793,2645,2656,2751 'learn':51,62,65,69,76,77,82,98,2224 'left':262,415,2257 'left-text':2256 'let':448,1258,2458,2513,2570,2573,2590 'level':608,1061,1692,2748 'like':229,1649,2715,2742 'limit':90 'line':1795,2445,2480,2493,2502,2577,2629,2636,2638,2654,2660,2675,2677,2747,2755,2763,2765,2789,2808,3229 'line-by-lin':2635,2762 'line-level':2746 'line.text':2683 'line.x':2687 'line.y':2690 'linecount':2464,2505,2528,2536,2727,2777 'lineheight':2369,2452,2512,2534,2563,2612,2627,2659,2725,2754,2799 'lines.push':2616 'list':305,1714,1761 'listen':2895 'live':1408,2846,2860,2925,3116,3157 'll':1244,1404,3377,3461 'lo':2514,2520,2524,2541 'load':80,2315 'local':2835 'localhost':2906,2929,3073 'locat':515,583 'logic':539 'logo':412,452 'look':3191,3537 'loop':2946,2965,3062,3063,3195,3248,3514,3558 'lorem':1678,2184,3624 'ls':893,920,945,971 'lsof':2887 'm':2879 'made':3580 'magnifi':419 'main':456 'major':600,653 'make':171,335,494,556,561,725,741,3564 'manag':2017 'mani':530,2832 'manual':1794,3581 'map':2327 'market':1752 'match':3483 'matter':212,378 'max':3230 'maximum':3249 'maxwidth':2451,2460,2463,2483,2511,2517,2724,2753,2772,2798,2806 'may':3578 'md':897,992,997 'mean':195,783,3356 'measur':2708,2827 'media':2119,2165 'metadata':3396 'mid':2523,2533,2539,2542 'millisecond':2737 'min':1777 'min-width':1776 'mindless':216 'miner':236 'minimum':796,2785 'miss':1989,3023 'mobil':508,752,762 'mockup':17,122,1119,1227,1242,1383,1454,2182,2217,2231,3082,3112,3124,3153,3404,3410,3479,3594 'mode':1286,1434,1451,1565,2169,3100,3110,3407,3506,3604,3612 'motion':2173 'mph':317 'much':543 'muddl':344 'multi':3638 'multi-pag':3637 'must':269,272,394,520,585,778,791 'mutationobserv':2142,2402 'n':902,929,955,980,1965,1980,2788,2890 'name':1032,1305,1441,1485 'narrow':2472 'narrowest':2487 'nativ':12,1880,1937,3438 'nav':416,453 'navig':425,569,584,617,636,659 'need':276,811,1931,3145,3179 'nest':467 'neutral':3323 'never':771,1677,2183,2186,3622 'new':1094,2326,2377,2401 'next':3281,3429,3442 'nois':489,526,547 'nomatch':888,915,940,966 'none':99,1342,1467,1472,1478,1483,1844 'note':1582,3035,3052 'noth':479,1337 'npm':2037 'null':2572,2803,2813,2818 'number':698 'o':887,914,939,965,1832 'ob':2595 'obs.height':2603 'obs.top':2600,2602 'obs.width':2605 'observ':150,2380,2414 'obstacl':1788,2549,2564,2589,2597,2811 'obvious':231,497,727,827 'offer':3294 'omit':241,243 'one':220,1039,1891,2311,2705,3297,3632,3649 'one-tim':2310,2704 'onlin':2773,2776 'open':860,2921,3072,3076 'optim':1741 'option':331,605 'order':1009 'organ':538 'otherwis':438,3075 'output':1310,1446,1516,1701,1861,1889,1908,1911,1945,2006,2069,2870,2872,2876 'overflow':3010 'overhead':3547 'overlap':3021 'overrid':1685 'p':2889 'packag':2016 'package.json':1828,1830 'page':175,253,593,620,646,1315,3551,3633,3639,3645 'palett':3319 'pars':1959 'parsefloat':2366 'pass':1874,2812 'path':828,1028,1262,1324,1462,1476 'pattern':1920,2213,2264,2267,2283,2287,2422,2545,2632 'peopl':321,449 'per':2807,3634,3644 'perfect':3193 'persist':616 'phone':697 'photo':2219 'pick':327 'pid':2885,2893,2909,2911,2957 'pixel':3482 'pixel-match':3481 'placehold':2220,3630 'plan':21,906,911,1037,1153,1163,1177,1214,1238,1251,1284,1293,1456,1469,1475,1495,1561,1573,1578,1611,1673,3096,3406,3412,3502,3602,3609 'plan-driven':1283,1455,1468,1560,1572,3095,3411,3501,3601 'playful/serious':1636 'png':950,1027,1145,1257,1291,1322,1465,1541,1568,3083 'pngs':1191 'pnpm':2027 'pnpm-lock.yaml':2025 'point':674 'port':2886 'port/finalized.html':2907,2930,3074 'posit':2586,2672 'possibl':740,2782 'preact':1840 'preambl':41 'prefer':153,2162,2171 'prefers-color-schem':2161 'prefers-reduced-mot':2170 'prepar':1753,1762,2109,2146,2297,2305,2309,2325,2343,2360,2389,2410,2508,2530,2700,2723,2743,2842 'prepared.set':2341,2408 'preparewithseg':1770,1784,2433,2455,2554,2567,2644,2650,2738 'present':3040 'preserv':1098,3588 'pretext':11,1720,1732,1738,1745,1806,1882,1936,1939,1950,1953,1969,1973,1977,1981,1985,2083,2115,2262,2280,2323,2694,2697,3418,3437,3529,3539 'pretext-n':10,1935,3436 'preview':1869,2861,2926,2963 'previous':1087 'price':683,1317,1600,1642 'primari':3320 'principl':134,140 'print':2897 'prior':1071,1082 'priorit':808 'prioriti':1057 'proceed':1138,1278,1329,1428,1902,1912 'produc':1346,2442,2491,3648 'product':8,319,1184,1371 'production-qu':7 'progress':2471 'project':880,1357,1821,1856,2010,3354,3446 'promin':297,475 'prompt':1514 'properti':1693,2092,3308 'prose':1613 'proven':492 'provid':1260,1490 'punish':686 'purple/blue':2191 'purpose/audience':1632 'put':703 'puzzl':239 'px':2372,2688,2691 'python3':2878,2913 'qualiti':9 'queri':2120,2166 'question':1930 'r':2939 'radius':3327 'ran':1017 'rather':1614 're':310,648,2145,2148,2157,2388,3238 're-layout':2147,2156 're-prepar':2144,2387 're-tak':3237 'react':1833,3422 'react/svelte/vue':1853,1876 'read':277,291,388,1022,1034,1045,1122,1171,1179,1198,1203,1538,1545,1575,1681,1993,3005,3088 'readi':1506 'real':143,766,2177,3589 'realist':1668,3614 'reason':330 'recommend':1871 'recomput':3142,3176 'recov':745 'reduc':2172 'refer':1149,1334,1461,1618,1646,1803,2696,3466 'refin':2945,2964,3061,3269,3457,3513,3557 'reflow':38,3133,3167 'refresh':2935 'regener':1115,3214,3572 'relat':462 'relayout':2116,2354,2379,2382,2413 'reli':500 'reload':2847 'remov':549 'render':1796,2639,2668,2769 'replenish':717 'repo':1052,3292,3389 'requir':206,223,560,695,1188,1587,3487 'reservoir':664,669 'resiz':1756,2160,2352,2375,2734,3128,3162,3545 'resize-awar':1755,2374 'resizeobserv':2152,2378 'respect':2176 'respons':2112,3024 'result':1742,2607,2614 'result.state':2625 'result.text':2618 'result.width':2620 'retarget':2837 'return':1519,2543,2628,2817 'rev':1958 'rev-pars':1957 'review':25,132,1218,1380,1581 'rid':246,256 'right':337,369,2260 'right-imag':2259 'root':1053,1955,1966,3293,3390 'root/.claude/skills/design-html/vendor/pretext.js':1968,1971 'round':2233,3267 'rounded-corn':2232 'rout':999,1445,1722 'rule':754,3468 'run':881,1229,1269,1365,1376,1385,1418,2040,2927,3068,3361,3641,3647 'ruthless':809 'sacrific':772 'said':3257 'satisfi':3151,3185 'satisfic':325 'save':736,776,2062,2070,3280,3395 'say':3148,3182 'scale':580,1067,1699,1712,3325 'scan':287,294 'scarc':769 'scheme':2164 'scratch':31 'screen':709,1031,1304,1440,1484,3427 'screenshot':2967,2976,2984,2989,2994,3001,3234 'search':418,454,615,2496 'secondari':3321 'section':601,626,654,2249,2254 'see':2088,2941 'seek':367 'seen':405 'seg':2454,2462,2566,2609,2649,2657,2752,2771,2796 'segment':2839 'select':2272 'self':179,201,204,266,1765,1867 'self-congratulatori':265 'self-contain':1866 'self-evid':178,200 'self-explanatori':203 'self-siz':1764 'semant':2110 'sens':578 'server':2848,2858,2867,2884,2892,2905,2910,2953,2956,3066 'session':1088 'setlocal':2834 'setopt':886,913,938,964 'setup':103,832 'shadow':2238,3329 'shape':514 'ship':685,3189 'shorthand':2714 'shotgun':1016 'shout':478,532,535 'show':1193,1961,2998,3085 'show-toplevel':1960 'shrinkwrap':2424,2448 'signal':521,806 'signific':558 'simpl':1749,2292,2856,2865,3538 'singl':2056 'site':589,642,1647 'size':1766,3312 'sizzl':704 'skill':1420 'skill-design-html' 'skip':120,849,1241,3049,3057,3101,3375 'slate':1340 'slight':563 'slop':2189 'sloppi':715 'slug':49,57 'slug/ceo-plans':896 'slug/designs':923,948,974,2065,2073 'smart':1719 'solid':1838 'solid-j':1837 'someth':374,557 'sourc':528,1296,1940,2084,3403,3405,3469,3517 'source-timurgaleev' 'space':775,1066,1698,1711,3310,3324 'span':2679,2681,2693 'span.style.left':2686 'span.style.position':2684 'span.style.top':2689 'span.textcontent':2682 'spec':1511,1608,1666,1704 'specif':1805,1919,2123 'splash':708 'stake':756 'standard':2047 'start':482,666,1103,1113,1363,2223,2854,2863 'startidx':2465,2778 'state':503,1797,2137,2571,2610,2624,2797,2802,2816 'step':226,738,864,1131,1140,1280,1430,1496,1717,1812,1904,1914,1932,2098,2274,2844,2948,2961,3103,3198,3278,3282,3430 'stick':382 'still':639,2490 'stock':2218 'stop':184 'straight':1388 'strateg':1043 'strategi':1372 'strip':800 'structur':1509,1523,1555,1597,1639,1662 'studi':323 'stuff':544 'style':3365 'style-consist':3364 'sub':2736 'sub-millisecond':2735 'subtre':2418 'summar':1182 'summari':1443,1450,1705,3223 'surgic':3218,3553 'svelt':1834,2076,3423 'system':1060,1691,3381 'system-level':1059,1690 'tag':2104 'take':1056,2974,3239 'talk':264 'tap':823 'target':790,1590,3204,3565 'targetlin':2506,2537 'tell':728,1265,1397,1414,2922,3069 'term':308 'test':631 'testimoni':2248 'text':36,129,268,856,1786,2140,2258,2334,2344,2391,2449,2456,2509,2531,2547,2560,2568,2617,2651,2661,2701,2707,2739,2756,2800,2809,2820,3009,3011,3131,3137,3165,3171,3531,3597,3627 'text-bas':128 'text-on':855 'thing':352,463,468,496,531,536,691,810 'think':173,186,213,1368 'thought':224 'three':164,215,527,3000 'tier':1733,1735,1800,2271,3419 'tight':1773,2426,2792 'tight-fit':1772,2425,2791 'tightest':2439,2498 'time':397,568,2312,2706 'token':1055,1207,1480,1683,2095,3284,3341,3373,3394 'tool':1199,1546,2061,3006,3089,3206,3562,3570 'top':414,1097,1129 'top-left':413 'top/left':417 'topic-agent-skills' 'topic-ai-agents' 'topic-claude-code' 'topic-cursor-ide' 'topic-developer-tools' 'topic-kiro' 'topic-mcp' 'topic-prompt-engineering' 'topic-slash-commands' 'toplevel':1962 'totalheight':2630 'touch':789 'tour':711 'tr':73 'tri':3127,3161 'true':94,891,918,943,969,2400,2417,2419,2421,2579,2960 'trump':553 'trunk':630 'truth':1298,3471,3519 'tsx':2075 'type':1716,1744 'typescript':1896 'typographi':1521,1552,1659 'ui':1586,1769 'unambigu':217 'unavoid':399 'underlin':519 'unknown':50,58 'unnecessari':701 'unprofession':713 'upfront':735 'us':2478 'usabl':167,773 'usag':2282 'use':410,439,802,854,1078,1196,1210,1307,1349,1543,1620,1736,1747,1811,1822,1850,2046,2058,2265,2665,2829,3003,3203,3261,3317,3331,3431,3462,3528,3559,3605,3623 'user':34,136,183,283,286,324,343,385,572,665,681,687,720,1029,1267,1301,1327,1416,1437,1489,1588,1626,1675,1819,1886,2924,3043,3070,3254,3508,3577,3619 'user-provid':1488 'ux':133 'valu':1062,1688,3328,3330 'vanilla':1864,1900,1907,1927,1943,2081,3421 'variant':944,956,958,959,962,1026,1156,1165,1190,1219,1233 've':3264 'veget':234 'vendor':1949,1954,1970,1974,1978,1982,1984,1986,1988,1991 'verif':2966,2975,3050,3060,3233 'via':1527,2103,2114,3583 'vibestack':53,105,834 'viewport':2979,3030,3059 'visibl':341,780,2136 'vision':1185,1531 'visual':121,295,458,465,470,488,627,803,1148,1382,1390,1460,1549,1592,1617,1633,1656,2206,2245,3091 'void':2774,2824,2836 'vue':1835,2077,3424 'walklinerang':1771,2434,2461,2467,2770 'want':682,721,732,1089,1361,1401,1627,2485,3270 'wave':2210 'way':370,693,707 'wayfind':571 'wc':67 'web':446,575 'weight':1710,3316 'wherev':739 'whichev':1172 'width':1778,2440,2473,2488,2499,2582,2619,2662,2757,2786,2801,2986,2991,2996,3488 'window':3130,3164 'window.pretext':2307 'wing':355 'wire':2263 'without':523,3152 'won':365,402 'word':250,2838,3107 'work':14,353,376 'write':2054,2060,2850,3385,3397,3569 'x':2621,2663,2758 'y':2574,2585,2599,2601,2623,2626,2631,2664,2759 'yarn':2033 'yarn.lock':2031 'yet':100 'yyyymmdd/finalized':2074 'yyyymmdd/finalized.html':2066 'z':1972","prices":[{"id":"e08d3b14-79e8-4126-923b-80034efb11a8","listingId":"8ad99bd0-bcdc-4c6c-860b-6069a6e0ab78","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"timurgaleev","category":"vibestack","install_from":"skills.sh"},"createdAt":"2026-05-18T19:06:20.572Z"}],"sources":[{"listingId":"8ad99bd0-bcdc-4c6c-860b-6069a6e0ab78","source":"github","sourceId":"timurgaleev/vibestack/design-html","sourceUrl":"https://github.com/timurgaleev/vibestack/tree/main/skills/design-html","isPrimary":false,"firstSeenAt":"2026-05-18T19:06:20.572Z","lastSeenAt":"2026-05-18T19:06:20.572Z"}],"details":{"listingId":"8ad99bd0-bcdc-4c6c-860b-6069a6e0ab78","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"timurgaleev","slug":"design-html","github":{"repo":"timurgaleev/vibestack","stars":15,"topics":["agent-skills","ai-agents","claude-code","cursor-ide","developer-tools","kiro","mcp","prompt-engineering","slash-commands"],"license":"mit","html_url":"https://github.com/timurgaleev/vibestack","pushed_at":"2026-05-18T18:19:05Z","description":"vibestack is a portable skill pack for AI coding agents. Slash commands like /office-hours, /ship, /investigate, /tdd, /review install once and work across every agent that supports the Agent Skills open standard — Claude Code, Cursor, Kiro, and a growing list of others. ","skill_md_sha":"372b5ad4a1276721d77e4c5b78f5370d1072902d","skill_md_path":"skills/design-html/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/timurgaleev/vibestack/tree/main/skills/design-html"},"layout":"multi","source":"github","category":"vibestack","frontmatter":{"name":"design-html","description":"Design finalization: generates production-quality Pretext-native HTML/CSS.\nWorks with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review,\ndesign review context from /plan-design-review, or from scratch with a user\ndescription. Text actually reflows, heights are computed, layouts are dynamic.\n30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns\nfor each design type. Use when: \"finalize this design\", \"turn this into HTML\",\n\"build me a page\", \"implement this design\", or after any planning skill.\nProactively suggest when user has approved a design or has a plan ready.\nVoice triggers (speech-to-text aliases): \"build the design\", \"code the mockup\", \"make it real\"."},"skills_sh_url":"https://skills.sh/timurgaleev/vibestack/design-html"},"updatedAt":"2026-05-18T19:06:20.572Z"}}