Claude Code PWA Development Skill for Public Article Offline Fallbacks
Choose a caching strategy by update frequency and offline needs. Reopen cached public reading pages and define what happens when content has not been cached.
中文Install in Claude Code
Use Claude Code with the pinned skill and a web project where a Service Worker can be tested in a browser. The exercise uses public content only.
- Get the complete `skills/pwa-development` directory from the pinned revision.
- Copy it into the target project's `.claude/skills/` and confirm `.claude/skills/pwa-development/SKILL.md`. Start Claude Code at the project root and describe a task matching the skill's purpose.
Example task
Plan offline behavior for a fictional notice reader. A was read online and B has never been loaded. Define what the user sees when opening each offline.What to check
A can use its public cached copy. B shows a clear offline explanation. After reconnecting, verify that public content can refresh.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should every request use cache first?
Choose based on update frequency and purpose. Cache first suits static assets. Handle private or freshness-sensitive requests according to the project policy.