·service-worker
</>

service-worker

Service Worker API implementation guide — registration, lifecycle management, caching strategies, push notifications, and background sync. Use when: (1) creating or modifying service worker files (sw.js), (2) implementing offline-first caching (cache-first, network-first, stale-while-revalidate), (3) setting up push notifications or background sync, (4) debugging service worker registration, scope, or update issues, (5) implementing navigation preload, (6) user mentions 'service worker', 'sw.js', 'offline support', 'cache strategy', 'push notification', 'background sync', 'workbox alternative', or 'PWA caching'.

17Installs·0Trend·@jgamaraalv

Installation

$npx skills add https://github.com/jgamaraalv/ts-dev-kit --skill service-worker

How to Install service-worker

Quickly install service-worker AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/jgamaraalv/ts-dev-kit --skill service-worker
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: jgamaraalv/ts-dev-kit.

SKILL.md

View raw

A document must reload to be controlled (or call clients.claim() during activate).

waitUntil(promise) — keeps install phase alive until the promise settles. If rejected, installation fails and the SW won't activate.

respondWith(promise) — must be called synchronously (within the event handler, not in a microtask). The promise resolves to a Response.

Service Worker API implementation guide — registration, lifecycle management, caching strategies, push notifications, and background sync. Use when: (1) creating or modifying service worker files (sw.js), (2) implementing offline-first caching (cache-first, network-first, stale-while-revalidate), (3) setting up push notifications or background sync, (4) debugging service worker registration, scope, or update issues, (5) implementing navigation preload, (6) user mentions 'service worker', 'sw.js', 'offline support', 'cache strategy', 'push notification', 'background sync', 'workbox alternative', or 'PWA caching'. Source: jgamaraalv/ts-dev-kit.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/jgamaraalv/ts-dev-kit --skill service-worker
Category
</>Dev Tools
Verified
First Seen
2026-02-24
Updated
2026-03-11

Browse more skills from jgamaraalv/ts-dev-kit

Quick answers

What is service-worker?

Service Worker API implementation guide — registration, lifecycle management, caching strategies, push notifications, and background sync. Use when: (1) creating or modifying service worker files (sw.js), (2) implementing offline-first caching (cache-first, network-first, stale-while-revalidate), (3) setting up push notifications or background sync, (4) debugging service worker registration, scope, or update issues, (5) implementing navigation preload, (6) user mentions 'service worker', 'sw.js', 'offline support', 'cache strategy', 'push notification', 'background sync', 'workbox alternative', or 'PWA caching'. Source: jgamaraalv/ts-dev-kit.

How do I install service-worker?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/jgamaraalv/ts-dev-kit --skill service-worker Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/jgamaraalv/ts-dev-kit