Agent skill

Frontend UI Standards

by MaxHan7 in MaxHan7/frontend-ui-standards-skill

A skill your agent uses when implementing, refactoring, or reviewing frontend UI across SwiftUI, React, React Native, Flutter, web, or mobile apps.

MITAuto-check passedFrontend & Design

Install Frontend UI Standards

skills CLI
$ npx skills add MaxHan7/frontend-ui-standards-skill --skill frontend-ui-standards -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install MaxHan7/frontend-ui-standards-skill frontend-ui-standards --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/MaxHan7/frontend-ui-standards-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/frontend-ui-standards .claude/skills/frontend-ui-standards && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
frontend-ui-standards
GitHub stars
106
Token cost
~2.4k tokens
SKILL.md length
1,299 words
Files
2
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when implementing, refactoring, or reviewing frontend UI across SwiftUI, React, React Native, Flutter, web, or mobile apps.

  • Works in 3 steps: Design tokens: global primitives and… → Component metrics: component-specific… → Screen layout metrics: page-specific…
  • Reviewing frontend UI across SwiftUI
  • SKILL.md covers Purpose, When To Use, Core Principle and Implementation Workflow, plus 9 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Frontend UI Standards is an agent skill from MaxHan7/frontend-ui-standards-skill. Use when implementing, refactoring, or reviewing frontend UI across SwiftUI, React, React Native, Flutter, web, or mobile apps. Applies to Figma-to-code work, visual consistency fixes, design tokens, typography, spacing, layout, buttons, cards, navigation chrome, safe areas, responsive behavior, and component reuse. Helps prevent scattered hardcoded values, one-off layout patches, duplicated components, and UI drift from the design system.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Frontend & Design, covering Frontend development, Cross-platform mobile apps and Design tokens. It works with Flutter, React, React Native and SwiftUI. The repository describes itself as: Codex skill for design-system-first frontend UI implementation. The licence is MIT.

When your agent uses it

  • Reviewing frontend UI across SwiftUI
  • Tasks that involve Frontend development
  • Tasks that involve Cross-platform mobile apps

Example prompts

  • “/frontend-ui-standards”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Design tokens: global primitives and semantic values such as color, type, spacing, radius, elevation, safe-area offsets, content width.
  2. Component metrics: component-specific structure such as chip height, icon size, internal padding, card header spacing, button variants.
  3. Screen layout metrics: page-specific composition such as hero card position, section gaps, repeated row alignment, decorative asset…

What it can do on your machine

Read from SKILL.md and the folder at commit 0609cb0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Frontend UI Standards loads about 2.4k tokens when it runs. Until then it costs about 116 tokens; SKILL.md has 1,299 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~116
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from MaxHan7/frontend-ui-standards-skill at commit 0609cb0, republished under its MIT licence (© MaxHan7). 1,299 words, ~2,437 tokens.

Download SKILL.mdSave it as .claude/skills/frontend-ui-standards/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
frontend-ui-standards
description
Use when implementing, refactoring, or reviewing frontend UI across SwiftUI, React, React Native, Flutter, web, or mobile apps. Applies to Figma-to-code work, visual consistency fixes, design tokens, typography, spacing, layout, buttons, cards, navigation chrome, safe areas, responsive behavior, and component reuse. Helps prevent scattered hardcoded values, one-off layout patches, duplicated components, and UI drift from the design system.

Frontend UI Standards

Purpose

Use this skill to turn UI work into systematic frontend implementation. The goal is not pixel tweaking. The goal is to preserve a design system in code so future changes stay predictable, reusable, and visually consistent.

This skill is framework-agnostic. Translate the rules to the local stack:

  • SwiftUI: design tokens as enums/static constants, reusable Views, semantic metrics.
  • React/Web: CSS variables, design-token modules, component props/variants.
  • React Native/Flutter: theme objects, shared components, semantic dimensions.

When To Use

