pwa

pwa is a skill for Claude Code from MartinOlivero/saas-builder. It costs 113 tokens per session (902 once invoked), scanned A, original, MIT.

A guide for turning a React and Vite web app into a Progressive Web App, or PWA. A PWA is a website that can be installed on a device and may continue working without a network connection.

In plain words
What is it for?
Use it when making an existing web app installable, caching it for offline use, or adding push notifications. It also helps decide when native mobile development is more suitable.
Why use it?
It helps add common mobile-app behaviour without building a separate native app, such as offline use, installation, or web push notifications.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the saas-builder plugin — 18 skills, 1 hook shipped together

Good fit Use it when making an existing web app installable, caching it for offline use, or adding push notifications. It also helps decide when native mobile development is more suitable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/martinolivero/saas-builder/pwa
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MartinOlivero/saas-builder --skill pwa
Clone the repo
git clone --depth 1 https://github.com/MartinOlivero/saas-builder

Made for: Claude Code.

Or install saas-builder, the plugin that ships this one along with the rest of its 18 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pwa

README.md
[![agentmods](https://agentmods.dev/badge/skills/martinolivero/saas-builder/pwa/github.svg)](https://agentmods.dev/skills/martinolivero/saas-builder/pwa)
Your own site
<a href="https://agentmods.dev/skills/martinolivero/saas-builder/pwa"><img src="https://agentmods.dev/badge/skills/martinolivero/saas-builder/pwa/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pwa

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinolivero/saas-builder/pwa"><img src="https://agentmods.dev/badge/skills/martinolivero/saas-builder/pwa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 902 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00113 $0.00902
Opus 5 $0.00056 $0.00451
Sonnet 5 $0.00023 $0.00180
Haiku 4.5 $0.00011 $0.00090

Measured 9d ago against content hash 1a316f7f1e2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pwa scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pwa/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PWA

This skill makes a React + Vite app installable and offline-capable — the realistic middle ground between a plain website and a full native app. For a web-SaaS builder, this is the common mobile need; full React Native is rare and better served by Expo's own skills.

Analogy: a PWA is a food truck. It's the same kitchen as the restaurant (your web app), but it can park on the user's home screen and keep serving when the main location's network is down. You don't need to build a second restaurant (a native app) to get there.

When to use this vs going native

  • PWA (this skill) → installable, offline, push for an existing web app. Covers most "we need mobile" requests.
  • Full React Native → only when you need deep native APIs, app-store presence, or heavy device integration. Delegate to expo/skills (official, ~2k⭐) rather than rebuilding it here. At most, share TS types/API client via a monorepo packages/shared.

Discovery (max 3 questions, only if unknown)

  1. What's the goal — installable, offline reads, offline writes, or push notifications?
  2. Is this an existing Vite app, or starting fresh?
  3. Do you need push on iOS? (It only works for installed PWAs, Safari 16.4+.)

Step 1 — Install and configure

Add vite-plugin-pwa (~4k⭐, Workbox-based). Start with registerType: 'autoUpdate' and the generateSW strategy to precache the app shell + static assets. This plus a Web App Manifest and HTTPS = installable.

Step 2 — Author the manifest

Web App Manifest: name, short_name, theme_color, background_color, 192px and 512px maskable icons, display: standalone, start_url. The plugin can generate it from config.

Step 3 — Caching strategy

  • Cache-first for hashed static assets (they never change without a new hash).
  • Stale-while-revalidate for API/data (instant from cache, refresh in background).
  • Set navigateFallback so SPA routes work offline.

Step 4 — Offline writes (if needed)

Don't try to cache POSTs in the service worker. Pair the SW with IndexedDB (e.g. Dexie) + Workbox Background Sync to queue mutations and replay them on reconnect.

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 61 lines · 113 tokens per session scan A 1a316f7f1e2a

Subscribe to this mod's changes

pwa is a skill published in the GitHub repository MartinOlivero/saas-builder (2 stars, last pushed 21d ago), licensed MIT. It adds 113 tokens to every session and 902 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

reef

Launch the coral-reef dashboard (auto-install, build, and start).

kangig94/coral · 17 tokens

cinematic-scroll-landing

Build dark, cinematic, awwwards-style landing pages with seamless scroll choreography — endless/infinite scroll loops, pinned image-morph galleries, book page-flip feature sections, full-page book sites, cross-dissolve scene transitions, unified AI-generated imagery, film-slate section markers. Use when the user asks…

kash-123/cinematic-scroll-landing · 173 tokens

modern-frontend-design

How to design and build modern, premium-quality frontend interfaces that look like high-end SaaS products, modern AI tools, and award-winning design websites — not generic templates. Use this skill whenever the user asks to build a frontend, create a landing page, design a dashboard, scaffold a web app UI, build a…

deveshpunjabi/modern-frontend-skill · 167 tokens

frontend-design-saas

S-tier SaaS dashboard and product UI reference. Use this skill when building application shells, data tables, settings panels, billing pages, dashboards, auth flows, admin tools, or any internal/customer-facing SaaS product UI. Inspired by Stripe, Linear, Vercel, Airbnb, Notion. Covers neutral-led design tokens…

cloudflare/vibesdk · 105 tokens

design-review

Designer's eye QA: finds visual inconsistency, spacing issues, hierarchy problems, AI slop patterns, and slow interactions — then fixes them. Iteratively fixes issues in source code, committing each fix atomically and re-verifying with before/after screenshots. For plan-mode design review (before implementation), use…

GCWing/BitFun · 125 tokens

miniapp-dev

A development guide for BitFun MiniApps, which are small applications that run inside BitFun. It covers creating new MiniApps as well as maintaining the MiniApp framework.

GCWing/BitFun · 145 tokens