frontend-dev

Builds accessible UI components, state management, and client-side logic for React, Vue, Next.js, and Svelte.

Updated Aug 20, 2026
One-click install
npx skills add https://github.com/rhorba/RestoLedger --skill frontend-dev-rhorba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev
Source: https://github.com/rhorba/RestoLedger/tree/main/skills/frontend-dev
Command: npx skills add https://github.com/rhorba/RestoLedger --skill frontend-dev-rhorba

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building frontend interfaces involves many decisions—component architecture, state placement, styling approach, accessibility, and performance—and getting them wrong leads to unmaintainable code. This Skill provides structured guidance, checklists, and proven patterns so every component you build follows consistent, accessible, performant conventions. ## Core Features & Use Cases - Component Design Guidance: Enforces single-responsibility, composition, and props-down/events-up patterns with a standard component template. - State Management Decisions: Provides a decision table and tree for choosing between local state, global stores (Zustand/Pinia), server caches (TanStack Query/SWR), and URL params. - Accessibility & Performance Checklists: Applies WCAG 2.1 AA checks (keyboard navigation, contrast, ARIA) and performance rules (lazy loading, memoization, virtualization) to every component. - Use Case: Ask for a responsive modal component in React with Tailwind, and receive semantic, keyboard-navigable, focus-trapped code that follows your project's styling conventions. ## Quick Start Ask the assistant to build a responsive, accessible form component in React with Tailwind styling and client-side validation.

Frequently Asked Questions about frontend-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage state in a React application?

Choose state placement by scope: useState for UI-only state, lift to a parent for shared sibling state, Zustand or Context for app-wide state like auth and theme, and TanStack Query or SWR for server data. Avoid Redux until simpler options become genuinely painful.

How do I make a component accessible for screen readers?

Use semantic HTML elements like button instead of div with onClick, ensure keyboard operability, link form labels to inputs, and use aria-describedby for error messages. Modals must trap focus and restore it on close, and dynamic content should use aria-live regions.

Zustand vs Redux Toolkit for global state management?

Zustand suits lightweight global UI state like theme, modals, and auth with minimal boilerplate. Redux Toolkit fits large applications with complex state logic. Start with useState and prop drilling, and only adopt Redux when that becomes genuinely painful.

When should I use React Query instead of useState for data?

Use TanStack Query or SWR whenever the data comes from a server. These libraries handle caching, refetching, and loading states automatically, while useState is appropriate only for local UI state like open/close toggles and hover states.

Why does my React app re-render too often?

Excessive re-renders usually come from unstable prop references or unmemoized expensive computations. Use useCallback for stable function references and useMemo for costly calculations, but profile first since premature memoization adds complexity without benefit.

What are the limitations of utility-first CSS like Tailwind?

Tailwind trades naming decisions for verbose class strings and requires a build step. Alternatives include CSS Modules for scoped styles with full CSS features, or styled-components for co-located dynamic styles. Regardless of approach, use design tokens instead of hardcoded values.