agentleFS
erkandoganerkandogan/oh-my-team/skills/frontend-ui-ux/SKILL.md

frontend-ui-ux

Skill18 starsChanged 8 months agoMITView on GitHub

Frontend and UI/UX development guidance. Provides patterns for responsive design, accessibility, component architecture, state management, and visual consistency. Load this skill when working on any frontend task.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 16

    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:

    When working on frontend code, follow these principles:

    line 9
  2. Distinctive:

    Colocation: Keep styles, tests, and types near their component

    line 16
  3. Distinctive:

    Mobile-first: Start with the smallest breakpoint, enhance up

    line 20
  4. Distinctive:

    Fluid layouts: Use relative units (rem, %, vw/vh) over fixed pixels

    line 21
  5. Distinctive:

    Semantic HTML: Use proper elements (button, nav, main, aside)

    line 27
  6. Distinctive:

    ARIA when needed: Only when semantic HTML isn't sufficient

    line 28
  7. Distinctive:

    Keyboard navigation: All interactive elements must be keyboard-accessible

    line 29
  8. Distinctive:

    Screen readers: Test with VoiceOver/NVDA, use aria-label/aria-describedby

    line 32
  9. Distinctive:

    Server state: Use the project's data fetching library (React Query, SWR, etc.)

    line 37
  10. Distinctive:

    Form state: Use the project's form library (React Hook Form, Formik, etc.)

    line 39
  11. Distinctive:

    Global state: Only for truly app-wide concerns (theme, auth, locale)

    line 40
  12. Distinctive:

    Design tokens: Use the project's existing variables/tokens for colors, spacing, typography

    line 44
  13. Distinctive:

    Spacing scale: Follow the project's spacing system (don't use arbitrary values)

    line 45
  14. Distinctive:

    Typography: Use existing type scale, don't create new sizes

    line 46
  15. Distinctive:

    Icons: Use the project's icon system/library

    line 47
  16. Distinctive:

    Bundle awareness: Check impact of new dependencies

    line 53

“Common” is measured: kept by at least 6 in 10 of the 5 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 UI/UX Development Guide

When working on frontend code, follow these principles:

Component Architecture

  • Single Responsibility: Each component does one thing well
  • Composition over inheritance: Build complex UIs from simple, composable pieces
  • Props down, events up: Data flows down, actions flow up
  • Colocation: Keep styles, tests, and types near their component

Responsive Design

  • Mobile-first: Start with the smallest breakpoint, enhance up
  • Fluid layouts: Use relative units (rem, %, vw/vh) over fixed pixels
  • Breakpoint strategy: Match the project's existing breakpoints
  • Touch targets: Minimum 44x44px for interactive elements

Accessibility (A11y)

  • Semantic HTML: Use proper elements (button, nav, main, aside)
  • ARIA when needed: Only when semantic HTML isn't sufficient
  • Keyboard navigation: All interactive elements must be keyboard-accessible
  • Color contrast: WCAG AA minimum (4.5:1 for text, 3:1 for large text)
  • Focus management: Visible focus indicators, logical tab order
  • Screen readers: Test with VoiceOver/NVDA, use aria-label/aria-describedby

State Management

  • Local state first: useState/useReducer before reaching for global state
  • Server state: Use the project's data fetching library (React Query, SWR, etc.)
  • URL state: Filters, pagination, tabs → URL parameters
  • Form state: Use the project's form library (React Hook Form, Formik, etc.)
  • Global state: Only for truly app-wide concerns (theme, auth, locale)

Visual Consistency

  • Design tokens: Use the project's existing variables/tokens for colors, spacing, typography
  • Spacing scale: Follow the project's spacing system (don't use arbitrary values)
  • Typography: Use existing type scale, don't create new sizes
  • Icons: Use the project's icon system/library

Performance

  • Lazy loading: Code-split routes and heavy components
  • Image optimization: Proper formats (WebP/AVIF), srcset, lazy loading
  • Bundle awareness: Check impact of new dependencies
  • Render optimization: Memoize expensive computations, avoid unnecessary re-renders

Testing

  • Component tests: Render, interact, assert on DOM output
  • Visual regression: Screenshot tests for critical UI
  • Accessibility tests: Automated a11y checks (axe-core)
  • User flow tests: E2E tests for critical paths

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.