codebam/hermes-skills/pwa-installability

Claude Code and agent skill by codebam/hermes-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when a PWA won't install on Android or desktop.

Install

npx vskill@latest install codebam/hermes-skills/pwa-installability

SKILL.md

The same SKILL.md was published earlier as codebam/hermes-skills/pwa-installability.

PWA Installability

A PWA that "won't install" fails silently: no app test, log or UI reports it, and the browser's only symptom is a missing or inert menu item. Installing is a platform checklist run against your SHIPPED ARTIFACTS, so diagnose it by checking that checklist in order — not by reading the app's install code, which is rarely where the gap is.

When to Use

  • A user reports the install option is missing, the install does nothing, or Android installs

a bookmark/shortcut instead of a standalone app.

  • Shipping or reviewing a manifest or a service worker.
  • Install worked before an auth layer, a hosting move, or an icon change.

The hard checklist (Chromium — verify each against the artifact, not the intent)

  1. Manifest reachable and parseable at the URL the head links, with name/short_name,

start_url, and display of standalone / minimal-ui / fullscreen.

  1. A 192px AND a 512px icon, and the files must actually be those pixel sizes. An SVG

declaring sizes: "any" does not satisfy it, and a favicon .ico does not either. Read the file's real dimensions and compare with the declaration — this is the most commonly missing member and it fails with no error anywhere.

  1. A service worker with a NON-EMPTY `fetch` handler. Desktop dropped the handler as a

hard gate (Chrome 108 mobile / 112 desktop) and empty listeners are explicitly ignored — but Android's WebAPK path still requires one, and without it Android silently falls back to the legacy "Add to Home screen" shortcut. A pass-through handler (respondWith(fetch(...)) for same-origin GETs, nothing cached) satisfies it with no caching semantics at all.

  1. Registered on page load. A worker registered only from an opt-in flow (a push-subscribe

button, a settings toggle) does not exist when the install check runs.

  1. Not already installed. A leftover shortcut or WebAPK from earlier attempts suppresses

the install UI; remove it on the device before retrying.

  1. No auth wall in front of the PWA files. Chromium fetches the manifest WITHOUT

credentials unless the link declares crossorigin="use-credentials" (true for same-origin manifests too), and cookie-less fetchers on the install path need the manifest, sw.js and the icons reachable without a session — see references/auth-walled-origins.md.

Procedure

  1. Read the artifact: manifest members, each icon file's real dimensions, the worker's

listeners, and where the worker is registered. Score it against the checklist above.

  1. Differential-test against a site that DOES install on the same device — and inspect

that site's artifacts before assuming it does more than you. A working reference may have no manifest and no service worker at all (it installs through Chromium's generic add-any-site path); that result is still decisive, because it proves the device, the browser and the platform are fine and the gap is app-specific. Never conclude "their artifacts must be better" without looking at them.

  1. Fix in dependency order: icon files → manifest members → the manifest link's

credentials → the worker (handler + registration) → auth bypass for the PWA files. Each is independently required; fixing one does not make the install appear on its own.

  1. Pin it with a contract test, because nothing else notices when installability breaks:

assert the manifest's members, the icon entries and their declared sizes, the credentials attribute, the worker's fetch handler and its registration call. In a workerd/vitest pool read those files as ?raw imports (cloudflare-workers-testing).

  1. Verify from the platform's own report: chrome://web-app-internals (or the older

chrome://webapks) on Android names the WebAPK failure; desktop DevTools → Application → Manifest → "Installability" names the missing requirement. Ask for that output before theorising further.

Pitfalls

  • The install PROMPT is not the install MENU. beforeinstallprompt has engagement

heuristics (a click, ~30 s on the site) that the ⋮ menu item does not; debug a missing menu item against the checklist, and treat a missing prompt as a heuristic, not a defect.

  • Maskable and any are different crops. A maskable icon is cropped by the launcher's mask,

so its glyph must sit inside the inner 80% safe circle on a full-bleed background; declaring a tightly-padded icon maskable crops the glyph. apple-touch-icon must be full-bleed and opaque (iOS composites transparency onto black) and 180×180.

  • A manifest fetch that lands on a login page parses as garbage — the browser reports a

manifest error and installability fails, with no hint that auth is the cause. The fix is credentials on the link or a bypass for the file, never a manifest edit.

  • A build artifact is not a deployment. Confirm the files actually ship (the deploy's

asset directory contains the manifest and every icon) and test the deployed URL — a build directory the deploy omits looks identical from inside the repo.

  • Look at generated icons before shipping them. A glyph lifted from an icon font carries

its own viewBox (Material's is viewBox="0 -960 960 960"); rendering it without honouring that transform yields a blank or offset icon, which then fails checklist item 2 silently.

  • iOS is a different checklist. Only Safari installs PWAs on iOS (share sheet → "Add to

Home Screen"; Chrome and Firefox on iOS cannot), push needs the installed app (16.4+), and apple-mobile-web-app-title names the home-screen icon.

Support files

  • references/install-assets.md — the manifest member table, the icon spec table, the

SVG → PNG generation recipe (render large, downscale for anti-aliasing, safe-zone handling), and the checks that prove an icon file matches its declaration.

  • references/auth-walled-origins.md — the credentials attribute, why cookie-less fetchers

matter, and the Cloudflare Access bypass recipe for PWA files.

  • templates/gen-pwa-icons.cjs — a runnable icon generator (sharp) to copy and adjust: glyph,

colours and sizes in one config block.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/codebam/hermes-skills/pwa-installability/badge)](https://verified-skill.com/skills/codebam/hermes-skills/pwa-installability)

Something wrong with this skill or its page? Tell us.