agentleFS
irahardiantoirahardianto/awesome-agv/.agents/skills/frontend-design/SKILL.md

frontend-design

Skill157 starsChanged 3 months agoMITView on GitHub

Generates distinctive, production-grade frontend interfaces and artifacts (React, Vue, HTML/CSS). Prioritizes bold aesthetics, unique typography, and motion to avoid generic designs. Use when building websites, landing pages, dashboards, posters, or when the user requests to style, beautify, or create visually striking UI.

189 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use file-reading, arrange and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SeifBenayedSkill

    file-reading

    Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.

    Also in 7 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • mm-mazharSkill

    cache-components

    Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).

    Also in 6 projects that use this

  • SeifBenayedSkill

    pdf-reading

    Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.

    Also in 6 projects that use this

  • JokerRunSkill

    compound-engineering

    Compound Engineering workflow for AI-assisted development. Use when planning features, executing work, reviewing code, or codifying learnings. Follows the Plan → Work → Review → Compound loop where each unit of engineering makes subsequent work easier. Triggers on: plan this feature, implement this, review this code, compound learnings, create implementation plan, systematic development.

    Also in 5 projects that use this

  • mtctSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 10 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 5 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before touching any code, commit to a clear aesthetic direction.

    line 16
  2. Distinctive:

    CRITICAL: Every generation must make a fresh choice.

    line 26
  3. Very specific:

    Add the Google Fonts @import to your HTML <head> (with preconnect hints)

    line 43
  4. Very specific:

    Use only transform and opacity for animations — never width, height, top, left

    line 73
  5. Distinctive:

    Every interactive element needs a hover state AND a focus-visible state

    line 74
  6. Very specific:

    Write CSS mobile-first: base styles for phone, min-width queries for larger screens

    line 78
  7. Very specific:

    Every tap target: ≥ 44×44px (min-height: 44px.

    line 79
  8. Very specific:

    Use 100svh not 100vh for full-screen sections (iOS Safari compatibility)

    line 80
  9. Very specific:

    Add env(safe-area-inset-*) padding on fixed bottom elements

    line 81
  10. Distinctive:

    Test at 375px, 768px, and 1280px minimum — use the decision matrix in the module

    line 82
  11. Very specific:

    Add manifest.json with correct name, icons (192 + 512 + maskable), theme_color

    line 85
  12. Very specific:

    Add PWA meta tags to <head> (theme-color, apple-mobile-web-app-capable, apple-touch-icon)

    line 86
  13. Very specific:

    Create an offline fallback page (offline.html)

    line 88
  14. Distinctive:

    Before marking complete, verify:

    line 165

“Common” is measured: kept by at least 6 in 10 of the 180 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend Design Skill

This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Follow the phased workflow below. Each phase has concrete reference material — use it, don't invent from scratch.


Phased Workflow

Phase 1: Design Direction

Before touching any code, commit to a clear aesthetic direction. Answer these:

Context questions:

  • What problem does this interface solve? Who uses it?
  • What's the one thing someone will remember about this design?
  • What aesthetic direction fits? (Choose ONE — don't blend randomly)

Aesthetic directions to pick from: Brutally minimal · Maximalist chaos · Retro-futuristic · Organic/natural · Luxury/refined · Playful/toy-like · Editorial/magazine · Brutalist/raw · Art deco/geometric · Soft/pastel · Industrial/utilitarian · Sci-fi/cyberpunk

CRITICAL: Every generation must make a fresh choice. Never default to the same direction twice. Vary light/dark themes, fonts, and palettes across generations.

Deliverables from Phase 1:

  • ✓ Named aesthetic direction (e.g., "editorial luxury, dark theme")
  • ✓ Font pairing selected from references/typography.md
  • ✓ Color palette selected from references/color-palettes.md
  • ✓ Layout composition(s) selected from references/layout-compositions.md

Phase 2: Token System

Set up the design token foundation before writing any component code.

  1. Copy examples/design-tokens.css into the project
  2. Override the palette primitives with your chosen palette's HSL values
  3. Override --font-display and --font-body with your chosen font pairing
  4. Add the Google Fonts @import to your HTML <head> (with preconnect hints)
<!-- Always preconnect BEFORE the font stylesheet -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="[your @import from typography.md]">

Deliverables from Phase 2:

  • ✓ design-tokens.css (or equivalent) in place with chosen palette/fonts
  • ✓ All colors, spacing, typography, shadows, and motion defined as CSS variables
  • ✓ No hardcoded color values or magic numbers anywhere in component code

Phase 3: Build

Load the framework module for your target and implement components using design tokens.

Framework modules — load the relevant one:

TargetModule
Vue 3 (<script setup>)frameworks/vue.md
HTML + Vanilla CSS/JSframeworks/html-css.md

Build principles:

  • Implement components from the layout compositions you chose
  • Apply motion patterns from references/motion-patterns.md at high-impact moments: page load, scroll reveals, hover states
  • Use only transform and opacity for animations — never width, height, top, left
  • Every interactive element needs a hover state AND a focus-visible state
  • Stagger entrance animations for groups of elements (cards, list items)

Mobile responsive (load references/mobile-responsive.md):

  • Write CSS mobile-first: base styles for phone, min-width queries for larger screens
  • Every tap target: ≥ 44×44px (min-height: 44px; min-width: 44px)
  • Use 100svh not 100vh for full-screen sections (iOS Safari compatibility)
  • Add env(safe-area-inset-*) padding on fixed bottom elements
  • Test at 375px, 768px, and 1280px minimum — use the decision matrix in the module

PWA readiness (load references/pwa-checklist.md for production apps):

  • Add manifest.json with correct name, icons (192 + 512 + maskable), theme_color
  • Add PWA meta tags to <head> (theme-color, apple-mobile-web-app-capable, apple-touch-icon)
  • Register a service worker with appropriate caching strategy
  • Create an offline fallback page (offline.html)
  • For Vite projects: prefer vite-plugin-pwa over manual SW

Phase 4: Polish & Verify

Visual polish checklist:

  • Typography: Are display and body fonts visually distinct and harmonious?
  • Color: Is the palette cohesive? Do accents draw the eye to the right places?
  • Spacing: Is there enough breathing room between sections? (minimum --space-20 between major sections)
  • Motion: Does the page feel alive on load? Are hover states immediate and satisfying?
  • Backgrounds: Is there depth, texture, or gradient — or is it a flat color?
  • Responsive: Does it look great at 375px? 768px? 1280px? No horizontal overflow?
  • Touch: Are all interactive targets ≥ 44px? Does navigation work on mobile?
  • PWA (if applicable): Does Lighthouse PWA score 100? Is offline fallback working?

Accessibility verification:

# Run the visual audit after starting your dev server
bash .agents/skills/frontend-design/scripts/visual-audit.sh http://localhost:[port]

The audit checks:

  • Color contrast violations (WCAG AA minimum — 4.5:1 for text)
  • Missing alt text, accessible names, and ARIA labels
  • Skip link presence
  • Semantic heading structure (one <h1> per page)
  • Font loading performance (CLS)
  • prefers-reduced-motion override presence

Fix all CRITICAL issues before marking the task complete. Warnings are acceptable if documented.


Anti-Pattern Catalog

These are the most common ways agents produce generic output. Identify and avoid them.

Anti-PatternWhat It Looks LikeFix
Gradient SoupPurple-to-blue gradient on white cards everywhereUse one deliberate gradient for ONE element (hero BG, accent bar). Source from color-palettes.md.
Font Stack CollapseEntire page in Inter, Roboto, or system fontsPick a pairing from typography.md. Always use 2 distinct fonts with clear display/body roles.
Shadow Boxingbox-shadow: 0 4px 6px rgba(0,0,0,0.1) on every cardUse --shadow-sm for resting, --shadow-md for hover. Never apply the same shadow everywhere.
Animation ScatterRandom transition: all 0.3s ease on dozens of elementsUse --transition-all-interactions only for interactive elements. Apply entrance animations sparingly.
Whitespace DesertCramped layout with 16px gaps between everythingSection padding minimum --space-16. Hero sections minimum 100svh. Let content breathe.
Button Rainbow5 different button colors across a single pageOne --primary button, one --secondary, one --ghost. That's the system.
Flat BackgroundsSolid #1a1a2e with nothing elseAdd texture: gradient mesh, noise overlay, subtle pattern, or a layered radial gradient.
Generic LayoutCentered content, full-width rows, constant paddingUse a layout composition from references/layout-compositions.md. Break the grid deliberately.
Hover NothingNo state change on hover for interactive elementsEvery card, button, and link needs a hover state. Minimum: color change. Better: lift + shadow.
One-Size TypographyBody text size used for everythingUse the full type scale. Hero in --text-hero, section headings in --text-3xl, body in --text-base.
Desktop-First CSSmax-width breakpoints everywhere, mobile layout breaksWrite base styles for mobile. Layer up with min-width. See mobile-responsive.md.
Tiny Tap Targets24px buttons, links with no padding on mobileMinimum 44×44px interactive area. Expand with padding or ::after pseudo-element.

Reference Modules

Load these when implementing. Don't rely on memory — read the module.

ModuleWhen to Load
references/typography.mdChoosing fonts — 30 curated pairings
references/color-palettes.mdChoosing colors — 15 named palettes, light + dark
references/motion-patterns.mdImplementing animations — entrance, hover, scroll, micro
references/layout-compositions.mdStructuring pages — 15 named compositions
references/frontend-layout.mdFramework-neutral project layout (vertical slices, shared by React/Vue)
references/mobile-responsive.mdMobile-first methodology, touch targets, viewport units, navigation patterns
references/pwa-checklist.mdManifest, service worker, offline fallback, install prompt, Lighthouse PWA
frameworks/vue.mdBuilding in Vue 3
frameworks/html-css.mdBuilding in HTML/CSS
examples/design-tokens.cssStarting a token system

Rule Compliance

Before marking complete, verify:

  • Project Structure — component organization follows project-structure.md
  • Testing — component tests follow testing-strategy.md
  • Security — XSS prevention, no innerHTML with unescaped user data (security-principles.md)
  • Accessibility — WCAG AA contrast, keyboard navigation, semantic HTML (accessibility-principles.md)
  • Audit script — visual-audit.sh passes with no CRITICAL failures

IMPORTANT: Implementation complexity must match the aesthetic vision. Maximalist designs require elaborate animation. Minimalist designs require meticulous spacing precision. Both fail if executed without care.

Remember: you are capable of extraordinary creative work. These references exist to ground your output in concrete, actionable choices — not to constrain your creativity. Use them as a launching pad.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.