- Home
- Skills
- Mobile Development
- PWA Audit & Fix: Installable, Offline, iPhone-Ready
PWA Audit & Fix: Installable, Offline, iPhone-Ready
by Nate Freed
Finds why your web app won't install or breaks on phones, especially iPhone, then fixes it with drop-in templates for a plain service worker, vite-plugin-pwa or Next.js.
$5
PWA Audit & Fix: Installable, Offline, iPhone-Ready
Example session with this skill installed
Our field crew installs our React app (Vite, hand-written public/sw.js) on iPhones. They say the top bar sits under the clock, the app opens to a white screen when there's no signal, and they lose half-filled inspection forms when the phone locks. It also reloads by itself after we deploy. Can you check it and fix it?
- Read your context and instructions
- Compiled the pwa audit
- Generated the document
PWA audit: field-inspect (setup: vite, hand-written sw.js). Exit 1: 6 high, 11 medium, 6 low, 1 info.
Verdict: installable, but it breaks on iPhone as your crew reported.
Fix first
- HTM002 index.html:5: black-translucent status bar without viewport-fit=cover, so the top bar sits under the clock. Use head-tags.html.
- SW014 + SW015 public/sw.js:14,19: cache-first for everything, and /api/inspections responses are stored: stale deploys, and one inspector's data on the next person's phone. Replace with templates/sw.js.
- SW013: no offline page, hence the white screen with no signal. Add offline.html and the app-shell fallback.
- SW017 + SW018 + RLD001: skipWaiting, an unguarded controllerchange reload and a reload on 'online' restart the app mid-inspection. Use the register-sw.ts update prompt.
- ST001 + ST002 InspectionForm.tsx:26: the form lives only in useState, behind a beforeunload warning iOS never fires. usePersistentDraft, keyed per site.
- HTM006 + MAN025: SVG apple-touch-icon; icon-512.png is really 256px. Needs a 180x180 PNG and a real 512 export.
Fix next: unversioned cache (SW011, SW012), 100vh and fixed tab bar (CSS001, CSS002), no maskable icon.
Polish: short_name, manifest id, theme-color mismatch, 14px inputs, iPhone install hint.
Re-run after the approved fixes: only icon-artwork findings left. The app opens offline and keeps drafts; site data and Submit still need signal (offline sync is out of scope). Next: the device test plan.
index.html
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
This skill audits a PWA and then fixes it, for apps people actually run from a phone's home screen. A read-only Python script checks your project or build folder. It covers the manifest and the real pixel sizes of your icon files, the head tags iPhones need, and the service worker: scope, versioned caches, cleanup, precached files that really exist, offline fallback, page strategy, and API or auth responses that should never be cached. It also flags update flows that reload the page while someone is typing, logouts that leave cached data on a shared device, state lost when iOS kills a backgrounded app, 100vh and safe-area layout bugs, and input zoom. Every finding is ranked by severity, with file:line, why it matters on a phone, and the template that fixes it. With your OK, the agent applies the tested templates: a versioned network-first worker that also works under a base path, an 'Update available' prompt that reloads exactly once, a draft hook that survives the phone locking, a logout cleanup, an iOS-Safari-only add-to-home hint, an offline page and safe-area CSS. It finishes with a real-device test plan: install, airplane mode, lock the phone, update.
Static heuristics on source text: no runtime, no network, no type information. The templates make the app open offline (app shell or offline page) and keep typed drafts on the device; reading API data offline and queuing submissions made without signal are out of scope. Plugin-generated workers are only fully checked when you scan the build folder. Manifest values built from variables are resolved from the same file, relative or alias imports and workspace packages; anything else is noted in the report and skipped. Logout cache clearing is looked for in the logout file only. Phone-behaviour checks (drafts, install hints, layout) are less reliable on minified build output. It does not judge icon artwork, push notifications or performance. iOS behaviour can only be confirmed on a real device; the skill gives the test plan but cannot run it.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
Python 3.8+ (standard library only)
The web app's sourceorbuild folder- Optional
- An iPhone and/or Android phoneGoogle ChromeorSafari DevToolsvite-plugin-pwa, if the app uses itA preview deploy over HTTPS for phones
Permissions
File Scopes
The script reads files only, inside the folder you point it at. It makes no network calls, skips .env, .dev.vars and key files by name, and writes only the --output report. The agent edits project files only after you approve each fix, and never deploys, pushes or changes host settings; those steps are written out for you to do.
What's inside
Frequently Asked Questions
New in Mobile Development
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Mobile Development.