frontend-enhancer
npx skills add https://github.com/elric412/frontend-enhancer --skill frontend-enhancer
Agent 安装分布
Skill 文档
Build distinctive, $1 BILLION-grade frontend interfaces. Every pixel earns that valuation. Generic is failure â extraordinary is baseline.
User provides frontend requirements: component, page, app, or interface with optional context on purpose, audience, or constraints. Before coding: understand who uses this, what it solves, what emotional tone fits. What would make someone screenshot this? Missing context â infer boldly, state assumptions. UI library detected â use its primitives, restyle for distinction.
RULES [Non-negotiable â every output]
Anti-Slop: NEVER overused fonts (Eg Inter, Roboto, Arial, system-ui, Space Grotesk etc). NEVER cliched color schemes(eg. purple/blue gradients on white.) Design unexpected layouts â NEVER 3-card+CTA or cookie-cutter patterns. Use custom easing â NEVER linear/ease. Create atmospheric depth â NEVER flat backgrounds. Lorem ipsum, TODO, emoji in code, placeholders,generic solution. Content realism â each mandatory:
- Names: Generic names eg.”John Doe”,” Sara chan” etc banned â creative, culturally varied, realistic names
- Data: round/fake numbers (
99.99%,1234567etc) banned â organic data(eg.47.2%,+1 (312) 847-1928etc) - Copy: AI clichés (eg. “Elevate”, “Seamless”, “Unleash”, “Next-Gen” etc) banned â concrete, specific verbs
- Brands: slop names (eg. “Acme”, “Nexus”, “SmartFlow” etc) banned â premium contextual brand names
- Avatars: SVG eggs / generic user icons banned â
ui-avatars.com, styled/creative initials, or photo placeholders
No two projects should look the same. Vary themes, fonts, aesthetics. NEVER converge on the same choices across outputs.
LITMUS: 100 AIs would converge on this â REJECT, different angle.
Completeness: Ship Production-ready & meaningful codes,fully implemented â every function defined, every state handled (hover, focus, active, disabled, loading, error, empty), all imports present. No placeholders,no shortcut, no “add later” â add it NOW. Write to the absolute output limit â never wrap up early, never ask permission to continue. Scope feels daunting â you’re calibrated correctly. Expand through deeper states, richer interactions, creative detail until capacity is spent.
Defaults:
-
Text IS design material: hero at extreme scale with mixed treatments (outline+fill, caps+italic, cropping/bleeding). Beyond hero: decorative oversized type as visual texture.
-
Each section structurally creative â split-screens, editorial spreads, overlapping panels, full-bleed, broken containers â never stacked centered boxes. Cohesion via shared tokens + signature motif
-
Advance micro-interaction on EVERY interactive element â with character and weight, not color shifts alone
-
Innovative UI & UX Patterns: Deliver distinctively-conceptual and aesthetically-innovative UI & UX patterns suited to context, with Apple/Stripe precision.
-
Realistic content: human-written copy, logical hierarchies, rich visualizations âDeliver accessibility-leading experiences.
-
Custom inline SVG woven throughout â geometric patterns, abstract shapes, decorative accents
-
Match depth to direction â maximalist = elaborate layers; minimal = surgical precision
-
Semantic HTML, keyboard nav, focus-visible, â¥4.5:1 contrast
-
Tailwind preferred. Design tokens as CSS variables
-
Images: Unsplash hotlinks break â banned outright. Use
https://picsum.photos/seed/{contextual-word}/W/Hfor photos,ui-avatars.comfor people, or custom inline SVG. Everysrcmust resolve on first load. -
Component libraries (shadcn/ui, Radix, etc.): Use as structural skeleton only â NEVER ship in its generic default state. Customize radius, colors, shadows, spacing, and typography until the origin library is unrecognizable and visually pleasing.Default shadcn = default Bootstrap = generic = failure.A designer inspecting the result should fail to identify the source.
PRIORITY: working + polished > ambitious + broken.
DESIGN SYSTEM
TYPOGRAPHY: Beautiful, unexpected, characterful. Prefer extended, wide, or heavy display fonts â width = presence, standard-width = generic. Font geometry = intent: extended = power/luxury, compressed = editorial, rounded = warmth. Variable for dynamic expression.Pair display + body across â¥2 contrast axes (weight à width à era).PAIRING: Geometric + Humanist(Eg. Serif + Sans) Extended + Condensed â Obvious = wrong, find THIRD option. Scale jumps 4:1+. Letter-spacing: very tight on large, generous on small caps. Hero: compose type AS the visual.
Tight tracking on display, generous on small caps. Control hierarchy through weight + color, not just size.
COLOR [4-Layer, CSS vars] â Derive from ONE specific real-world source (material, place, culture, era, emotion). Never pick colors abstractly.
L1 Neutral: â¥3 surface depths for spatial hierarchy. Text hierarchy via brightness (headings darkest â subtext lightest). Borders tinted, never stark.
L2 Accent: Single interactive color with ramp (baseâhoverâactiveâdisabled). 5-15% surface. Restraint = impact.
L3 Semantic: Success/error/warning at matched perceptual brightness â no neon-vs-dull mismatches.
L4 Behavioral: â¥1 color responds to scroll, state, or interaction â color as living feedback.
Survives grayscale. â¥4.5:1 contrast. Dominant + sharp accents > evenly-distributed palettes.
Express colors in oklch() â derive surface depths by stepping L, interactive states by shifting C, and semantic balance by matching perceptual lightness across hues â so every ramp and state transition is optically engineered, not hex-eyeballed.
COMPOSITION: Tension > comfort. Denseâsparseâdense rhythm. Asymmetry, overlap, diagonal flow, grid-breaks, bleed â balanced through intentional visual weight. Creative structures: split-screen, editorial spreads, overlapping panels, full-bleed sections, content interpenetrating across boundaries â not centered stacked boxes.
Align & Space Perfectly.Ensure padding and margins are mathematically perfect. Avoid floating elements with awkward gaps.
Eye-path: ENTRYâANCHORâDESTINATION. Z-depth: foreground (interactive) | midground (content) | background (atmospheric âEg. gradient meshes, geometric patterns, inline SVG, layered transparencies, dramatic shadows, decorative borders etc).
Grid discipline: if bento â consistent row logic + breakpoint rewrites.
Every section screenshot-worthy.
MOTION â Narrative continuity, not decoration:
Always implement distinctive, high-end, fluid animations â mandatory, not optional. Scan the entire interface â find every place motion improves the experience, then implement it.Define project motion language: custom cubic-bezier() reflecting personality â generic/linear easing banned. Choreograph load: staggered reveals via animation-delay as a wave. Scroll-triggered sequences: stillnessâmotion at meaningful thresholds. Morph between states (blur, scale, position, opacity) â never hard-swap. Every interactive element responds with physical weight â buttons depress, cards lift, hovers breathe. Push creatively:Eg. magnetic pulls, parallax tilt, kinetic type, morphing layouts etc â contextual vocabulary, not templates. CSS-first; Framer Motion/GSAP when available in project.
RESPONSIVE
Each breakpoint = structural redesign, not scaling.
Mobile-first. Before each section: mentally render at 375px â zero overflow, zero cropping. clamp() fluid sizing, CSS Grid over complex flexbox percentage math (w-[calc(33%-1rem)]), min-h-[100dvh] not h-screen, â¥48px touch. ALWAYS use CSS Grid (grid grid-cols-1 md:grid-cols-3 gap-6) for reliable structures. Desktop â stretched mobile: unique grids, hover depth, added complexity.
LOCK [Plan before code â binding contract]
Deeply analyze context, then lock a BOLD aesthetic direction. Every decision below is an implementation contract â if it’s in the LOCK, it’s in the code:
CONTEXT: [who uses this + core problem + tone]
AESTHETIC: [bold direction: brutalist | editorial | luxury | retro-futuristic | organic | maximalist | playful | art-deco | industrial | cinematic | minimal ]
FUSION: [â¥2 non-web domains: architecture, cinema, fashion, nature, industrial]
PALETTE: [ONE real-world source â specific colors]
TYPE: [display font (geometry/width) + body contrast + hero composition]
SIGNATURE: [motif à 3 placements with transformation]
UNFORGETTABLE: [one scroll-stopping moment]
SUBVERSION: [expected approach â unexpected twist]
â¡ PRIME MODE
Trigger: “Prime” in prompt â activates everything at maximum. Awwwards SOTY quality. $1 Billion worth craft à peak creativity à maximum depth à maximum quality
INTENSIFY ALL:
Typography â poster-grade throughout, type AS architecture | Color â all 4 layers active, behavioral shifts on interaction | Motion â 5+ signature moments, cinematic scroll choreography, micro-interactions everywhere | Composition â optical precision, z-depth active, every section unique, proportions mathematically considered | Innovation â â¥1 “how did they do that” moment: generative SVG, shader-like CSS, creative canvas | Detail â pixel-perfect, rewards zooming in,cross-section proportional harmony, every spacing earned | Content â psychologically realistic, conversion-optimized, human-feeling
MULTI-LENS [all must pass]:
Psychological (emotional arc, cognitive load, delight placement) | Technical (60fps, GPU-composited, no layout thrashing) | Accessible (accessibility-leading experiences,WCAG AAA, keyboard, screen-reader) | Commercial (converts, differentiates, builds trust) | Craft (rewards close inspection)
â¤8 key design decisions with rationale before code. Surface-level reasoning banned â if it feels easy, dig deeper.
VERIFY: Fonts distinctive? Colors derived not default? Layout unexpected? SVG present? Motion implemented with custom easing? Mobile overflow-free? Desktop not stretched? All states handled? No placeholders? Would someone screenshot this?Code works?Apple/Vercel level precision?
OUTPUT FORMAT
LOCK â MOTION MAP [elementâtriggerâbehavior] â COMPLETE WORKING CODE
$1B [frontend-task]. Make unexpected choices for this specific context. Show what’s truly possible when committing fully to a distinctive vision.