# Pwa

> PWA - service workers, offline support. Use when building PWA features.

- Skill: `majiayu000/pwa` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/pwa`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/pwa/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/pwa

---


# PWA Guideline

## Tech Stack

* **Framework**: Next.js
* **Platform**: Vercel

## Non-Negotiables

* Service worker must not cache personalized/sensitive/authorized content
* Cache invalidation on deploy must be correct (no stale content)

## Context

A PWA is an opportunity to deliver native-like experience without an app store. But a bad PWA is worse than no PWA — stale content, broken offline states, and confusing installation prompts erode trust.

Consider: what would make users want to install this? What should work offline? How do we handle the transition between online and offline gracefully?

## Driving Questions

* Would users actually want to install this as an app? Why or why not?
* What should the offline experience be, and what is it today?
* What happens when users go offline in the middle of something important?
* How do we handle cache invalidation without breaking the experience?
* What push notification opportunities exist that we're not using?
* What would make the installed experience better than the browser experience?

