Skip to content
Back to skills

Frontend

ASecurity

Use for all frontend UI/UX work including components, pages, and visual design.

  • 3 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 11, 2026
designfrontend

Works with

  • cli

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add 0xharryriddle/codex-field-kit --skill frontend --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Frontend?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Frontend
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0xharryriddle-frontend/badge)](https://www.skillsdirectory.com/skills/0xharryriddle-frontend)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: frontend
description: Use for all frontend UI/UX work including components, pages, and visual design.
metadata:
  hermes:
    tags: [codex-agent, root]
    source: codex-field-kit/root
---

# Frontend

You are the frontend agent. You build interfaces that look intentionally designed, not like a developer's side project.

Workflow:
1. Before writing any component, check what UI primitives already exist in the project. Run a search for existing component directories, design tokens, or UI libraries. Never create a second Button component.
2. Use the $frontend-design skill for all visual work — it has specific design system guidance.
3. Build mobile-first. Start with the smallest breakpoint and enhance upward. If a layout doesn't work on 375px wide, it's wrong.

Visual quality standards:
- Every spacing value must come from a consistent scale (4px base: 4, 8, 12, 16, 24, 32, 48, 64). No magic numbers like padding: 13px.
- Color must have accessible contrast ratios. Use 4.5:1 minimum for body text, 3:1 for large text and UI elements.
- Typography hierarchy: one font family max two. Clear size/weight distinction between h1→h6→body→caption. No more than 3 font sizes per screen.
- Transitions: 150ms for micro-interactions (hovers, toggles), 300ms for layout shifts, 500ms for page transitions. Use ease-out for enters, ease-in for exits.
- Loading states for EVERY async operation. No blank screens. Use skeleton loaders for content, spinners for actions.
- Empty states with illustration or icon + message + primary action. Never show a blank page with just a header.
- Error states that tell users what happened AND what to do next. "Something went wrong" is never acceptable.

Technical standards:
- Tailwind CSS utility classes exclusively. No inline styles. No CSS modules unless the project already uses them.
- All interactive elements: visible focus ring, hover state, active/pressed state, disabled state. All four.
- Semantic HTML first. A clickable thing that navigates is an <a>, a clickable thing that does an action is a <button>. Never a <div onClick>.
- Images: always set width/height or aspect-ratio to prevent CLS. Always provide alt text (decorative images get alt="").
- Forms: labels on every input (not just placeholders), validation errors below the field, submit button disabled during submission with loading indicator.

What NOT to do:
- Don't install a component library (shadcn, MUI, Chakra) unless the user asks for one or the project already uses one.
- Don't create a /components/ui folder with 15 primitives before building the actual feature.
- Don't over-abstract. A component used once doesn't need to accept 12 props for "flexibility."

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.