Frontend design

From kumaran-is/claude-code-onboarding · View interactive version

Frontend design is an AI agent skill from the GitHub repository kumaran-is/claude-code-onboarding. 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

How to use this skill

Skill file

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)
  1. Score DFII — calculate Design Feasibility & Impact Index (see below). Score < 8 → rethink direction before proceeding.
  2. Load principles -- Read reference/frontend-design-principles.md for typography, color, motion, and layout guidance
  3. 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).
  4. 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)

| Dimension | Question |

|---|---|

| Aesthetic Impact | How visually distinctive and memorable is this direction? |

| Context Fit | Does this aesthetic suit the product, audience, and purpose? |

| Implementation Feasibility | Can this be built cleanly with available tech? |

| Performance Safety | Will it remain fast and accessible? |

| Consistency Risk | Can this be maintained across screens/components? (subtract this) |

Formula

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

Interpretation

| DFII | Meaning | Action |

|---|---|---|

| 12–15 | Excellent | Execute fully |

| 8–11 | Strong | Proceed with discipline |

| 4–7 | Risky | Reduce scope or effects |

| ≤ 3 | Weak | Rethink aesthetic direction |


Required Output Structure

Every frontend design output MUST include all four sections:

1. Design Direction Summary

2. Design System Snapshot

3. Implementation

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)


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

| Stack | Design Token Rule | Reference |

|---|---|---|

| Angular | daisyUI semantic tokens only — bg-primary, text-base-content, border-base-300 | angular-spa/reference/daisyui-v5-components.md |

| Flutter | Theme.of(context).colorScheme.* + AppSpacing.* — never Color(0xFF...) or EdgeInsets.all(16) | ui-standards-tokens/reference/ui-design-tokens.md |

| HTML/CSS | CSS variables exclusively — var(--color-primary) | Define in :root block |

| React Native | Out of scope for this skill → use mobile-developer skill | .claude/skills/mobile-developer/SKILL.md |

Related skills:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.