enhance-pwa

enhance-pwa is a skill for Claude Code, Codex from kensaurus/cursor-kenji. It costs 67 tokens per session (2,523 once invoked), scanned A, original, MIT.

A workflow for adding Progressive Web App features to a web app, such as installation, offline access, cached loading, and background capabilities.

In plain words
What is it for?
It is for configuring a web app manifest, service worker, offline fallback, install prompt, push notifications, and background sync.
Why use it?
It helps a website behave more like an installable app and remain useful when the network is unavailable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for configuring a web app manifest, service worker, offline fallback, install prompt, push notifications, and background sync.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kensaurus/cursor-kenji/enhance-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 kensaurus/cursor-kenji --skill enhance-pwa
Clone the repo
git clone --depth 1 https://github.com/kensaurus/cursor-kenji

Made for: Claude Code, Codex.

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 enhance-pwa

README.md
[![agentmods](https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/enhance-pwa/github.svg)](https://agentmods.dev/skills/kensaurus/cursor-kenji/enhance-pwa)
Your own site
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/enhance-pwa"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/enhance-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 enhance-pwa

Your own site · 80×15
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/enhance-pwa"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/enhance-pwa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,523 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00067 $0.02523
Opus 5 $0.00034 $0.01262
Sonnet 5 $0.00013 $0.00505
Haiku 4.5 $0.00007 $0.00252

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

Security

Grade A, and why

enhance-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 5d 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/enhance-pwa/SKILL.md · 314 lines

How it starts

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

enhance-pwa — Make It Installable and Offline-Ready

Degree of freedom: MIXED. Strategy and prompt timing [HIGH freedom]; caching rules, Capacitor bypass, and Lighthouse [LOW freedom — run exactly].

A PWA closes the gap between "website" and "app". Users can install it to their home screen, it loads instantly from cache, and it keeps working when the network drops. This skill adds those capabilities to any existing web app without breaking what already works.

How to reason

  1. Audit — manifest, SW, framework plugin already present
  2. Choose — caching strategy per asset type; Workbox over raw SW
  3. Ship — installable manifest + offline fallback + autoUpdate
  4. Prove — Lighthouse PWA ≥ 90; Capacitor bridge not intercepted

Worked example

Audit: Next.js app; no manifest link; no SW; also ships Capacitor. Choose: Workbox via next-pwa; NetworkFirst APIs; CacheFirst images; skip capacitor://. Ship: manifest.webmanifest + 192/512 icons + /offline.html; install prompt after first success. Prove: offline revisit of / works; Lighthouse PWA ≥ 90; native bridge still functions.

Self-critique before reporting

  • No stale deploysautoUpdate, not silent stale cache
  • No secrets in cache — auth tokens and sensitive APIs are NetworkOnly
  • Offline path — fallback page or cached shell, not a browser error
  • Right owner — native Capacitor shell → mobile-capacitor-platform; confirm bridge via mobile-emulator-test

Phase 0: Audit what already exists [HIGH freedom]

public/manifest.json or public/manifest.webmanifest  → existing manifest
public/sw.js or src/sw.ts                             → existing service worker
vite.config.*   → vite-plugin-pwa already configured?
next.config.*   → next-pwa already configured?
package.json    → workbox-*, vite-plugin-pwa, next-pwa, @vite-pwa/nuxt

Also check the current Lighthouse PWA score via:

// eval after goto
const pwaReady = {
  manifest: !!document.querySelector('link[rel="manifest"]'),
  sw: 'serviceWorker' in navigator,
  https: location.protocol === 'https:' || location.hostname === 'localhost',
};

Read the full file on GitHub · 314 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. 5d ago First seen · 314 lines · 67 tokens per session scan A 761a5cd62c69

Subscribe to this mod's changes

enhance-pwa is a skill published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 11d ago), licensed MIT. It adds 67 tokens to every session and 2,523 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

extract-source-sample

Given the path to a finished content-goose ad-run folder, extract everything that defines that ad — recipe shot list, VO script, characters, voices, world, atom-skills, master mp4 — and emit a source-sample.json in the exact shape the upload-ad-sample skill writes to the Goose Ads library. Also links every character…

gooseworks-ai/goose-skills · 160 tokens

frontend

Builds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.

code-yeongyu/oh-my-openagent · 49 tokens

interaction-skill

Layer A interaction-mechanics reference anchored to the beui.dev catalog. Stacks on any style skill whenever work adds or changes motion or interaction — micro-interactions, animated components, transitions, gestures, hover/press/state feedback, loading/success/error morphs, 'make it feel alive'. Mandates reading the…

code-yeongyu/oh-my-openagent · 104 tokens

architecture-feature-first

Use when creating a feature, designing folder structure, adding repositories/services/view models, wiring dependency injection, or deciding which layer owns logic.

evanca/flutter-ai-rules · 31 tokens

layout-skill

Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero…

code-yeongyu/oh-my-openagent · 88 tokens

seo-landing

Generates fast, SEO-optimized static HTML landing pages targeting 100/100 PageSpeed (LCP < 2.5s, INP < 100ms, CLS < 0.1), full schema.org JSON-LD, AVIF images, critical CSS, zero external dependencies. Use when: user asks to create/build/generate a landing page, one-pager, or static site with focus on SEO, speed, or…

aleksandr-alhoff/seo-landing · 122 tokens