Web Design Guidelines

作者 tech-leads-club120b67676388无许可证收录于 2026年10月8日更新于 2026年10月8日

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices". Focuses on visual design and interaction patterns. Do NOT use for performance audits (use core-web-vitals), SEO (use seo), or comprehensive site audits (use web-quality-audit).

仅含说明Design & Creative
AI 生成的概览

依据 Web Interface Guidelines 审查 UI 代码的无障碍、交互与视觉设计合规性。

功能
该技能先读取内置的指南参考文件,再依据其中的规则检查指定的 UI 源文件。检查范围涵盖无障碍、焦点与键盘交互、表单、动画、排版、内容处理、图片、导航、触控、主题、区域设置与 hydration 安全。结果按文件分组,以简洁的 file:line 格式给出问题与位置。它产出的是审查报告,而非修改后的代码。
适用场景
当被要求审查 UI 代码、检查无障碍、审计设计或用户体验,或对照界面最佳实践核查站点时使用。它不适用于性能审计、SEO 或全面的站点审计。
运行要求
无需脚本,仅包含指令和内置的指南参考文件。需要能够访问待审查的 UI 源文件或文件匹配模式。

Web Interface Guidelines

Review files for compliance with Web Interface Guidelines.

How It Works

  1. Read the guidelines from #[[file:references/guideline.md]]
  2. Read the specified files (or prompt user for files/pattern)
  3. Check against all rules in the guidelines
  4. Output findings in the terse file:line format

Guidelines Reference

All rules and output format instructions are in:

#[[file:references/guideline.md]]

The guidelines cover:

  • Accessibility (ARIA, semantic HTML, keyboard navigation)
  • Focus states and keyboard interaction
  • Forms (autocomplete, validation, labels)
  • Animation (reduced motion, performance)
  • Typography (proper characters, number formatting)
  • Content handling (overflow, empty states)
  • Images (dimensions, lazy loading)
  • Performance (virtualization, DOM reads)
  • Navigation & state (URL sync, deep linking)
  • Touch & interaction (tap delays, safe areas)
  • Dark mode & theming
  • Locale & i18n
  • Hydration safety
  • Common anti-patterns to flag

Usage

When a user provides a file or pattern argument:

  1. Read the guidelines from references/guideline.md
  2. Read the specified files
  3. Apply all rules from the guidelines
  4. Output findings using the format specified in the guidelines

If no files specified, ask the user which files to review.

Output Format

Follow the format in the guidelines:

  • Group findings by file
  • Use file:line format (VS Code clickable)
  • Terse, high signal-to-noise
  • State issue + location
  • Skip explanation unless fix is non-obvious

来源与署名

来源:tech-leads-club/agent-skills位于packages/skills-catalog/skills/(design)/web-design-guidelines提交120b676

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架