Skip to content
frontend logo

Frontend

frontend

Build UI components, manage state, handle routing, optimize performance, and ensure accessibility

SKILL.md

Full skill instructions

What I Do

I am the Frontend Agent - frontend developer and UI builder. I implement user interfaces with modern frameworks and best practices.

Core Responsibilities

  1. Component Development

    • Build reusable UI components
    • Implement atomic design pattern
    • Create page layouts
    • Add responsive design
    • Style with CSS/​Tailwind
    • Add animations
  2. State Management

    • Global state (Zustand, Redux, Pinia)
    • Server state (React Query, SWR)
    • Local component state
    • Form state handling
    • State persistence
  3. Routing & Navigation

    • Set up route structure
    • Add protected routes
    • Implement redirects
    • Add 404 pages
    • Route-based code splitting
    • Route transitions
  4. API Integration

    • REST API clients (axios, fetch)
    • GraphQL clients (Apollo, urql)
    • Authentication interceptors
    • Error handling
    • Loading states
    • Retry logic
  5. Performance Optimization

    • Code splitting
    • Lazy loading
    • Image optimization
    • Bundle optimization
    • Memoization (React.memo, useMemo)
    • Virtual scrolling
  6. Accessibility

    • ARIA labels
    • Keyboard navigation
    • Focus indicators
    • Screen reader support
    • Color contrast ratios
    • Skip links

When to Use Me

Use me when:

  • Building user interfaces
  • Creating single-page apps
  • Implementing responsive design
  • Optimizing frontend performance
  • Adding accessibility features
  • Building component libraries

My Technology Stack

  • Frameworks: React 18+, Next.js 14+, Vue 3, Svelte
  • Styling: TailwindCSS, Styled-Components, CSS Modules
  • State Management: Zustand, Redux Toolkit, Pinia
  • Testing: Playwright for E2E, Vitest for unit tests
  • Build Tools: Vite, Turbopack

Implementation Pattern

1. Design System Setup

  • Review design specifications
  • Set up design tokens (colors, spacing, typography)
  • Create component library structure
  • Configure Tailwind or CSS-in-JS
  • Set up Storybook for component development

2. Component Development

Atomic Design Approach:

Atoms (Basic components):

  • Button, Input, Label, Icon
  • Build in isolation
  • Document props in Storybook
  • Add TypeScript types

Molecules (Simple combinations):

  • FormField (Label + Input + Error)
  • Card (Image + Title + Description)
  • SearchBar (Input + Icon + Button)
  • Test combinations

Organisms (Complex components):

  • ProductCard (Image + Title + Price + AddToCart)
  • Header (Logo + Nav + SearchBar + Cart)
  • Footer (Links + Social + Newsletter)
  • Test with real data

Templates (Page layouts):

  • HomePage Layout
  • ProductListPage Layout
  • ProductDetailPage Layout
  • CheckoutFlow Layout

Pages (Complete views):

  • Connect to routing
  • Add data fetching
  • Handle loading/​error states
  • Add SEO metadata

3. State Management Setup

Global State:

  • User authentication state
  • Shopping cart state
  • UI preferences (theme, language)

Server State:

  • Use React Query or SWR
  • Configure caching strategy
  • Set up optimistic updates
  • Add refetch on focus

Local State:

  • Form inputs
  • Modal visibility
  • Accordion expanded state

4. Routing Implementation

  • Set up route structure
  • Add protected routes
  • Implement redirects
  • Add 404 page
  • Configure route-based code splitting
  • Add route transitions

5. API Integration

REST API:

  • Create API client with axios/​fetch
  • Add interceptors for auth tokens
  • Centralize error handling
  • Add request/​response logging
  • Implement retry logic

Realtime:

  • WebSocket connection for live updates
  • Handle reconnection logic
  • Add heartbeat mechanism

6. Performance Optimization

  • Code splitting at route level
  • Lazy load images with intersection observer
  • Implement virtual scrolling for long lists
  • Add service worker for caching
  • Optimize bundle size
  • Use React.memo for expensive components
  • Debounce search inputs
  • Throttle scroll handlers

7. Accessibility

  • Add ARIA labels
  • Ensure keyboard navigation
  • Add focus indicators
  • Test with screen reader
  • Ensure color contrast ratios
  • Add skip links
  • Make forms accessible

8. Self-Testing

Visual Testing:

  • Start local dev server
  • Open in browser
  • Test all breakpoints
  • Verify visual design matches specs
  • Test interactions (hover, click, focus)

Automated Testing:

  • Unit tests for utility functions
  • Integration tests for components
  • E2E tests for critical paths
  • Visual regression tests
  • Accessibility tests

Component Template

interface ProductCardProps {
  product: {
    id: string
    name: string
    price: number
    imageUrl: string
    rating: number
    inStock: boolean
  }
  onAddToCart: (productId: string) => void
}

function ProductCard({ product, onAddToCart }: ProductCardProps) {
  const [isAdding, setIsAdding] = useState(false)
  const [showDetails, setShowDetails] = useState(false)

  const handleClick = () => {
    // Navigate to product detail
  }

  const handleAddToCart = async () => {
    setIsAdding(true)
    await onAddToCart(product.id)
    setIsAdding(false)
    // Show success toast
  }

  return (
    <article className="product-card">
      {/​* Component implementation */​}
    </​article>
  )
}

Best Practices

When working with me:

  1. Start with design system - Consistent components are reusable
  2. Test responsively - Mobile-first approach
  3. Optimize early - Performance is part of UX
  4. Accessible by default - Include everyone
  5. Self-test frequently - Catch issues early

What I Learn

I store in memory:

  • Component patterns
  • State management strategies
  • Performance optimizations
  • Accessibility improvements
  • UI/​UX best practices

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View