Ensures frontend code is production-ready with intentional design, tasteful animations, and responsive layouts. Delivers working code, not plans...
Deliver working code, not plans. Make reasonable assumptions when not blocked. Complete implementations to a runnable state.
Avoid "AI slop." Every design choice should be intentional:
Preserve existing design systems. Before creating new components:
components/ui/var(--primary), var(--accent))prefers-reduced-motion media querysm:, md:, lg:, xl:)Before considering code complete:
// ✅ Good: Use existing Button component
import { Button } from "@/components/ui/button"
<Button variant="default" size="lg">Submit</Button>
// ❌ Avoid: Creating new button styles from scratch
<button className="px-4 py-2 bg-blue-500">Submit</button>
// ✅ Good: Use design tokens
<div className="bg-primary text-primary-foreground">
<div className="text-accent">
// ❌ Avoid: Hardcoded colors
<div className="bg-[#ff2936]">
// ✅ Good: Mobile-first responsive
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
// ❌ Avoid: Desktop-only layouts
<div className="grid grid-cols-3 gap-4">
// ✅ Good: Subtle, purposeful animation
import { motion } from "framer-motion"
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3, ease: "easeOut" }}
>
// ❌ Avoid: Excessive or distracting motion
<motion.div
animate={{
rotate: [0, 360],
scale: [1, 1.2, 1],
}}
transition={{ repeat: Infinity, duration: 2 }}
>
Only introduce new patterns when:
When introducing new patterns, document them and consider adding to the design system.