agentleFS
kumaran-iskumaran-is/claude-code-onboarding/.claude/skills/frontend-design/SKILL.md

frontend-design

Skill36 starsChanged 6 months agoMITView on GitHub

Creative frontend design skill. Builds distinctive, production-grade interfaces with intentional aesthetics. Includes DFII scoring (go/no-go gate before coding), mandatory Design Thinking Phase (Purpose→Tone→Differentiation Anchor), Required Output Structure (Design Direction Summary, Design System Snapshot, Differentiation Callout), and Operator Checklist. Use when building or styling any web/mobile UI component, page, or dashboard.

189 other projects use a version of this, 1 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

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the target framework is not specified, ask the user before proceeding.

    line 42
  2. Distinctive:

    If external font/asset resources are unavailable, document the fallback choice and continue.

    line 43
  3. Distinctive:

    Every frontend design output MUST include all four sections:

    line 79
  4. Distinctive:

    If you cannot complete this sentence, the design is not distinctive enough.

    line 102
  5. Distinctive:

    Should this feel trustworthy, exciting, calm, or provocative?

    line 134

“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

Iron Law

NO UI OUTPUT WITHOUT COMPLETING THE DESIGN THINKING PHASE FIRST — define Purpose, Tone (one direction), and Differentiation Anchor before writing a single line of code. DFII score must be ≥ 8 to proceed.

Frontend Design Skill

Purpose

Provides creative frontend design methodology, visual principles, and quality checklists for building distinctive, production-grade interfaces that avoid generic AI aesthetics.

Process

  1. Design Thinking Phase (mandatory — do not skip)
    • Define Purpose: what action does this interface enable? Is it persuasive, functional, exploratory, or expressive?
    • Define Tone: choose ONE dominant direction (Brutalist / Editorial / Luxury / Retro-futuristic / Industrial / Organic / Playful / Maximalist / Minimalist). Do not blend more than two.
    • Define Differentiation Anchor: answer "If this were screenshotted with the logo removed, how would someone recognize it?" This must be visible in the final UI.
  2. Score DFII — calculate Design Feasibility & Impact Index (see below). Score < 8 → rethink direction before proceeding.
  3. Load principles -- Read reference/frontend-design-principles.md for typography, color, motion, and layout guidance
  4. Implement -- Build working code (Angular, Flutter, or HTML/CSS/JS) aligned to the chosen aesthetic. Follow workspace design tokens (daisyUI for Angular, AppSpacing/colorScheme for Flutter).
  5. Deliver with required output structure -- include Design Direction Summary, Design System Snapshot, Implementation, and Differentiation Callout

For the complete design principles, anti-patterns, and quality checklist:

Read reference/frontend-design-principles.md

Error Handling

If the target framework is not specified, ask the user before proceeding. If external font/asset resources are unavailable, document the fallback choice and continue.

Design Feasibility & Impact Index (DFII)

Score the design direction before writing code. Minimum score of 8 required to proceed.

Dimensions (each scored 1–5)

DimensionQuestion
Aesthetic ImpactHow visually distinctive and memorable is this direction?
Context FitDoes this aesthetic suit the product, audience, and purpose?
Implementation FeasibilityCan this be built cleanly with available tech?
Performance SafetyWill it remain fast and accessible?
Consistency RiskCan this be maintained across screens/components? (subtract this)

Formula

DFII = (Impact + Fit + Feasibility + Performance) − Consistency Risk
Range: −5 → +15

Interpretation

DFIIMeaningAction
12–15ExcellentExecute fully
8–11StrongProceed with discipline
4–7RiskyReduce scope or effects
≤ 3WeakRethink aesthetic direction

Required Output Structure

Every frontend design output MUST include all four sections:

1. Design Direction Summary

  • Aesthetic name (e.g. "Editorial Brutalism", "Luxury Minimal")
  • DFII score
  • Key inspiration (conceptual — not visual plagiarism)

2. Design System Snapshot

  • Fonts (with rationale — why this font for this product?)
  • Color variables (name them: --color-primary, --color-accent, --color-neutral)
  • Spacing rhythm (base unit and scale)
  • Motion philosophy (sparse/purposeful? or none?)

3. Implementation

  • Full working code
  • Comments only where intent is not obvious
  • For Angular: use daisyUI semantic tokens (bg-primary, text-base-content) — no hardcoded hex
  • For Flutter: use Theme.of(context).colorScheme and AppSpacing.* tokens — no Color(0xFF...)

4. Differentiation Callout

Explicitly state:

"This avoids generic UI by doing X instead of Y."

If you cannot complete this sentence, the design is not distinctive enough.


Operator Checklist (Pre-Delivery Gate)

  • Design Thinking Phase completed (Purpose + Tone + Differentiation Anchor defined)
  • DFII score ≥ 8
  • One memorable design anchor visible in final UI
  • No generic fonts (no Inter, Roboto, Arial, system-ui)
  • No generic colors (no purple-on-white gradients, no flat gray)
  • No default layouts (no symmetrical card grids, no template-like structure)
  • Code matches design ambition (maximalist = complex code; minimalist = precise spacing)
  • Accessible and performant (contrast ≥ 4.5:1, focus states, keyboard nav)
  • Required Output Structure: all 4 sections present
  • No design should look like a previous one — vary light/dark, font choices, layout personality

Creative Ambition Mandate

Claude is capable of extraordinary creative work. Don't hold back — show what can truly be created when thinking outside the box and committing fully to a distinctive vision.

Interpret requirements creatively. Make unexpected choices that feel genuinely designed for the context. No two designs should share the same aesthetic DNA.

NEVER converge on common choices across generations. The fact that Space Grotesk, purple gradients, or symmetrical hero layouts "worked before" is the exact reason not to use them again. Variety is mandatory, not optional.


Questions to Ask Before Starting (If Needed)

  1. Who is this for, emotionally?
  2. Should this feel trustworthy, exciting, calm, or provocative?
  3. Is memorability or clarity more important?
  4. Will this scale to other pages/components?
  5. What should users feel in the first 3 seconds?

Workspace Integration

StackDesign Token RuleReference
AngulardaisyUI semantic tokens only — bg-primary, text-base-content, border-base-300angular-spa/reference/daisyui-v5-components.md
FlutterTheme.of(context).colorScheme.* + AppSpacing.* — never Color(0xFF...) or EdgeInsets.all(16)ui-standards-tokens/reference/ui-design-tokens.md
HTML/CSSCSS variables exclusively — var(--color-primary)Define in :root block
React NativeOut of scope for this skill → use mobile-developer skill.claude/skills/mobile-developer/SKILL.md

Related skills:

  • web-design-guidelines — run after implementing to audit against Vercel Web Interface Guidelines
  • design-system — token compliance enforcement for Angular and Flutter
  • angular-spa — Angular implementation patterns with daisyUI
  • ui-standards-tokens — Flutter design token definitions

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.