Use this skill before touching UI when the task involves:

  • Building or changing a visible screen, component, layout, or interaction.
  • Translating Figma, SVG, screenshots, or visual specs into code.
  • Fixing visual bugs: misalignment, truncation, inconsistent spacing, wrong font, wrong button size, unsafe-area issues.
  • Creating or changing buttons, cards, chips, tabs, nav bars, sheets, dialogs, lists, progress indicators, input fields, or reading surfaces.
  • Reviewing frontend code for production readiness or design consistency.
  • Refactoring duplicated UI or scattered hardcoded values.

Do not use it for pure backend, data model, prompt, or infrastructure work unless the change affects user-facing UI.

Core Principle

UI code has three layers:

  1. Design tokens: global primitives and semantic values such as color, type, spacing, radius, elevation, safe-area offsets, content width.
  2. Component metrics: component-specific structure such as chip height, icon size, internal padding, card header spacing, button variants.
  3. Screen layout metrics: page-specific composition such as hero card position, section gaps, repeated row alignment, decorative asset placement.

View code should describe structure and state. It should not hide raw design math in the body.

Implementation Workflow

  1. Inspect Existing Patterns

    • Search for the closest existing component and screen before adding new UI.
    • Identify the local design token files, theme files, component libraries, and layout helpers.
    • Check if the same visual element already appears elsewhere.
  2. Classify Every Visual Value

    • Global and reusable: put it in design tokens.
    • Component-specific: put it in a component metrics object/enum.
    • Screen-specific but repeated within that screen: put it in screen layout metrics.
    • One-off decorative positioning: keep it isolated in named screen metrics, not inline in the view body.
  3. Build From Reuse

    • Prefer extending an existing component variant over creating a new component.
    • If two places use the same visual role, they should share the same component or metrics.
    • If a new component repeats soon after, extract it immediately.
  4. Encode Layout Relationships

    • Prefer derived values over duplicated numbers.
    • Example: authorChipWidth = rowWidth - sourceChipWidth - rowGap, not three unrelated widths.
    • Align related elements by sharing a container, grid, layout guide, or named metric.
    • Do not fix alignment by locally nudging one element unless the offset is a named decorative exception.
  5. Verify Similar Surfaces

    • After fixing one button/card/header, search for the same label, component, asset, or pattern.
    • Update the shared component when possible.
    • If a one-off remains, document why through a clear metric name or short comment.
  6. Build And Visually Sanity Check

    • Run the relevant build/typecheck.
    • For mobile UI, install or run in simulator/device when the user is actively validating visuals.
    • Check truncation, safe areas, touch targets, dynamic text risk, and navigation/back behavior.

Token And Metrics Rules

Prefer semantic names over visual coordinates:

  • Good: primaryActionWidth, screenHorizontalInset, cardVerticalSpacing, metadataRowWidth, sourceChipWidth.
  • Bad: width: 271, padding(.leading, 12), offset(y: 37) repeated inside view bodies.

Allowed numeric values:

  • Numeric values are allowed inside token or metrics definitions.
  • Numeric values are allowed for one-off asset geometry if they are grouped in a named metrics section.
  • Numeric values are allowed when using a platform API that requires a literal and the value is not part of visual design.

Avoid:

  • Scattered raw hex colors.
  • Inline font sizes when a type scale exists.
  • Inline spacing that should come from a spacing scale.
  • Multiple local versions of the same button, chip, top bar, card, or bottom CTA.
  • Fixing a shared component issue at only one call site.

Component Reuse Rules

Before creating UI, ask:

  • Is this a new visual role or a variant of an existing role?
  • Does an existing component already define the interaction, size, shadow, radius, or typography?
  • Will this appear on another screen?
  • Should this be a component prop/variant instead of a new file?

Create component variants for:

  • Same structure, different color or state.
  • Same button shape with different text/icon.
  • Same card shell with different content.
  • Same chip with different label/icon.

Create a new component only when:

  • The structure, behavior, or layout role is meaningfully different.
  • Extending the old component would make it unclear or fragile.
Show full SKILL.md (564 more words)Show less

Figma-To-Code Rules

