favicons
它能做什么
这项技能检查网站是否拥有适用于不同浏览器和设备的完整图标文件。适用于希望网站在各处都显得精致的开发者。
适用场景
- ✓当你的网站图标在手机主屏幕上模糊或缺失的时候。
- ✓当你希望使用支持深色模式的现代 SVG 图标的时候。
- ✓当你构建的网页应用需要能安装到设备上的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/favicons/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我设置网站在手机和浏览器标签页中需要的图标。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查图标标签,并建议一套基础图标文件,以及 SVG 版本和网页应用的 manifest 条目。它还可以推荐图标生成工具。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Implement favicons for all devices
Missing or low-quality favicons make sites look unprofessional in browser tabs, bookmarks, and home screens—damaging brand recognition and user trust.
Quick Reference
- Minimum: favicon.ico (32x32) + apple-touch-icon.png (180x180)
- Modern: SVG favicon with dark mode support
- PWA: Include in manifest.json with multiple sizes
- Use RealFaviconGenerator or favicons npm package
Check
Verify that all necessary favicon formats and sizes are implemented correctly for optimal display across different browsers, devices, and platforms.
Fix
Generate and implement a complete favicon set including ICO, PNG, SVG, and mobile/PWA icons with proper HTML declarations.
Explain
Explain how proper favicon implementation improves brand recognition, user experience, and ensures consistent display across all browsers and devices.
Code Review
Review templates, server-rendered HTML, and shared components that output markup related to Implement favicons for all devices. 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.
常见问题
最低要求是什么?
这项技能提到 32 x 32 像素的 favicon.ico,以及 180 x 180 像素的 apple-touch-icon PNG。
manifest 有什么作用?
它为已安装的网页应用列出多种尺寸的图标。
它提到了哪些工具?
它提到了 RealFaviconGenerator 和 favicons npm 包。
详情
作者的原始描述
Use when reviewing templates, rendered HTML, or shared components related to Implement favicons for all devices. Validate the final browser-facing markup, not just the source framework abstraction.
热度
- GitHub 星标
- 75k
- 排名
- #2841
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。