AGENT SKILL

pwa

Progressive Web Apps with offline support and installability

License 许可
MIT
所属仓库
NeuralBlitz/Mito
最近更新
2026-11-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
pwa
license
MIT
metadata
{ "audience": "developers", "category": "web-development" }
description
Progressive Web Apps with offline support and installability
compatibility
opencode

03 SKILL.md 正文

What I do

  • Build installable web apps
  • Implement offline functionality
  • Create service workers
  • Configure web app manifests
  • Handle background sync

When to use me

When creating web apps that work offline and can be installed.

Service Worker

self.addEventListener('install', e => {
  e.waitUntil(caches.open('v1').then(c => c.addAll(['/'])));
});

self.addEventListener('fetch', e => {
  e.respondWith(caches.match(e.request).then(r => r || fetch(e.request)));
});

04 同仓库更多 Skills