PWA Audit & Fix: Installable, Offline, iPhone-Ready

    by Nate Freed

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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

    1. HTM002 index.html:5: black-translucent status bar without viewport-fit=cover, so the top bar sits under the clock. Use head-tags.html.
    2. 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.
    3. SW013: no offline page, hence the white screen with no signal. Add offline.html and the app-shell fallback.
    4. 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.
    5. ST001 + ST002 InspectionForm.tsx:26: the form lives only in useState, behind a beforeunload warning iOS never fires. usePersistentDraft, keyed per site.
    6. 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

    Generated

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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 source
    orbuild folder
    Optional
    An iPhone and/or Android phone
    Google Chrome
    orSafari DevTools
    vite-plugin-pwa, if the app uses itA preview deploy over HTTPS for phones

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    Project
    folder:
    read-only
    for
    the
    audit
    Files
    you
    approve
    fixes:
    write
    A
    scratch
    folder
    outside
    project
    reports

    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.

    Listed6 days ago

    What's inside

    Creator

    N

    Nate Freed

    24 skills on Agensi

    Frequently Asked Questions

    No. The script reads files in the folder you point it at, makes no network calls and skips .env, .dev.vars and key files. Deploying and changing host cache headers stay your steps.

    Hand-written service workers in any framework (plain HTML, React, Vite, and others), vite-plugin-pwa, Next.js (App and Pages Router), next-pwa / @ducanh2912/next-pwa and Serwist options, and built output folders like dist/ or out/.

    No. The audit is read-only. The agent proposes fixes, shows each change, and edits files only after you approve. It never commits, pushes or deploys.

    No. It resolves same-file constants, relative and @/ imports, and workspace packages inside the scanned folder. Anything it cannot resolve is listed in the report notes as not checked, never as missing, and the fixes keep those values computed.

    Yes. It picks the app folder with PWA signals (or use --web-root), and it understands Next.js basePath and Vite base, including a worker registered outside the base path. The worker template resolves its paths against its scope.

    Not by itself. It finds the code causing known iOS problems and gives you a step-by-step real-device test (install, airplane mode, lock the phone, update, logout) to confirm the fixes.

    No. It measures your icon files and lists the exact sizes needed (192, 512, 512 maskable, 180x180 apple-touch-icon). If you have a source logo and an image tool, the agent can offer to resize it with your OK.

    Not for plain or Next.js setups. The vite-plugin-pwa templates assume the plugin is already installed; if not, the agent asks before adding it as a local dev dependency.

    Yes. Exit code 1 means findings at or above --fail-on (default high), 0 means clean, 2 means a bad path, and 3 means the script itself hit an error (the report says which part was skipped). Use --format json for machine-readable output.

    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.