When using Figma, SVG, screenshots, or visual specs:

  • Treat Figma numbers as input evidence, not as final code structure.
  • First identify repeated primitives: colors, typography, radii, shadows, spacing, content widths.
  • Map repeated primitives to existing tokens or add new semantic tokens.
  • Map repeated UI elements to existing components or component variants.
  • Use absolute positioning only when the design is truly illustrative/decorative or when the platform layout model requires it.
  • Preserve hierarchy and relationships over blindly copying coordinates.

If Figma shows two elements aligned, encode the shared alignment in code through a common container, grid, width, or derived metric.

Typography Rules

  • Use the project type scale or platform text styles first.
  • Text hierarchy should be visible through size, weight, color, and spacing.
  • Body text on mobile should remain readable; avoid tiny labels for meaningful content.
  • Prefer wrapping for content users need to read.
  • Use truncation only for metadata, labels, usernames, authors, or bounded chips where space is intentionally constrained.
  • When truncating, constrain the text inside the correct component. Do not let text resize or push surrounding layout.

Layout And Spacing Rules

  • Use consistent page insets and content max widths.
  • Respect safe areas, notches, home indicators, and keyboard behavior.
  • Primary bottom actions should share a consistent width and vertical placement within the product.
  • Top chrome such as back, close, notification, or favorite buttons should share one positioning model.
  • Cards in the same family should share shell metrics: width, radius, shadow, content padding, and spacing rhythm.
  • Avoid nested cards unless the design explicitly uses a contained sub-card.

Interaction Rules

  • Touch targets should be at least 44pt on iOS or the platform equivalent.
  • Icon-only buttons need accessible labels.
  • Destructive actions need clear confirmation or undo.
  • Loading, retrying, disabled, empty, and error states must be explicit.
  • Back behavior should match user entry path when possible.
  • Tappable area should match user expectation; do not restrict taps to tiny icons when the whole row/card is the affordance.

Review Checklist

Before finishing UI work, check:

  • Did I search for an existing component before adding a new one?
  • Are colors, typography, spacing, radius, and shadows tokenized?
  • Are component internals in component metrics rather than inline body values?
  • Are screen-specific layout values grouped and named?
  • Are related widths/positions derived from one source of truth?
  • Did I update all same-family components or explain why not?
  • Does text fit without unwanted truncation?
  • Are touch targets and safe areas respected?
  • Did I run the relevant build/typecheck?
  • If this is visual polish, did I install/run the app or capture a screenshot when feasible?

Common Anti-Patterns

  • "Move it down 8px here" without checking the shared container.
  • Duplicating a button implementation because this screen is "slightly different."
  • Copying Figma coordinates directly into a view body.
  • Adding a local font size because one label looks wrong.
  • Fixing a width in one screen while the same component is broken elsewhere.
  • Using mock-only layout assumptions in production UI.
  • Letting generated or backend text dictate UI layout without length limits or truncation strategy.

When A Local Exception Is Acceptable

Exceptions are acceptable when they are deliberate and contained:

  • Decorative assets that are unique to one screen.
  • A marketing or editorial layout with one-off art direction.
  • A transitional refactor where a full component extraction would be too risky in the current change.
  • Platform-specific constraints that require local adaptation.

Even then, keep the value in a named metrics object and keep the exception small.

© MaxHan7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in frontend-ui-standards of MaxHan7/frontend-ui-standards-skill.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 0609cb0

Compare with similar skills

Frontend UI Standards next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Frontend UI Standards compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frontend UI Standards this skillMaxHan7/frontend-ui-standards-skill106—~2.4kAutomated safety check: PassMIT
Frontend Designavibebuilder/claude-prime120—~2.1kAutomated safety check: PassMIT
Design SystemWrongStack/WrongStack370—~3.9kAutomated safety check: PassMIT
UI UX Pro Maxsaoudi-h/solar-icons18618 repos~11kAutomated safety check: NotesCustom licence
UI UX Pro Maxmajiayu000/spellbook287—~442Automated safety check: PassMIT
UniwindOhh-889/skyroc795—~1.4kAutomated safety check: PassMIT

