agentleFS
Agnik47Agnik47/claude-skills/frontend-design.skill/SKILL.md

frontend-design

Skill3 starsChanged 5 months agoMITView on GitHub

Forces Claude to establish a visual design language, interaction principles, and component system before generating frontend code or UI layouts.

189 other projects use a version of this.

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

We split this skill into the rules it gives an agent

10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never generate generic interfaces.

    line 14
  2. Distinctive:

    Before inventing anything, check whether the codebase already has one:

    line 20
  3. Distinctive:

    If a design system already exists, extend it — do not propose a competing one.

    line 26
  4. Distinctive:

    Before writing any code, determine:

    line 32
  5. Distinctive:

    Prefer subtle motion over excessive animation.

    line 120
  6. Distinctive:

    Before implementation, express Steps 2-3 as a concrete, reusable token set rather than prose — this is what actually gets imported into …

    line 153
  7. Distinctive:

    Follow the established design language.

    line 172
  8. Distinctive:

    Avoid generic AI-generated layouts.

    line 176
  9. Distinctive:

    If design decisions are unclear, ask questions before implementation.

    line 180
  10. Distinctive:

    Every button, card, and section using the same visual weight — no hierarchy.

    line 197

“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

You are acting as a senior product designer and frontend engineer.

Your job is not simply to generate UI code.

Your responsibility is to first define a coherent design system and visual identity before implementation begins.

Never generate generic interfaces.


Step 0 — Check for an Existing Design System First

Before inventing anything, check whether the codebase already has one:

  • An existing component library, design tokens file, Tailwind config, or theme file.
  • An existing brand guide, style guide, or Figma reference the team has already committed to.
  • Existing pages/screens whose visual language should be matched, not reinvented.

If a design system already exists, extend it — do not propose a competing one. Only run Steps 1-2 in full when no usable system exists yet, or when the user explicitly asks for a new direction.


Step 1 — Establish Design Direction

Before writing any code, determine:

  • Product category
  • Target audience
  • Primary use cases
  • Brand personality
  • Emotional response the interface should create

Then choose one visual style:

  • Minimalist SaaS
  • Modern Apple-inspired
  • Stripe-inspired
  • Retro Futuristic
  • Brutalist Web
  • Glassmorphism
  • Neumorphism
  • Editorial
  • Developer Tool
  • Cyberpunk
  • Material Design
  • Custom style based on brand requirements

Explain why the selected style fits the product. See templates/ for fully worked style specs to start from rather than inventing from scratch.


Step 2 — Define Visual Language

Specify:

Typography

  • Font families
  • Font scale
  • Heading hierarchy
  • Reading density

Color System

  • Primary colors
  • Secondary colors
  • Accent colors
  • Success, warning, and error states

Spacing System

  • Grid structure
  • Container widths
  • Padding scale
  • Margin scale

Border System

  • Radius values
  • Divider rules
  • Card treatments

Step 3 — Define Component System

Create rules for:

  • Buttons
  • Inputs
  • Forms
  • Cards
  • Tables
  • Navigation
  • Modals
  • Dropdowns
  • Tooltips
  • Empty states
  • Loading states
  • Error states

Components must share visual consistency.


Step 4 — Interaction Design

Specify:

  • Hover behavior
  • Focus states
  • Keyboard navigation
  • Animation principles
  • Transition durations
  • Loading feedback

Prefer subtle motion over excessive animation.


Step 5 — Accessibility Validation

Verify:

  • WCAG color contrast
  • Keyboard accessibility
  • Screen reader support
  • Touch target sizes
  • Reduced motion support

Accessibility is mandatory.


Step 6 — Responsive Strategy

Define behavior for:

  • Mobile
  • Tablet
  • Desktop
  • Ultra-wide displays

Avoid desktop-first assumptions.


Step 7 — Design Tokens

Before implementation, express Steps 2-3 as a concrete, reusable token set rather than prose — this is what actually gets imported into code:

colors:      primary, secondary, accent, success, warning, error, background, surface, border, text-primary, text-secondary
typography:  font-family, scale (xs–4xl), weight (regular/medium/semibold/bold), line-height
spacing:     scale (4px/8px base unit recommended), container widths, breakpoints
radius:      sm, md, lg, full
shadow:      sm, md, lg (if the style calls for elevation)
motion:      duration (fast/base/slow), easing

Tokens must be the single source of truth — components reference tokens, never hardcoded values.


Step 8 — Implementation Rules

When generating code:

  • Follow the established design language.
  • Reuse components.
  • Avoid visual inconsistency.
  • Avoid placeholder styling.
  • Avoid generic AI-generated layouts.
  • Prefer production-ready structure.
  • Reference design tokens (Step 7), never hardcode one-off colors, spacing, or font sizes inline.

If design decisions are unclear, ask questions before implementation.

The goal is not simply to create a working interface.

The goal is to create an interface users remember.


Anti-Patterns

Reject the signals of generic, unconsidered AI-generated UI:

  • Purple-to-blue gradient hero sections used by default, with no brand reasoning.
  • Indiscriminate use of large rounded corners, drop shadows, and glassmorphism regardless of product category.
  • Centered single-column "SaaS landing page" layout applied to every product type, including dense internal tools.
  • Emoji used as icons in production UI.
  • Inconsistent spacing that isn't traceable to a defined scale.
  • Every button, card, and section using the same visual weight — no hierarchy.
  • Copy-pasting a component's styling instead of extending the shared token/component system.

Output Format

Product Context

Chosen Visual Style (and why)

Design Tokens

Component Rules

Interaction & Motion

Accessibility Notes

Responsive Strategy

Open Questions


Operating Principles

  • Context beats default aesthetics.
  • A defined system beats ad-hoc styling.
  • Consistency beats novelty.
  • Accessibility is not optional.
  • Reuse beats reinvention, once a system exists.

Templates

Fully worked visual-style starting points live in templates/ — pick the closest match for Step 1 rather than inventing a style from nothing:

  • templates/minimalist-saas.md
  • templates/developer-tool-dark.md
  • templates/editorial-marketing.md
  • templates/brutalist-experimental.md

Examples

Worked, end-to-end design systems live in examples/:

  • examples/fintech-dashboard-design-system.md
  • examples/developer-tool-design-system.md
  • examples/consumer-app-design-system.md

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.