design-agent-setup
v1.0.2
Published
Drop a frontend design vocabulary skill into your coding agent (Cursor, Claude Code, Windsurf)
Maintainers
Readme
design-agent-setup
Drop a frontend design vocabulary skill into your coding agent — Cursor, Claude Code, or Windsurf.
npx design-agent-setupAdds a skill file that teaches your AI coding agent how to write UI code that actually looks designed: spacing scales, typography hierarchy, motion rules, accessible interaction patterns, and stack-specific rules for Tailwind, Next.js, shadcn/ui, and Framer Motion.
What it does
- Detects your agent — looks for
.cursor/,CLAUDE.md,AGENTS.md - Detects your stack — reads
package.jsonfor tailwindcss, next, shadcn-ui, framer-motion - Asks where to write — choose one agent, all detected, or standalone
.md - Writes to the right location:
- Cursor →
.cursor/rules/design-agent-frontend.mdc - Claude Code → appended to
CLAUDE.md - Codex → appended to
AGENTS.md - Standalone →
design-agent-frontend.mdin the project root
- Cursor →
Stack-specific rule blocks are automatically appended based on what's in your package.json.
What's in the skill file
- Spacing & layout (8pt grid, gap over margin, section breathing room)
- Typography (hierarchy, line-height, letter-spacing, contrast)
- Color (tokens over raw hex, state communication)
- Component patterns (touch targets, focus styles, empty/loading/error states)
- Motion & animation (duration, easing,
prefers-reduced-motion) - Interaction design (button labels, destructive confirmation, form validation)
- Responsive design (mobile-first, real touch testing)
- A polish checklist to run before shipping
Stack-specific rules
Detected automatically from package.json:
| Dep | Rules added |
|-----|-------------|
| tailwindcss | Utility-first patterns, class ordering, no @apply |
| next | App Router, Server Components, next/image, next/font |
| shadcn-ui | cn(), cva() variants, extending not forking |
| framer-motion | Variants, AnimatePresence, layout animation, reduced motion |
No dependencies
Uses only Node built-ins. Node 18+ required.
License
MIT — by Evangeline Ng
