agentsclimarketplace

Ui patterns

Skill Rixmerz/flowtrace-debugger/.claude/skills/ui-patterns

UI/Frontend architecture reference - React 19, Next.js 15, Vue 3, Svelte 5, Angular 19, CSS modern features, component libraries, state management, and production best practices for 2024-2025. Use when building frontend UIs, selecting frameworks, reviewing component code, or making frontend architecture decisions.From its SKILL.md

Install
npx -y skills add Rixmerz/flowtrace-debugger --skill ui-patterns

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.8 KB, as published. Nobody here has run it

UI/Frontend Architecture Patterns

When to use this skill

  • Making frontend framework or library selection decisions
  • Reviewing component architecture and UI code quality
  • Selecting state management, styling, or build tool strategies
  • Understanding modern rendering patterns (SSR, SSG, RSC, Islands)
  • Building accessible, performant, production-grade user interfaces

Framework Decision Table

ScenarioDefault choiceWhy
Complex SPA with rich interactionsReact 19Largest ecosystem, Server Components, mature tooling
SEO-critical app with dynamic dataNext.js 15SSR/SSG/ISR, App Router, Server Actions
Progressive adoption in existing appVue 3Gentle learning curve, Composition API, incremental
Performance-critical with small bundleSvelte 5Compiled output, no virtual DOM, Runes reactivity
Enterprise with large teamsAngular 19Opinionated structure, Signals, strong typing, DI built-in
Content-heavy / marketing siteAstro 5Islands architecture, zero JS by default, any framework
Signals-first reactive modelSolid.js 2Fine-grained reactivity, no virtual DOM, React-like JSX
Resumable, instant-load appsQwik 2Resumability instead of hydration, lazy execution

Rendering Strategy Guide

StrategyWhen to useTrade-offs
CSR (Client-Side Rendering)Internal tools, dashboards, auth-gated appsFast navigation, poor SEO, blank initial load
SSR (Server-Side Rendering)Dynamic content needing SEO, personalized pagesFresh data, higher server cost, TTFB matters
SSG (Static Site Generation)Blogs, docs, marketing pagesFastest TTFB, stale until rebuild
ISR (Incremental Static Regen)E-commerce catalogs, large content sitesSSG speed + periodic freshness
Streaming SSRComplex pages with mixed data speedsProgressive rendering, reduced TTFB
IslandsContent sites with isolated interactivityMinimal JS, partial hydration
RSC (React Server Components)Next.js apps, data-heavy pagesZero client bundle for server parts, composable

State Management Decision

ComplexityApproachTools
Component-localuseState / useReducer / $stateBuilt-in framework primitives
Shared across siblingsLift state + contextReact Context, Vue provide/inject
Global client stateLightweight storeZustand, Jotai, Pinia, Signals
Server/async stateData fetching libraryTanStack Query, SWR, Apollo Client
Complex workflowsState machinesXState, Robot
Form stateForm libraryReact Hook Form, VeeValidate, Superforms
URL stateRouter paramsnuqs, next-usequerystate, TanStack Router

Production Results

CompanyStackOutcome
Vercel (Next.js 15)RSC + Streaming SSR50% reduction in client JS, improved LCP
Shopify HydrogenRemix/ReactSub-second page loads for e-commerce
IKEASvelte + SvelteKit50% less code than React equivalent, faster TTI
Adobe SpectrumReact + Web ComponentsCross-framework design system serving all Adobe apps
DiscordReact 18 + Rust (WASM)Reduced message rendering from 50ms to 2ms
The GuardianIslands (Astro-like)80% less JavaScript shipped to readers

Core Web Vitals Targets (2024-2025)

MetricGoodNeeds ImprovementPoor
LCP (Largest Contentful Paint)< 2.5s2.5s - 4.0s> 4.0s
INP (Interaction to Next Paint)< 200ms200ms - 500ms> 500ms
CLS (Cumulative Layout Shift)< 0.10.1 - 0.25> 0.25

Supporting files

  • frameworks.md -- Frameworks, libraries, and tools by domain
  • design-patterns.md -- UI component and state patterns with code examples
  • architecture.md -- Frontend architecture patterns (FSD, Micro Frontends, Islands)
  • best-practices.md -- Performance, accessibility, security, TypeScript for UI
  • language-features.md -- Modern Web Platform features (View Transitions, Container Queries, etc.)

Related Skills

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.