progressive-web-app · davila7 — Claude Code skill: what it does, how to install
Guides Claude Code in turning web projects into installable PWAs with offline caching, web app manifests, and custom install prompts.
npx claude-code-templates@latest --skill web-development/progressive-web-appWhat progressive-web-app does
This skill provides instructions for generating Progressive Web App setups inside web projects. It helps the assistant assemble the base file structure, including index.html, manifest.json, the service worker script sw.js, and the registration module app.js. The model learns to pre-cache the application shell and structure cache versioning properly.
The instructions handle custom installation buttons by capturing the beforeinstallprompt browser event. For icons, it configures maskable formats to adapt to mobile screens, while adding meta tags for iOS Safari compatibility. Deployments strictly demand HTTPS for service worker registration, although development works on localhost. Leaving out offline.html breaks the installation flow.
What it helps with
- Configure
manifest.jsonwith adaptive maskable icons - Implement app shell caching in service worker
sw.js - Handle
beforeinstallpromptto trigger install flows manually - Supply a fallback
offline.htmlscreen when network requests fail
Example prompts for the agent
- Convert this project into an installable PWA with offline caching
- Generate a web app manifest and service worker registration script
- Add a custom add-to-home-screen prompt button for mobile users
How to install progressive-web-app
1claude-code-templates
npx claude-code-templates@latest --skill web-development/progressive-web-app2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill progressive-web-app -a claude-code3Manually: put the files in place
~/.claude/skills/progressive-web-app/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/progressive-web-app/
Manually: put the files in place
.agents/skills/progressive-web-app/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/progressive-web-app/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates progressive-web-app2Manually: put the files in place
.github/skills/progressive-web-app/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/web-development/progressive-web-appManually: put the files in place
.devin/skills/progressive-web-app/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about progressive-web-app
How to install progressive-web-app in Claude Code?
Run npx claude-code-templates@latest --skill web-development/progressive-web-app in your project terminal.
What does progressive-web-app do?
It instructs the coding assistant how to scaffold Progressive Web Apps with service workers, manifest metadata, and offline fallbacks.
What happens if offline.html is missing?
The PWA setup fails because the service worker installation routine requires offline.html in its pre-cached app shell list.
Similar skills
All skills for Frontend and UI →progressive-web-app by other authors comes first.