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

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

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

repo: thedaviddias/Front-End-Checklist

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能