service-worker

Implements a basic fetch event listener that caches GET requests.

1|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/ProfPowell/project-template --skill service-worker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: service-worker
Source: https://github.com/ProfPowell/project-template/tree/main/.claude/skills/service-worker
Command: npx skills add https://github.com/ProfPowell/project-template --skill service-worker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Service workers enable offline experiences and controlled caching, dramatically improving reliability.

Core Features & Use Cases

  • Caching Strategies: Cache-first, network-first, and stale-while-revalidate.
  • Offline Fallback: Serve offline content when network fails.
  • Updates & UX: Prompt user on new service worker availability.

Quick Start

Implement a basic fetch event listener that caches GET requests.