pwa-installability
它能做什么
这个技能检查网站是否满足作为渐进式 Web 应用安装的基本要求,并修复缺失的部分。它面向希望网站像已安装应用一样工作的开发者。
适用场景
- ✓你请智能体检查网站能否安装到手机或电脑上的时候。
- ✓你想添加安装提示,让访客把网站添加到主屏幕的时候。
- ✓你计划通过打包工具将 Web 应用提交到应用商店的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/pwa-installability/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我检查网站能否作为应用安装,并添加缺少的部分吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查网站是否使用 HTTPS,是否有有效的清单文件,其中包含名称、图标、起始网址和显示设置,并且是否注册了 Service Worker。它还会检查 192×512 像素的图标,以及供 Android 使用的 maskable 图标。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Meet PWA installability criteria
Installable PWAs appear in the browser's address bar install prompt and in app stores, giving users a native-app experience without an app store listing. Studies consistently show that installed PWAs have higher engagement and retention than browser-only equivalents — users who install spend 3× more time in the app on average.
Quick Reference
- Serve the app over HTTPS (required by browsers)
- Link a valid web app manifest with name, icons, start_url, and display
- Provide a 192×192 and 512×512 icon; add a maskable variant for Android
- Register a service worker that responds with 200 when offline
Check
Check whether this site meets the PWA installability criteria: HTTPS, valid manifest, service worker, and appropriate icons.
Fix
Add or fix the web app manifest, ensure a service worker is registered, and provide correctly sized maskable icons.
Explain
Explain what makes a web app installable as a PWA and what the manifest display modes mean for the user experience.
Code Review
Review the manifest.json and icon assets. Flag missing required fields, incorrect icon sizes, absent maskable icons, and any mismatch between start_url and the actual app root.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/html/pwa-installability
常见问题
网站为什么需要 HTTPS?
这个技能说,浏览器要求网站必须使用 HTTPS 才能安装。
什么是清单文件?
它是一个小文件,告诉浏览器应用的名称、图标、起始地址以及打开方式。
网站可以提交到应用商店吗?
这个技能提到可以通过 PWA Builder 准备网站,提交到 Microsoft Store 或 Google Play。
详情
作者的原始描述
Use when auditing PWA readiness, adding an install prompt, or preparing a web app for submission to Microsoft Store or Google Play via PWA Builder.
热度
- GitHub 星标
- 75k
- 排名
- #2986
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。