Agent skill · software engineering · erichowens
pwa-expert
Progressive Web App development with Service Workers, offline support, and app-like behavior. Use for caching strategies, install prompts, push notifications, background sync. Activate on "PWA",
Why this skill is useful
Provides specific caching strategies and Service Worker implementations that the AI wouldn't reliably generate on its own.
What it needs
Requires workbox-cli installed locally. About 5k tokens when loaded. Last updated 2026-07-14. 180 stars on the source repository.
What this skill does
Progressive Web App Expert Build installable, offline-capable web apps with Service Workers, smart caching, and native-like experiences. When to Use This Skill Making a web app installable on mobile/desktop Implementing offline functionality Setting up Service Worker caching strategies Handling install prompts (beforeinstallprompt) Background sync for offline-first apps Managing PWA update flows Creating web app manifests When NOT to Use This Skill Native app development → Use React Native, Flutter, or native SDKs General web performance → Use Lighthouse/performance auditing tools Server-side rendering issues → Use Next.js/framework-specific docs Push notifications only → Consider dedicated push notification services Simple static sites → PWA overhead may not be worth it Core Concepts What Makes a PWA Installable 1. HTTPS (or localhost for dev) 2. Web App Manifest with required fields 3. Service Worker with fetch handler 4. Icons (192×192 and 512×512 minimum) The PWA Stack Web App Manifest Complete manifest.json Display Modes Mode Description ------ ------------- fullscreen No browser UI, full screen standalone App-like, no URL bar (recommended) minimal-ui Some browser controls browser Normal browser tab Link in HTML Service Worker Basics Registration Basic Service Worker Structure See: references/service-worker-patterns.md for caching strategy implementations Caching Strategies Strategy Best For Tradeoff ---------- ---------- ---------- Cache-First Static assets, fonts, images Stale until cache updated Network-First API data, user content Slower, needs connectivity Stale-While-Revalidate Balance freshness/speed Background updates Network-Only Auth, real-time data No offline support Cache-Only Versioned assets Never updates See: references/service-worker-patterns.md for full implementations Install Prompts Handle the beforeinstallprompt event to show a custom install UI: See: references/install-prompt.md for full usePWAInstall hook and component Offline Experience K …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills erichowens/pwa-expert