使用前端检查清单规范AI代码审查与实现质量
通过结构化的前端检查清单和MCP工具,帮助AI代理和人类开发者在编写React、Next.js、HTML和CSS等前端代码时,进行无障碍、性能、SEO、安全及代码规范审查。
GitHubthedaviddias7.5万GitHub Star
CursorClaude Codev0BoltFront-End Checklist MCP
收录于 2026-11-01 · 原文发布于 2026-10-31
要点
- 在决定实现界面之前,先使用UX Patterns选择正确的UI模式,比较常见UI模式的折衷方案。
- 将MCP兼容的AI代理连接到Front-End Checklist,用于前端代码审查、结构化规则查找和审计。
- 针对粘贴的代码、组件或文件,优先使用 review_code 进行审查并报告最高置信度的问题。
- 在提出无障碍、性能、SEO、安全或图片相关建议前,先使用 search_rules 检索规则。
- 对于公开的 https:// 页面,使用 audit_url 进行直接审计。
坑点
- 未经验证盲目编写前端代码,导致出现影响用户体验、无障碍、性能、SEO或安全的问题。
.cursorrules
- Always consult the Front-End Checklist rules when making recommendations for HTML, CSS, JavaScript, accessibility, performance, SEO, security, images, privacy, i18n, and testing. - Use MCP-compatible tools or `review_code` to audit components and code before finalizing implementations.
可复制提示词
Use the Front-End Checklist MCP to review this [React component / page / code] and report the highest-confidence findings first based on rules for HTML, CSS, JavaScript, accessibility, performance, SEO, security, images, privacy, i18n, and testing.
#AI前端开发#代码审查#前端规范#MCP
相关方法
内容由 AI 依据原文翻译整理,细节以原帖为准;版权归原作者。