React PWA Designer
Design and build modern React progressive web applications using SuperDesign methodology, shadcn/ui components, and React best practices.
When to Use This Skill
Trigger this skill when the user requests:
- Designing or building React applications
- Creating progressive web apps (PWAs)
- Implementing shadcn/ui components
- Building modern, responsive web interfaces
- Creating React component libraries
- Designing with Tailwind CSS and modern design systems
- Converting designs to React components
Reference File Index
Getting Started
- README.md - Complete skill overview
- @reference/setup-guide.md - Project initialization, dependencies, configuration
- templates/.superdesign/README.md - SuperDesign directory usage
React Patterns
- @reference/react-hooks.md - Custom hooks and patterns
- @reference/component-patterns.md - Component architecture, compound components, render props
- @reference/state-management-patterns.md - useState vs Context vs Zustand vs React Query
Styling & Layout
- @reference/dynamic-styling-patterns.md - CSS Variables, Tailwind, inline styles
- @reference/layout-patterns.md - Flex scrolling, grid, responsive design, text overflow
- @reference/shadcn-components.md - shadcn/ui integration (check BEFORE MCP calls)
PWA
- @reference/pwa-checklist.md - PWA requirements checklist
- @reference/pwa-icon-validation.md - Icon validation (CRITICAL - read before generating icons!)
- @reference/pwa-troubleshooting.md - Installation, service worker, offline issues
Quality
- @reference/code-quality-tooling.md - ESLint, TypeScript, Prettier configuration
- @reference/common-pitfalls.md - Anti-patterns to avoid
- @reference/accessibility.md - WCAG AA patterns and examples
- @reference/implementation-examples.md - Complete code examples (Dashboard, Auth Flow)
Templates
- templates/vite.config.ts - Vite + PWA configuration
- templates/tailwind.config.js - Tailwind CSS setup
- templates/tsconfig.json - TypeScript configuration
- templates/manifest.json - PWA manifest template
templates/component-boilerplate.tsx - React component template
templates/custom-hook-template.ts - Custom hook structure
templates/service-worker.ts - Manual service worker implementation
SuperDesign Workflow
Four-phase methodology. Get user approval before proceeding at each phase.
Phase 1: Discovery & Planning
- Understand Requirements - App purpose, target users, PWA needs (offline, installable, notifications)
- Component Discovery - Use
mcp__shadcn__getComponents() and mcp__shadcn__getComponent() to identify matching components
- Architecture Planning - Component hierarchy, state management, routing, data fetching
Phase 2: Design
Reference: See SuperDesign.md for complete methodology.
- Layout Design - ASCII wireframes showing component structure and responsive breakpoints
- Theme Design - MUST use tool calls (never text output), save to
.superdesign/design_iterations/theme_[n].css
- Animation Design - Micro-syntax specs for transitions, loading states, interactions
- Component Implementation - Compose from shadcn primitives with proper TypeScript types
Phase 3: PWA Implementation
- Icons - MUST READ @reference/pwa-icon-validation.md first (dimension mismatches = silent install failure)
- Manifest - Use
templates/manifest.json as starting point
- Service Worker - Vite PWA Plugin (recommended) or manual via
templates/service-worker.ts
- Verify - See @reference/pwa-checklist.md for complete requirements
Phase 4: Development
- React patterns → @reference/react-hooks.md, @reference/component-patterns.md
- State management → @reference/state-management-patterns.md
- TypeScript & linting → @reference/code-quality-tooling.md
- Performance - React.memo, virtualization, code splitting, bundle monitoring
- Troubleshooting → @reference/pwa-troubleshooting.md
Session Scoping
- Limit to 15-20 files maximum per session
- Focus on single feature or component per iteration
- Complete cycle: Implementation → Tests → Commit before next scope
Tool Usage Decision Tree
Need component info?
├─ Common component details → Check @reference/shadcn-components.md FIRST
├─ Detailed implementation/variants → mcp__shadcn__getComponent("name")
└─ List all available components → mcp__shadcn__getComponents()
Need library documentation?
├─ React hooks/patterns → Check @reference/react-hooks.md FIRST
├─ State management → Check @reference/state-management-patterns.md FIRST
├─ Styling decisions → Check @reference/dynamic-styling-patterns.md FIRST
├─ PWA requirements → Check @reference/pwa-checklist.md FIRST
├─ Need official/latest docs → mcp__context7__resolve_library_id() then get_library_docs()
└─ Common Context7 libraries:
/facebook/react, /vite-pwa/vite-plugin-pwa, /GoogleChrome/workbox,
/tanstack/react-query, /pmndrs/zustand, /shadcn/ui
Rule: Always check reference files before MCP calls to save tokens.
Quick Decision Trees
Component Selection
Need interactive element?
├─ Button/action → <Button>
├─ Link/navigation → <Link> or <a>
├─ Input field → <Input> or <Textarea>
├─ Toggle → <Switch> or <Checkbox>
└─ Selection → <Select> or <RadioGroup>
Need layout container?
├─ Content box → <Card>
├─ Modal → <Dialog>
├─ Side panel → <Sheet>
├─ Dropdown → <DropdownMenu>
└─ Sections → <Tabs> or <Accordion>
Need feedback?
├─ Loading → <Skeleton> or <Progress>
├─ Notification → <Toast> or <Alert>
├─ Hint → <Tooltip>
└─ Confirmation → <AlertDialog>
State Management
What kind of state?
├─ Local to component → useState
├─ Shared (2-3 components) → Props or useContext
├─ Complex app state → Zustand or Jotai
├─ Server data → React Query or SWR
└─ Form state → React Hook Form + Zod
Critical Reminders
- ALWAYS use actual tool calls - Never output "Called tool: ..." as text
- Get user approval at each workflow step before proceeding
- Use tool calls for theme generation - Never output CSS as text
- Save to .superdesign/design_iterations/ for all design artifacts
- Check reference files before MCP for component details
- Follow React best practices - hooks, TypeScript, composition
- PWA icons MUST match manifest exactly - see @reference/pwa-icon-validation.md
- Avoid bootstrap blue colors - use modern design systems
- Mobile-first responsive - always design for smallest screen first
- Accessibility required - ARIA labels, keyboard nav, semantic HTML, WCAG AA contrast
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: react-pwa-designer3description: Architect modern React progressive web apps with offline-first capabilities and responsive interfaces. Integrates shadcn/ui component library, service worker patterns, and mobile-friendly layouts. Consult when building installable web applications or designing component-driven UIs. Use when this capability is needed.4---56# React PWA Designer78Design and build modern React progressive web applications using SuperDesign methodology, shadcn/ui components, and React best practices.910## When to Use This Skill1112Trigger this skill when the user requests:13- Designing or building React applications14- Creating progressive web apps (PWAs)15- Implementing shadcn/ui components16- Building modern, responsive web interfaces17- Creating React component libraries18- Designing with Tailwind CSS and modern design systems19- Converting designs to React components2021## Reference File Index2223### Getting Started24- [README.md](README.md) - Complete skill overview25- @reference/setup-guide.md - Project initialization, dependencies, configuration26- [templates/.superdesign/README.md](templates/.superdesign/README.md) - SuperDesign directory usage2728### React Patterns29- @reference/react-hooks.md - Custom hooks and patterns30- @reference/component-patterns.md - Component architecture, compound components, render props31- @reference/state-management-patterns.md - useState vs Context vs Zustand vs React Query3233### Styling & Layout34- @reference/dynamic-styling-patterns.md - CSS Variables, Tailwind, inline styles35- @reference/layout-patterns.md - Flex scrolling, grid, responsive design, text overflow36- @reference/shadcn-components.md - shadcn/ui integration (check BEFORE MCP calls)3738### PWA39- @reference/pwa-checklist.md - PWA requirements checklist40- @reference/pwa-icon-validation.md - Icon validation (CRITICAL - read before generating icons!)41- @reference/pwa-troubleshooting.md - Installation, service worker, offline issues4243### Quality44- @reference/code-quality-tooling.md - ESLint, TypeScript, Prettier configuration45- @reference/common-pitfalls.md - Anti-patterns to avoid46- @reference/accessibility.md - WCAG AA patterns and examples47- @reference/implementation-examples.md - Complete code examples (Dashboard, Auth Flow)4849### Templates50- [templates/vite.config.ts](templates/vite.config.ts) - Vite + PWA configuration51- [templates/tailwind.config.js](templates/tailwind.config.js) - Tailwind CSS setup52- [templates/tsconfig.json](templates/tsconfig.json) - TypeScript configuration53- [templates/manifest.json](templates/manifest.json) - PWA manifest template54- `templates/component-boilerplate.tsx` - React component template55- `templates/custom-hook-template.ts` - Custom hook structure56- `templates/service-worker.ts` - Manual service worker implementation5758## SuperDesign Workflow5960Four-phase methodology. **Get user approval before proceeding at each phase.**6162### Phase 1: Discovery & Planning63641. **Understand Requirements** - App purpose, target users, PWA needs (offline, installable, notifications)652. **Component Discovery** - Use `mcp__shadcn__getComponents()` and `mcp__shadcn__getComponent()` to identify matching components663. **Architecture Planning** - Component hierarchy, state management, routing, data fetching6768### Phase 2: Design6970**Reference**: See [SuperDesign.md](SuperDesign.md) for complete methodology.71721. **Layout Design** - ASCII wireframes showing component structure and responsive breakpoints732. **Theme Design** - MUST use tool calls (never text output), save to `.superdesign/design_iterations/theme_[n].css`743. **Animation Design** - Micro-syntax specs for transitions, loading states, interactions754. **Component Implementation** - Compose from shadcn primitives with proper TypeScript types7677### Phase 3: PWA Implementation78791. **Icons** - MUST READ @reference/pwa-icon-validation.md first (dimension mismatches = silent install failure)802. **Manifest** - Use `templates/manifest.json` as starting point813. **Service Worker** - Vite PWA Plugin (recommended) or manual via `templates/service-worker.ts`824. **Verify** - See @reference/pwa-checklist.md for complete requirements8384### Phase 4: Development8586- **React patterns** → @reference/react-hooks.md, @reference/component-patterns.md87- **State management** → @reference/state-management-patterns.md88- **TypeScript & linting** → @reference/code-quality-tooling.md89- **Performance** - React.memo, virtualization, code splitting, bundle monitoring90- **Troubleshooting** → @reference/pwa-troubleshooting.md9192### Session Scoping9394- Limit to 15-20 files maximum per session95- Focus on single feature or component per iteration96- Complete cycle: Implementation → Tests → Commit before next scope9798## Tool Usage Decision Tree99100```101Need component info?102├─ Common component details → Check @reference/shadcn-components.md FIRST103├─ Detailed implementation/variants → mcp__shadcn__getComponent("name")104└─ List all available components → mcp__shadcn__getComponents()105106Need library documentation?107├─ React hooks/patterns → Check @reference/react-hooks.md FIRST108├─ State management → Check @reference/state-management-patterns.md FIRST109├─ Styling decisions → Check @reference/dynamic-styling-patterns.md FIRST110├─ PWA requirements → Check @reference/pwa-checklist.md FIRST111├─ Need official/latest docs → mcp__context7__resolve_library_id() then get_library_docs()112└─ Common Context7 libraries:113 /facebook/react, /vite-pwa/vite-plugin-pwa, /GoogleChrome/workbox,114 /tanstack/react-query, /pmndrs/zustand, /shadcn/ui115```116117**Rule**: Always check reference files before MCP calls to save tokens.118119## Quick Decision Trees120121### Component Selection122123```124Need interactive element?125├─ Button/action → <Button>126├─ Link/navigation → <Link> or <a>127├─ Input field → <Input> or <Textarea>128├─ Toggle → <Switch> or <Checkbox>129└─ Selection → <Select> or <RadioGroup>130131Need layout container?132├─ Content box → <Card>133├─ Modal → <Dialog>134├─ Side panel → <Sheet>135├─ Dropdown → <DropdownMenu>136└─ Sections → <Tabs> or <Accordion>137138Need feedback?139├─ Loading → <Skeleton> or <Progress>140├─ Notification → <Toast> or <Alert>141├─ Hint → <Tooltip>142└─ Confirmation → <AlertDialog>143```144145### State Management146147```148What kind of state?149├─ Local to component → useState150├─ Shared (2-3 components) → Props or useContext151├─ Complex app state → Zustand or Jotai152├─ Server data → React Query or SWR153└─ Form state → React Hook Form + Zod154```155156## Critical Reminders1571581. **ALWAYS use actual tool calls** - Never output "Called tool: ..." as text1592. **Get user approval** at each workflow step before proceeding1603. **Use tool calls for theme generation** - Never output CSS as text1614. **Save to .superdesign/design_iterations/** for all design artifacts1625. **Check reference files before MCP** for component details1636. **Follow React best practices** - hooks, TypeScript, composition1647. **PWA icons MUST match manifest exactly** - see @reference/pwa-icon-validation.md1658. **Avoid bootstrap blue colors** - use modern design systems1669. **Mobile-first responsive** - always design for smallest screen first16710. **Accessibility required** - ARIA labels, keyboard nav, semantic HTML, WCAG AA contrast168169---170> Converted and distributed by [TomeVault](https://tomevault.io/claim/aeyeops) — claim your Tome and manage your conversions.171<!-- tomevault:4.0:skill_md:2026-04-15 -->