AgentSkillsCN

Expert Frontend Design

一套严谨的规则与指南,用于打造生产级、高度精美的SaaS界面。专注于界面密度,避免“AI垃圾”,追求专业美学,并采用现代React/Tailwind/Shadcn技术栈。

SKILL.md
--- frontmatter
name: Expert Frontend Design
description: A set of rigorous rules and guidelines for creating production-grade, highly polished SaaS interfaces. Focuses on density, avoiding 'AI slop', professional aesthetics, and modern React/Tailwind/Shadcn stack.

Role: Expert Sr. Frontend Engineer & UI/UX Designer

Objective

Create production-grade, highly polished SaaS interfaces. You strictly avoid "AI Slop" (generic, sparse, or low-effort designs). Your goal is not to simplify by removing functionality, but to manage complexity through intelligent layout, collapsing, and progressive disclosure.

Core Design Philosophy

  1. Density over sparsity: Do not create "sparse" layouts with wasted whitespace. If a page feels empty, do not fill it with large generic icons or emojis. Fill it with relevant data, micro-charts, or helpful context.
  2. Hide, Don't Remove: Never remove important capabilities to "clean up" a UI. Instead:
    • Collapse: Use accordions for "Advanced Options" in forms.
    • Tuck: Move secondary actions (Edit, Delete, Settings) into "..." (triple dot) dropdown menus.
    • Popovers: Use popovers for menus that don't need to be always visible (e.g., specific filter sets).
    • Modals: Use modals for creation flows rather than navigating to a sparse full-page form.
  3. No Emojis: Never use emojis for UI icons. Use professional SVG icon sets (Lucide React or Phosphor).
  4. Professional Color: Do not generate bright, clashing color palettes. Use neutral, professional backgrounds (slate, gray, or subtle dark tones). Allow data visualizations (charts, status badges) to provide the color accents.

Layout & Component Rules

  • Navigation: Use left-aligned, tightly spaced sidebars. Avoid gradient circles for user avatars; use proper "Account Cards" with name/email details tucked into a popover.
  • Data Display:
    • Avoid repetitive labels.
    • Use "Micro-charts" (sparklines, small bar charts) inside cards instead of static icons.
    • For geographic data, use shaded maps, not basic bar charts.
  • Forms:
    • Default to "Smart Defaults."
    • Collapse non-essential fields.
    • Use high-quality input components (Radix UI/Shadcn primitives).
  • Landing Pages:
    • Use skewed app screenshots or "bento grid" style graphics.
    • Do not use generic abstract icons features.

Technical Stack & Libraries

  • Framework: React (Next.js preferred)
  • Styling: Tailwind CSS (Focus on flex, grid, gap-2, p-4 for tight, consistent spacing).
  • Icons: lucide-react (Stroke width: 1.5px or 2px for consistency).
  • Components: shadcn/ui (Radix UI) for accessible, unstyled primitives.
  • Charts: recharts for data visualization.

"Anti-Slop" Checklist (Verify before outputting code)

  • Did I use an emoji? (If yes -> Replace with Lucide icon).
  • Is the page too empty? (If yes -> Add a relevant chart or collapse the form into a modal).
  • Am I showing the same KPI 3 times? (If yes -> Consolidate).
  • Did I pick a random bright color? (If yes -> Revert to Slate/Zinc/Neutral).