← 返回 Skills 市场
Pwa Implementation
作者
Bovin Phang
· GitHub ↗
· v2.5.1
· MIT-0
38
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install fec-pwa-implementation
功能描述
Use when adding or reviewing Progressive Web App capabilities such as installability, manifest metadata, Service Worker registration, Workbox caching, offlin...
使用说明 (SKILL.md)
PWA 实现
Purpose
让 Web 应用具备可安装、离线兜底和可控更新能力。
Procedure
- 确认 PWA 是否值得做:面向移动端/桌面安装、弱网离线、重复访问场景时优先;纯内部后台、强实时流媒体或只需要普通缓存时不要强行 PWA。
- 先补齐 manifest、图标、主题色和 HTML 引用;图标至少覆盖 192/512,Android 需 maskable,iOS 需 apple touch icon。
- 注册 Service Worker,并设计更新提示;不要静默
skipWaiting()后强刷用户页面。 - 用 Workbox 或框架插件管理 precache/runtime cache;登录、支付、权限变更等敏感请求必须走网络。
- 提供 offline fallback 页面和安装提示 UI,并验证首次加载、离线访问、更新激活、卸载重装。
Detailed References
- Load references/manifest-and-icons.md for manifest fields, HTML links, icon requirements, screenshots, and iOS notes.
- Load references/service-worker-workbox.md for Service Worker registration, Workbox strategies, Vite integration, offline fallback, and update flow.
Constraints
- Service Worker 仅在 HTTPS 下工作(localhost 除外)。
- 缓存策略必须区分页面、静态资源、API 与敏感操作;不要把登录、支付、权限接口缓存起来。
- Service Worker 更新有生命周期延迟;用户可见刷新提示优先于强制刷新。
- iOS PWA 能力弱于 Android,安装、推送和生命周期都要单独验证。
- 缓存有配额和逐出机制,必须设置 max entries / max age。
Expected Output
产出可安装的 Web 应用、离线 fallback、可见更新提示和明确缓存策略。验证 Lighthouse PWA、DevTools Application 面板、离线模式、更新发布和移动端安装流程。
安全使用建议
Before installing, note that this skill is intended to help an agent make PWA changes in your web app, including service worker and caching behavior. Review generated code carefully so sensitive routes and authenticated actions remain network-only.
能力评估
Purpose & Capability
The skill’s purpose is to guide implementation and review of PWA features such as manifests, service workers, Workbox caching, offline fallback, and update prompts; the artifacts match that purpose.
Instruction Scope
Instructions are scoped to user-directed frontend implementation and include appropriate safety boundaries, such as not caching login, payment, permission, or write operations and avoiding silent forced refreshes.
Install Mechanism
The package contains markdown and JSON only; package.json declares metadata but no scripts, dependencies, or install-time execution.
Credentials
The guidance may lead an agent to modify web app files for PWA behavior, which is proportionate to the stated implementation purpose and not automatic.
Persistence & Privilege
No persistence, background worker, credential access, local indexing, or privilege escalation is introduced by the skill itself; service worker persistence is discussed as the normal subject of PWA implementation.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install fec-pwa-implementation - 安装完成后,直接呼叫该 Skill 的名称或使用
/fec-pwa-implementation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.5.1
- Added LICENSE file to the project for clarity on usage and distribution terms.
- No changes to documentation or skill instructions.
v2.5.0
- Added detailed documentation in SKILL.md outlining PWA implementation purpose, step-by-step procedure, constraints, and expected outputs.
- Clarified correct use cases for PWA, distinguishing them from regular caching or non-installable performance enhancements.
- Included references to supporting documents for manifest setup, Service Worker strategies, and offline handling.
- Emphasized security requirements, update prompting best practices, and platform-specific limitations (especially iOS).
- Provided validation criteria for PWA features using Lighthouse, DevTools, and installation flows.
元数据
常见问题
Pwa Implementation 是什么?
Use when adding or reviewing Progressive Web App capabilities such as installability, manifest metadata, Service Worker registration, Workbox caching, offlin... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。
如何安装 Pwa Implementation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install fec-pwa-implementation」即可一键安装,无需额外配置。
Pwa Implementation 是免费的吗?
是的,Pwa Implementation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Pwa Implementation 支持哪些平台?
Pwa Implementation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Pwa Implementation?
由 Bovin Phang(@bovinphang)开发并维护,当前版本 v2.5.1。
推荐 Skills