/design-intent:prototype runs instead · from design-intent
Generates 3 visually distinct HTML/CSS UI components from a text prompt and serves them in a live browser gallery. Helps explore multiple design directions quickly.
This skill never runs in Claude Code
It ships in design-intent at skills/, but /design-intent:prototype (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Generate 3 visually distinct, high-fidelity HTML/CSS UI components from a single text prompt, then serve them in a live browser gallery so the user can click through and pick a favorite. Each component adopts a unique design persona based on physical/material metaphors — producing genuinely different visual approaches, not just color swaps.
Parse $ARGUMENTS for the component description, optional --vary N flag, optional --dir <path>, and optional --continue flag.
--continue is present, skip to Next-Turn Pick Capture.--vary N is present, skip to the Variation Workflow.If the description is vague ("button", "form"), just generate. The value is speed. Interpret generously.
Think of 3 distinct design direction names using physical/material metaphors. Pattern: [Adjective] + [Material/Process] + [Form/Action].
Each metaphor should imply different CSS techniques — not just colors. See the materiality-to-CSS mapping in WORKFLOW.md.
Examples (invent your own):
feTurbulence grain, mix-blend-mode: multiply)backdrop-filter, caustic refraction)For each style, generate a complete, self-contained <!DOCTYPE html> page (100-300 lines):
<link>, pair a bold sans with a refined monospaceOutput: raw HTML (no markdown fences), with inline <style> and Google Fonts <link>.
Start an arkhe-preview live session (from the devtools plugin) and write the artifacts into the session's content/. The server serves the gallery fragment, watches for changes, and logs the user's variant pick to events.jsonl.
PLUGIN_ROOT=$(dirname "$(dirname "$(which arkhe-preview)")")
EX="$PLUGIN_ROOT/skills/browser-companion/examples/gallery"
arkhe-preview start \
--project-dir "$DIR" \
--frame-template "$EX/frame-template.html" \
--helper "$EX/helper.js"
$DIR defaults to .prototype/, or the value of --dir.url, screen_dir, state_dir, session_dir.$screen_dir:
01-{prompt-slug}-{style1-slug}.html02-...03-...$DIR/manifest.json (top-level pointer used by --vary / --continue). See WORKFLOW.md for the schema.99-gallery.html LAST into $screen_dir so it has the newest mtime and is served at GET /. Template + inline swap-on-click JS in WORKFLOW.md.The user clicks a variant in the sidebar; the iframe canvas swaps; the gallery helper.js logs the click to events.jsonl (no agent involvement needed during the click).
This skill follows a turn-based loop, not realtime polling. After Phase 3 ends, the user picks at their leisure. Read their pick when they next reply.
Two paths to the pick:
Explicit (/prototype --continue): read $DIR/manifest.json, then read manifest.state_dir/events.jsonl. Find the most recent event with action === "select-variant". Report the chosen position + style, and offer next steps (/prototype --vary N to iterate; /design-intent ... to implement).
Implicit (next user message): if the previous turn ran /prototype and the user's next message is conversational ("ok", "I like the second one", "what did I pick?"), check whether manifest.json exists in the most recent prototype dir (default .prototype/); if so, read events.jsonl and merge the structured pick with the user's text before responding.
If events.jsonl doesn't exist or has no select-variant events, the user didn't click — fall back to their terminal text only.
See WORKFLOW.md for the event schema and the resolution steps.
When --vary N is passed (N = 1, 2, or 3):
arkhe-preview status <manifest.session_dir>. If the server is dead (owner-pid watchdog or 30-min idle), restart it with the same --project-dir and copy existing artifacts into the new screen_dir before continuing. See WORKFLOW.md for the restart recipe.$DIR/manifest.json to find the Nth artifact (artifacts[N-1].abs_path or .file inside screen_dir).$screen_dir as {original-slug}-var-1.html, -var-2.html, -var-3.html.99-gallery.html to show the variations (or write 99-gallery-vary.html LAST). Update manifest.json with a variations array.See WORKFLOW.md for the full variation workflow.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin design-intent4 skills in this plugin
/design-intent-specialistCreates accurate frontend implementations from visual references while maintaining design consistency. Use when user provides Figma URLs, screenshots, design images, requests visual implementation from reference, or asks to build UI matching a design. Automatically checks existing design intent patterns before implementation./icon-forgeGenerate brand icons as SVG and produce all platform assets including favicon package (ICO, SVG with dark mode, apple-touch-icon), PWA manifest icons, and mobile app icons. Use when user runs /icon-forge, requests "brand icon", "favicon generation", "app icon", or "svg logo" for a project./stitch-to-reactConverts Google Stitch exports into React components with design DNA integration. Use when user references design-intent/google-stitch exports, mentions "convert Stitch output", "Stitch to React", or processes Stitch code directories containing HTML + PNG pairs.Other plugins' skills for the same job