Similar skills

  • Frontend Design

    avibebuilder/claude-prime

    Builds distinctive, production-grade UIs that avoid generic AI aesthetics.

    120 GitHub stars~2.1k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed
  • Design System

    WrongStack/WrongStack

    Use this skill BEFORE writing or restyling ANY user-facing interface.

    370 GitHub stars~3.9k tokensUpdated today
    Frontend & DesignAuto-check passed
  • UI UX Pro Max

    saoudi-h/solar-icons

    UI/UX design intelligence for web and mobile. An agent skill from saoudi-h/solar-icons.

    186 GitHub starsUsed in 18 repos~11k tokens
    Frontend & DesignAuto-check: notes
  • UI UX Pro Max

    majiayu000/spellbook

    A skill your agent uses when planning, building, designing, code review, refactor, fixing, improving, optimizing, enhancing, or checking UI/UX work.

    287 GitHub stars~442 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Uniwind

    Ohh-889/skyroc

    Uniwind — Tailwind CSS v4 styling for React Native. An agent skill from Ohh-889/skyroc.

    795 GitHub stars~1.4k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • UI UX Pro Max

    shobcoder/shob

    UI/UX design intelligence expert for web and mobile applications.

    576 GitHub stars~3.7k tokensUpdated 21 days ago
    Frontend & DesignAuto-check passed

Questions about Frontend UI Standards

What does Frontend UI Standards do?

A skill your agent uses when implementing, refactoring, or reviewing frontend UI across SwiftUI, React, React Native, Flutter, web, or mobile apps. Frontend UI Standards is an agent skill from MaxHan7/frontend-ui-standards-skill. Use when implementing, refactoring, or reviewing frontend UI across SwiftUI, React, React Native, Flutter, web, or mobile apps.

When should I use Frontend UI Standards?

Frontend UI Standards fits situations like: reviewing frontend UI across SwiftUI; tasks that involve Frontend development; tasks that involve Cross-platform mobile apps.

How do I install Frontend UI Standards in Claude Code?

Run `npx skills add MaxHan7/frontend-ui-standards-skill --skill frontend-ui-standards -a claude-code`. Or copy the skill folder (frontend-ui-standards in MaxHan7/frontend-ui-standards-skill) into .claude/skills/frontend-ui-standards in your project. Claude Code loads it when a task matches its description.

How do I install Frontend UI Standards in Codex?

Run `npx skills add MaxHan7/frontend-ui-standards-skill --skill frontend-ui-standards -a codex`. Or copy the skill folder (frontend-ui-standards in MaxHan7/frontend-ui-standards-skill) into .agents/skills/frontend-ui-standards in your project. Codex loads it when a task matches its description.

Can I use Frontend UI Standards in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add MaxHan7/frontend-ui-standards-skill --skill frontend-ui-standards -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontend-ui-standards, .gemini/skills/frontend-ui-standards, .github/skills/frontend-ui-standards and .opencode/skills/frontend-ui-standards in your project.

What does Frontend UI Standards need to run?

SKILL.md names no scripts, command-line tools or credentials: Frontend UI Standards is instructions for the agent only.

Does Frontend UI Standards access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Frontend UI Standards safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Frontend UI Standards use?

Frontend UI Standards is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Frontend UI Standards use?

About 2.4k tokens (SKILL.md is roughly 9.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Frontend UI Standards?

Skills that share tags, products or a category with Frontend UI Standards: Frontend Design (avibebuilder/claude-prime, 120 stars), Design System (WrongStack/WrongStack, 370 stars), UI UX Pro Max (saoudi-h/solar-icons, 186 stars) and UI UX Pro Max (majiayu000/spellbook, 287 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frontend UI Standards?

MaxHan7 (a GitHub user) maintains it in MaxHan7/frontend-ui-standards-skill, which has 106 GitHub stars. The repository was last updated on June 27, 2026.

Source: MaxHan7/frontend-ui-standards-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.