web-app-manifest
它能做什么
这个技能添加并检查让网站可以像应用一样安装的清单文件。它面向构建渐进式 Web 应用或希望用户保存到主屏幕的网站开发者。
适用场景
- ✓网站的 HTML head 中没有清单链接的时候。
- ✓清单缺少图标或 start_url 等必填字段的时候。
- ✓网站希望可以作为渐进式 Web 应用安装的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/web-app-manifest/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我希望访客把网站保存到主屏幕后,它能像应用一样打开。我需要添加什么?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会创建或检查一个清单文件,其中包含名称、图标和起始网址,并在页面 head 中链接它。它还会设置显示模式和主题颜色选项。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Link a Web App Manifest for installability
A Web App Manifest is the minimum requirement for a site to be installable as a Progressive Web App. Installed PWAs launch in their own window, appear in app switchers, and can receive push notifications. Even for non-PWA sites, the manifest improves the experience when users bookmark to their home screen and provides metadata for browser share dialogs.
Quick Reference
- Link manifest.json with <link rel="manifest" href="/manifest.json">
- Include name, short_name, icons (192px and 512px minimum), and start_url
- Set display: standalone to hide browser chrome when launched from home screen
- Set theme_color to control the browser address bar and OS taskbar color
Check
Check if this HTML file has a Web App Manifest linked. If so, verify the manifest has all required fields for installability.
Fix
Create a minimal Web App Manifest with the required fields and link it from the HTML head.
Explain
Explain the Web App Manifest format, which fields are required for installability, and how icons work across different platforms.
Code Review
Review templates, server-rendered HTML, and shared components that output markup related to Link a Web App Manifest for installability. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/html/web-app-manifest
常见问题
需要哪些尺寸的图标?
这个技能提到 192 和 512 像素的图标是最低要求。
display 设为 standalone 有什么作用?
从主屏幕打开网站时,它会隐藏浏览器的控件。
这对不是应用的网站有帮助吗?
有帮助。这个技能说,清单仍然能改善主屏幕书签和分享对话框的效果。
详情
作者的原始描述
Use when reviewing templates, rendered HTML, or shared components related to Link a Web App Manifest for installability. Validate the final browser-facing markup, not just the source framework abstraction.
热度
- GitHub 星标
- 75k
- 排名
- #3083
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。