UX Experimental
UX prototyping and style research — scaffold SvelteKit prototypes, create lightweight wireframe explorations, and synthesize visual styles from live sites.
Installation
Claude Code:
npx skills add cloudvoyant/codevoyantOpenCode / VS Code Copilot: See the installation guide.
Typical Workflows
Prototype a new product feature
/ux prototype "admin dashboard"Scaffolds a full SvelteKit + Tailwind + shadcn-svelte prototype with feature-slice architecture, fake data, and a responsive layout. Works in-repo (single package or pnpm workspace) or out-of-repo in .codevoyant/[project]/prototypes/[name]/.
Explore layout ideas before committing
/ux explore "onboarding flow" # single HTML wireframe
/ux explore "sidebar vs top nav" --slideshow # compare approaches side-by-sideOutputs a self-contained .html file — no build step, opens directly in a browser.
Extract a site's visual style
/ux style-synthesize https://linear.app --name linearScreenshots the site at three breakpoints, analyzes typography, color, and layout patterns, and writes a Markdown report + CSS custom-property theme file to docs/ux/style-research/linear/.
Skills
Scaffold Prototype
/ux prototype "<description>"What happens:
- Asks whether to scaffold in-repo (single package or monorepo) or out-of-repo
- Asks for a style direction (minimal, bold, dashboard, etc.)
- Lists key features to implement
- Runs
npx sv create+ installs Tailwind and shadcn-svelte - Creates feature-slice directory structure under
src/libs/features/ - Implements the layout shell first, then each feature in order
- All data is hard-coded; fake auth accepts any valid input
Architecture:
src/app/— app shell, layouts, routingsrc/libs/features/feature-[name]/— components, view-models, state, actionssrc/libs/ui/src/libs/layout/src/libs/factories/src/libs/validators/— shared libs- shadcn-svelte for all UI components; zod + factory pattern for data shapes
Flags:
--bg— run scaffold in background, notify when done--silent— suppress desktop notification
Wireframe Explorer
/ux explore "<description>" [--slideshow] [--output path]Creates a single .html file using Tailwind CDN — no build step required. Open directly in a browser for fast iteration.
Modes:
- Default — self-contained prototype of one approach
--slideshow— multiple sections in one file for comparing approaches side-by-side
Flags:
--slideshow— compare multiple approaches in a single file--output <path>— write to a specific file path (default: current directory)
Style Synthesize
/ux style-synthesize <url> [--name name]Uses browser automation (mcp__claude-in-chrome__*) to visit a URL, screenshot across breakpoints, and synthesize the visual design into reusable artifacts.
Output (written to docs/ux/style-research/{source}/):
style-report.md— color palette, typography, spacing, component patterns, responsive behaviortheme.css— CSS custom properties for colors, radius, and spacing; shadcn-svelte variable overrides; dark mode block
Breakpoints: 375px (mobile) · 768px (tablet) · 1440px (desktop)
Flags:
--name <name>— override the source slug (default: derived from URL domain)--bg— run in background, notify when done--silent— suppress desktop notification
Pre-approve Permissions
/ux allow # Write ux permissions to project .claude/settings.json
/ux allow --global # Write to ~/.claude/settings.jsonAdds the allow entries needed for /ux style-synthesize to run without permission prompts (WebFetch for browser automation). Auto-detects the running agent.
List All Commands
/ux help