reset-css
它能做什么
这个技能检查网站是否使用 CSS 重置或 normalize 文件,并在缺少时添加。它面向希望每个浏览器中的样式都保持一致的前端开发者。
适用场景
- ✓你请智能体让网站在 Chrome、Firefox、Safari 和 Edge 中外观一致的时候。
- ✓间距或字体在每个浏览器中显示不同,而你希望有一致起点的时候。
- ✓你开始新项目,并希望为样式准备一个干净基础的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/reset-css/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的网站在 Safari 和 Chrome 中间距不一样。请帮我添加 CSS 重置,让它们保持一致吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查是否已经使用了重置样式,包括框架内置的重置。如果没有,它会添加 normalize.css 或现代重置样式,并在你自己的样式之前导入。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Use a CSS reset or normalize stylesheet
CSS resets eliminate browser default inconsistencies—ensuring your designs look identical across Chrome, Firefox, Safari, and Edge.
Quick Reference
- Choose normalize.css for preservation or modern reset for clean slate
- Install with pnpm:
pnpm add normalize.css - Import before your custom styles
- Check if your CSS framework includes a built-in reset
Check
Verify that a CSS reset or normalization is implemented to ensure consistent styling across different browsers and devices.
Fix
Implement a modern CSS reset like normalize.css, CSS remedy, or a custom reset to eliminate browser default styling inconsistencies.
Explain
Explain how CSS resets eliminate browser default styles to provide a consistent foundation for custom styling across all browsers.
Code Review
Review stylesheets, component styles, and responsive states related to Use a CSS reset or normalize stylesheet. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
常见问题
重置和 normalize 有什么区别?
这个技能说,normalize 保留有用的浏览器默认样式,而重置会去掉大部分默认样式,以便从干净的状态开始。
如何安装 normalize?
这个技能给出了 pnpm add normalize.css 命令,作为安装方式之一。
我的框架已经包含重置样式了吗?
这个技能说要先检查,因为有些 CSS 框架自带重置样式。
详情
作者的原始描述
Use when reviewing stylesheets, component styles, and responsive behavior related to Use a CSS reset or normalize stylesheet. Check the rendered layout across breakpoints and interaction states before proposing a fix.
热度
- GitHub 星标
- 75k
- 排名
- #2995
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。