stack/docs/SETUP.md
/plugin once to enable)./scripts/setup.sh
This installs the audit dependencies (Playwright + Chromium) and the ui-ux-pro-max skill,
then prints the two steps that must happen inside Claude Code.
/plugin install frontend-design@anthropics/claude-code
Open Claude Code in this directory. It reads .mcp.json and prompts you to approve the project
MCP servers (playwright, chrome-devtools, shadcn). Approve them. .claude/settings.json
already sets enableAllProjectMcpServers: true, so they load on start. Verify with /mcp.
That's it — CLAUDE.md defines the design loop and loads automatically.
> /design-plan portfolio site for a photographer, editorial and minimal
> Build the hero, then screenshot it at 375px and 1440px and fix anything that breaks.
> /design-review http://localhost:3000
You should see Claude pull tokens from ui-ux-pro-max, open a browser, screenshot, and return
ranked findings.
npm run audit -- --url http://localhost:3000
npm run audit -- --file ./index.html
Outputs audit-output/report.md + per-viewport screenshots. Exit code is non-zero when there
are high-severity findings (useful for CI — see .github/workflows/design-review.yml).
Requires the Figma desktop app. Enable Dev Mode → toggle the MCP server on. Then add to
.mcp.json:
"figma": { "url": "http://127.0.0.1:3845/mcp" }
Guide: https://help.figma.com/hc/en-us/articles/39888612464151-Claude-Code-and-Figma-Set-up-the-MCP-server
Generates React components from a prompt. Get an API key at https://21st.dev, then add:
"magic": { "command": "npx", "args": ["-y", "@21st-dev/magic@latest"], "env": { "API_KEY": "<your-key>" } }
Keep keys out of git — prefer .claude/settings.local.json or your shell env, both gitignored.
/mcp shows a server failed — run its command manually to see the error, e.g.
npx -y @playwright/mcp@latest. Usually a Node version or network/proxy issue.npx playwright install chromium, or set
PW_EXECUTABLE_PATH to your Chromium binary.npx ui-ux-pro-max-cli init --ai claude and
check the printed skill path; use that path in the python3 …/search.py commands.