用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill pwa命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pwa |
| description | PWA — manifest, service worker caching strategies, update lifecycle. |
manifest.json / manifest.webmanifest)Required fields: name, short_name, description, start_url, display, theme_color, background_color, scope
Provide icons at 192×192 and 512×512 (PNG); include a maskable icon variant.
Choose a caching strategy per resource type:
| Resource | Strategy |
|---|---|
| App shell (HTML, JS, CSS) | Cache First |
| API responses | Network First with cache fallback |
| Static assets (images, fonts) | Stale While Revalidate |
Use Workbox (via Vite PWA plugin, @angular/service-worker, Nuxt PWA module, etc.) unless there is a specific reason not to.
Handle the SW update lifecycle: detect when a new version is available and prompt the user to reload — never silently swap the service worker while the app is open.
beforeinstallprompt event)