# The Stack โ€” why each tool is here AI design fails in three predictable ways. Each layer of this stack fixes one. | Failure mode | Fix | Tool | |--------------|-----|------| | Generic, templated look ("AI slop") | Force an aesthetic commitment | `frontend-design` | | Vague, inconsistent tokens & patterns | Ground decisions in a real database | `ui-ux-pro-max` | | Never sees the result โ†’ ships broken UI | Give the agent eyes | Playwright / Chrome DevTools MCP | | Reinventing primitives | Pull proven components | shadcn MCP | | "Looks fine to me" self-assessment | Independent, rigorous review | `design-review` subagent | ## ๐Ÿง  Knowledge โ€” `ui-ux-pro-max` A searchable design-intelligence toolkit: **84 UI styles, 192 color palettes, 73 font pairings, 99 UX guidelines, 25 chart types, a Core Web Vitals dataset, and 22 tech stacks**, plus a design-system generator that turns a product brief into concrete tokens. It's the answer to "what should this actually look like, and what are the anti-patterns?" - Repo: ยท License: MIT - Install: `npx ui-ux-pro-max-cli init --ai claude` - Use: `python3 /scripts/search.py "" --design-system` and `--domain ` ## ๐ŸŽจ Taste โ€” `frontend-design` (official Anthropic) ~50 lines of markdown that stop Claude from sampling the safe center of its training data. It forces four decisions โ€” *purpose, tone, constraints, differentiation* โ€” before any CSS, names three "AI-slop" defaults to avoid, and pushes boldness into a single signature element. - Repo: - Install: `/plugin install frontend-design@anthropics/claude-code` `ui-ux-pro-max` decides *what's correct*; `frontend-design` decides *what's distinctive*. Use both. ## ๐Ÿงฉ Components โ€” shadcn MCP Browse, search, and install shadcn/ui components (and other registries) by natural language, instead of hand-rolling accessible primitives. Best for React/Next/Vue/Svelte projects. - Docs: ยท Command: `npx shadcn@latest mcp` ## ๐Ÿ‘๏ธ Visual feedback โ€” Playwright MCP + Chrome DevTools MCP The single biggest lever. Claude connects to a **real Chromium**, navigates, clicks, resizes, screenshots, reads the console, and takes an accessibility snapshot โ€” so it can catch and fix its own z-index bugs, animation-timing errors, overflow, and layout shift. Chrome DevTools MCP adds deep performance/network/CLS profiling. - Playwright MCP: โ€” `npx @playwright/mcp@latest` - Chrome DevTools MCP: โ€” `npx chrome-devtools-mcp@latest` ## โœ… Automated review โ€” `design-review` subagent A senior-reviewer subagent (`.claude/agents/design-review.md`) that runs a 7-phase audit over a live page: interaction states, responsiveness across 6 viewport tiers, visual polish, WCAG 2.1 AA, edge cases, and console health. Invoke with `/design-review `. The heuristic subset also runs headless in CI via `scripts/design-audit.mjs`. ## Optional add-ons (not in default `.mcp.json`) - **Figma Dev Mode MCP** โ€” read a frame's tokens/layout to generate matching code, and push Claude-built UI back to the canvas as editable layers. Needs the Figma desktop app + Dev Mode. - **21st.dev Magic MCP** โ€” generate React components from a prompt ("v0 in your editor"). Needs an API key. Both are opt-in (see `docs/SETUP.md`) so the base stack runs with zero secrets.