Premium app generation that creates WOW-factor experiences. Multi-page apps with smooth animations, zero TypeScript errors, and production-ready quality...
"One prompt. Complete app. Instant WOW."
Transform any idea into a premium, production-ready application with multiple pages, smooth animations, and zero errors - all in a single prompt.
PREMIUM = COMPLETE + POLISHED + DELIGHTFUL
User says: "Create expense tracker"
โ Basic output:
- 1 page
- No animations
- Basic styling
- "Add more pages later"
โ
Premium output:
- 5+ pages (Dashboard, Transactions, Reports, Settings, Auth)
- Smooth page transitions
- Micro-interactions everywhere
- Loading skeletons
- Empty states designed
- Ready to use immediately
Every new project MUST generate these pages based on app type:
saas-app:
required_pages:
- "/" (Landing/Marketing page)
- "/dashboard" (Main dashboard)
- "/[feature]" (Core feature page)
- "/settings" (User settings)
- "/auth/login" (Authentication)
optional_pages:
- "/auth/register"
- "/auth/forgot-password"
- "/profile"
- "/pricing"
- "/help"
ecommerce:
required_pages:
- "/" (Homepage with hero + featured)
- "/products" (Product listing)
- "/products/[id]" (Product detail)
- "/cart" (Shopping cart)
- "/checkout" (Checkout flow)
optional_pages:
- "/auth/login"
- "/orders"
- "/wishlist"
- "/search"
ai-chatbot:
required_pages:
- "/" (Landing page)
- "/chat" (Main chat interface)
- "/chat/[id]" (Chat history)
- "/settings" (Preferences)
- "/auth/login"
optional_pages:
- "/prompts" (Saved prompts)
- "/history"
food-restaurant:
required_pages:
- "/" (Homepage with hero)
- "/menu" (Full menu)
- "/menu/[category]" (Category view)
- "/cart" (Order cart)
- "/checkout" (Order placement)
optional_pages:
- "/orders" (Order tracking)
- "/locations"
- "/about"
education:
required_pages:
- "/" (Landing page)
- "/courses" (Course listing)
- "/courses/[id]" (Course detail)
- "/learn/[id]" (Learning interface)
- "/dashboard" (Progress dashboard)
optional_pages:
- "/certificates"
- "/profile"
- "/leaderboard"
generic:
required_pages:
- "/" (Landing/Home)
- "/dashboard" (Main interface)
- "/[main-feature]" (Primary feature)
- "/settings" (Settings)
- "/auth/login" (Authentication)
1. LAYOUT FIRST
โโโ app/layout.tsx (with providers, fonts, metadata)
โโโ components/layout/Navbar.tsx
โโโ components/layout/Sidebar.tsx (if dashboard-style)
โโโ components/layout/Footer.tsx (if marketing pages)
2. SHARED COMPONENTS
โโโ components/ui/ (shadcn components)
โโโ components/shared/ (app-specific shared)
3. FEATURE COMPONENTS
โโโ components/features/[feature]/ (feature-specific)
4. PAGES (parallel if possible)
โโโ app/page.tsx
โโโ app/dashboard/page.tsx
โโโ app/[feature]/page.tsx
โโโ ...etc
5. AUTH PAGES (last)
โโโ app/auth/login/page.tsx
โโโ app/auth/register/page.tsx
Every premium app MUST have these animations:
// 1. PAGE TRANSITIONS
// Every page should fade in smoothly
// components/motion/PageTransition.tsx
"use client";
import { motion } from "framer-motion";
import { ReactNode } from "react";
const pageVariants = {
initial: { opacity: 0, y: 20 },
animate: { opacity: 1, y: 0 },
exit: { opacity: 0, y: -20 },
};
export function PageTransition({ children }: { children: ReactNode }) {
return (
<motion.div
variants={pageVariants}
initial="initial"
animate="animate"
exit="exit"
transition={{ duration: 0.3, ease: "easeOut" }}
>
{children}
</motion.div>
);
}
// 2. STAGGERED LIST ANIMATIONS
// Lists should animate in one by one
// components/motion/StaggerContainer.tsx
"use client";
import { motion } from "framer-motion";
import { ReactNode } from "react";
const containerVariants = {
hidden: { opacity: 0 },
show: {
opacity: 1,
transition: {
staggerChildren: 0.1,
},
},
};
const itemVariants = {
hidden: { opacity: 0, y: 20 },
show: { opacity: 1, y: 0 },
};
export function StaggerContainer({ children }: { children: ReactNode }) {
return (
<motion.div
variants={containerVariants}
initial="hidden"
animate="show"
>
{children}
</motion.div>
);
}
export function StaggerItem({ children }: { children: ReactNode }) {
return <motion.div variants={itemVariants}>{children}</motion.div>;
}
// 3. CARD HOVER EFFECTS
// Cards should lift on hover
// Usage in any card component
<motion.div
whileHover={{ y: -4, boxShadow: "0 10px 40px -10px rgba(0,0,0,0.2)" }}
transition={{ duration: 0.2 }}
className="..."
>
{/* Card content */}
</motion.div>
// 4. BUTTON PRESS EFFECTS
// Buttons should feel tactile
// Usage on buttons
<motion.button
whileHover={{ scale: 1.02 }}
whileTap={{ scale: 0.98 }}
className="..."
>
{children}
</motion.button>
// 5. NUMBER COUNTING ANIMATION
// Stats should count up
// components/motion/CountUp.tsx
"use client";
import { useEffect, useRef, useState } from "react";
import { useInView } from "framer-motion";
interface CountUpProps {
end: number;
duration?: number;
prefix?: string;
suffix?: string;
}
export function CountUp({ end, duration = 2, prefix = "", suffix = "" }: CountUpProps) {
const [count, setCount] = useState(0);
const ref = useRef(null);
const isInView = useInView(ref, { once: true });
useEffect(() => {
if (!isInView) return;
let startTime: number;
const animate = (timestamp: number) => {
if (!startTime) startTime = timestamp;
const progress = Math.min((timestamp - startTime) / (duration * 1000), 1);
setCount(Math.floor(progress * end));
if (progress < 1) requestAnimationFrame(animate);
};
requestAnimationFrame(animate);
}, [isInView, end, duration]);
return <span ref={ref}>{prefix}{count.toLocaleString()}{suffix}</span>;
}
/* Standard timings */
--duration-fast: 150ms; /* Micro-interactions */
--duration-normal: 200ms; /* Button/hover states */
--duration-slow: 300ms; /* Page transitions */
--duration-slower: 500ms; /* Complex animations */
/* Easing functions โ no spring/bounce (AVOID-LIST) */
--ease-out: cubic-bezier(0.33, 1, 0.68, 1); /* Most animations */
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* Symmetric motion */
DO:
โ
Use subtle animations (y: 20 max, scale: 1.02 max)
โ
Keep durations short (150-300ms)
โ
Use ease-out for most animations
โ
Animate on scroll (useInView)
โ
Stagger lists (100ms between items)
DON'T:
โ Bounce animations (too playful)
โ Long durations (>500ms feels slow)
โ Large movements (y: 100+ is jarring)
โ Animate everything (be selective)
โ Block interaction during animation
Every premium app MUST have these components:
components/
โโโ layout/
โ โโโ Navbar.tsx # Responsive navigation
โ โโโ Sidebar.tsx # Dashboard sidebar (if applicable)
โ โโโ Footer.tsx # Marketing footer (if applicable)
โ โโโ MobileMenu.tsx # Mobile navigation drawer
โ
โโโ motion/
โ โโโ PageTransition.tsx # Page fade-in
โ โโโ StaggerContainer.tsx # List animations
โ โโโ FadeIn.tsx # Simple fade-in wrapper
โ โโโ CountUp.tsx # Number animation
โ
โโโ feedback/
โ โโโ LoadingSpinner.tsx # Generic loading
โ โโโ Skeleton.tsx # Content skeleton
โ โโโ EmptyState.tsx # Empty state with illustration
โ โโโ ErrorBoundary.tsx # Error fallback
โ
โโโ shared/
โ โโโ Logo.tsx # Brand logo
โ โโโ Avatar.tsx # User avatar with fallback
โ โโโ Badge.tsx # Status badges
โ โโโ SearchInput.tsx # Global search (if applicable)
โ
โโโ ui/ # shadcn/ui components
โโโ (generated by shadcn)
// EVERY page should have loading state
// app/dashboard/loading.tsx
import { Skeleton } from "@/components/ui/skeleton";
export default function DashboardLoading() {
return (
<div className="space-y-6 p-6">
{/* Stats skeleton */}
<div className="grid grid-cols-4 gap-4">
{[...Array(4)].map((_, i) => (
<Skeleton key={i} className="h-32 rounded-xl" />
))}
</div>
{/* Chart skeleton */}
<Skeleton className="h-64 rounded-xl" />
{/* Table skeleton */}
<div className="space-y-2">
{[...Array(5)].map((_, i) => (
<Skeleton key={i} className="h-12 rounded-lg" />
))}
</div>
</div>
);
}
// components/feedback/EmptyState.tsx
import { LucideIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
interface EmptyStateProps {
icon: LucideIcon;
title: string;
description: string;
actionLabel?: string;
onAction?: () => void;
}
export function EmptyState({
icon: Icon,
title,
description,
actionLabel,
onAction,
}: EmptyStateProps) {
return (
<div className="flex flex-col items-center justify-center py-12 text-center">
<div className="rounded-full bg-muted p-4 mb-4">
<Icon className="h-8 w-8 text-muted-foreground" />
</div>
<h3 className="text-lg font-semibold mb-2">{title}</h3>
<p className="text-muted-foreground mb-4 max-w-sm">{description}</p>
{actionLabel && onAction && (
<Button onClick={onAction}>{actionLabel}</Button>
)}
</div>
);
}
// tsconfig.json MUST have these
{
"compilerOptions": {
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"noUnusedParameters": true
}
}
Before generating ANY code, verify:
โก All imports are valid (no typos)
โก All types are defined
โก All props have types
โก No `any` type used
โก All async functions have error handling
โก All optional chaining where needed (?.)
โก All nullish coalescing where needed (??)
โก All arrays initialized before use
โก All state has initial values
// โ BAD: Will error if data is undefined
{data.items.map(item => ...)}
// โ
GOOD: Safe with fallback
{(data?.items ?? []).map(item => ...)}
// โ BAD: Type error on undefined
function UserCard({ user }) { ... }
// โ
GOOD: Proper typing
interface UserCardProps {
user: User;
}
function UserCard({ user }: UserCardProps) { ... }
// โ BAD: Unhandled async
const data = await fetch(...);
// โ
GOOD: With error handling
try {
const data = await fetch(...);
if (!data.ok) throw new Error('Failed to fetch');
return data.json();
} catch (error) {
console.error('Fetch error:', error);
return null;
}
Every project MUST have:
// types/index.ts
export interface User {
id: string;
name: string;
email: string;
avatar?: string;
createdAt: Date;
}
// types/[feature].ts
export interface [Feature] {
id: string;
// ... feature-specific fields
createdAt: Date;
updatedAt: Date;
}
// types/api.ts
export interface ApiResponse<T> {
data: T;
error?: string;
message?: string;
}
export interface PaginatedResponse<T> {
data: T[];
total: number;
page: number;
pageSize: number;
hasMore: boolean;
}
WOW = the DESIGN.md signature element executed well + the craft floor.
Spend boldness in ONE place โ the signature element declared in root
DESIGN.md ยง1 (distinctive hero treatment, unusual data display, strong
typographic motif) โ and keep everything else quiet. WOW is never a checklist
of decorations (gradient text, floating shapes, hover glows, confetti are
AVOID-LIST tells โ see design-craft/AVOID-LIST.md).
wow:
signature_element: # the ONE bold move, from DESIGN.md โ flagship page only
- Executed with full craft: motion, spacing, typography all serve it
craft_floor: # quiet everywhere else โ this is what reads "premium"
- Responsive at every breakpoint (320px+)
- focus-visible rings on every interactive element
- Skeletons matching the real layout on every page
- Empty states with a real sentence + next action
- Realistic domain content, zero placeholder text
shadows:
cards: "shadow-sm hover:shadow-lg transition-shadow"
modals: "shadow-2xl"
dropdowns: "shadow-lg"
borders:
cards: "border border-border/50"
inputs: "border border-input focus:ring-2 focus:ring-primary/20"
backgrounds: # solid surfaces from DESIGN.md tokens โ no decorative gradients
page: "bg-background"
card: "bg-card"
muted: "bg-muted/50"
hover_states:
cards: "hover:border-primary/50 transition-colors"
buttons: "hover:brightness-110 transition-[filter]"
links: "hover:text-primary transition-colors"
Before delivering to user, verify ALL:
BUILD CHECK:
โก `npm run build` passes with 0 errors
โก `npm run lint` passes with 0 warnings
โก All pages render without errors
PAGES CHECK (minimum 5):
โก Homepage/Landing created
โก Main feature page created
โก Dashboard/Detail page created
โก Settings page created
โก Auth page created (at least login)
ANIMATION CHECK:
โก Page transitions working
โก List animations working
โก Card hover effects working
โก Button press feedback working
โก Loading states animated
RESPONSIVE CHECK:
โก Mobile layout works (320px+)
โก Tablet layout works (768px+)
โก Desktop layout works (1024px+)
โก No horizontal scroll
QUALITY CHECK:
โก No TypeScript errors
โก No console errors
โก No missing images (use placeholders)
โก No broken links
โก Loading states present
โก Empty states designed
When starting a new project, use this structure:
project/
โโโ app/
โ โโโ layout.tsx # Root layout with providers
โ โโโ page.tsx # Landing/Home
โ โโโ loading.tsx # Global loading
โ โโโ error.tsx # Global error
โ โโโ not-found.tsx # 404 page
โ โ
โ โโโ dashboard/
โ โ โโโ page.tsx # Dashboard
โ โ โโโ loading.tsx # Dashboard skeleton
โ โ
โ โโโ [feature]/
โ โ โโโ page.tsx # Feature list
โ โ โโโ [id]/page.tsx # Feature detail
โ โ โโโ loading.tsx # Feature skeleton
โ โ
โ โโโ settings/
โ โ โโโ page.tsx # Settings
โ โ
โ โโโ auth/
โ โโโ login/page.tsx # Login
โ โโโ register/page.tsx # Register
โ
โโโ components/
โ โโโ layout/ # Layout components
โ โโโ motion/ # Animation components
โ โโโ feedback/ # Loading, empty, error states
โ โโโ features/ # Feature-specific components
โ โโโ shared/ # Shared components
โ โโโ ui/ # shadcn/ui
โ
โโโ lib/
โ โโโ utils.ts # Utility functions
โ โโโ mock-data.ts # Realistic mock data
โ
โโโ stores/
โ โโโ use-[feature].ts # Zustand stores
โ
โโโ types/
โ โโโ index.ts # Shared types
โ โโโ [feature].ts # Feature types
โ
โโโ providers/
โโโ providers.tsx # All providers wrapped
All code, comments, and documentation should be in English.
Only user-facing content (mock data, UI text) should match the user's language:
// Code: Always English
interface ProductCardProps {
product: Product;
}
// Mock data: Match user language
const mockProducts = [
// Thai user
{ name: "เธเธฒเนเธเธฅเธฒเนเธเน", price: 65 },
// English user
{ name: "Caffe Latte", price: 65 },
];
Premium Experience Skill v1.0.0 - One Prompt, Complete App, Instant WOW