跳到正文
Skillpedia
网站与界面(前端)75k · #2986

pwa-installability

它能做什么

这个技能检查网站是否满足作为渐进式 Web 应用安装的基本要求,并修复缺失的部分。它面向希望网站像已安装应用一样工作的开发者。

适用场景

  • ✓你请智能体检查网站能否安装到手机或电脑上的时候。
  • ✓你想添加安装提示,让访客把网站添加到主屏幕的时候。
  • ✓你计划通过打包工具将 Web 应用提交到应用商店的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/pwa-installability/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/pwa-installability/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2986
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能