AgentSkillsCN

web-design-guidelines

Vercel 提供的 100 多条 UI 无障碍访问规范、语义化 HTML 书写规则以及键盘导航指南。 触发条件:“审查 UI 代码”、“遵循 Web 开发规范”、“进行无障碍检查”、“确保语义化 HTML”。

SKILL.md
--- frontmatter
name: web-design-guidelines
description: |
  Vercel's 100+ UI rules for accessibility, semantic HTML, keyboard navigation.
  Triggers: "review UI code", "web guidelines", "accessibility check", "semantic HTML".
license: MIT

Web Interface Guidelines

Code-level UI compliance checker. Originally from Vercel Engineering.

When to Use This vs. design-audit

Use This SkillUse design-audit
Code review of specific filesHigh-level page analysis
Want file:line output formatWant severity ratings (Critical/Important/Minor)
Checking implementation detailsChecking conversion optimization
Semantic HTML, ARIA, keyboard navCopy, psychology, CTA effectiveness
Technical complianceBusiness impact

How It Works

  1. Fetch the latest guidelines from Vercel's source
  2. Read the specified files (or prompt user for files/pattern)
  3. Check against all 100+ rules
  4. Output findings in terse file:line format

Guidelines Source

Fetch fresh guidelines before each review:

code
https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md

Use WebFetch to retrieve the latest rules. The fetched content contains all current rules and output format instructions.

Rule Categories

The guidelines cover 11 categories:

CategoryFocus Areas
Semantic HTMLProper element usage, landmarks, headings
Keyboard NavigationFocus management, tab order, shortcuts
Screen ReadersARIA labels, live regions, announcements
Touch & PointerTouch targets, gesture handling
Responsive DesignBreakpoints, fluid layouts, container queries
PerformanceLCP, CLS, INP, lazy loading
AnimationsReduced motion, GPU acceleration
FormsValidation, error handling, autocomplete
Dark ModeColor schemes, contrast, theme switching
InternationalizationRTL, locale formatting, translations
ContentMicrocopy, error messages, loading states

Usage

When a user provides a file or pattern argument:

  1. Fetch guidelines from the source URL above
  2. Read the specified files using Glob/Read tools
  3. Apply all rules from the fetched guidelines
  4. Output findings using the format: file:line - issue description

Example output:

code
src/components/Button.tsx:24 - Missing aria-label on icon-only button
src/components/Modal.tsx:15 - Focus not trapped within modal
src/pages/Home.tsx:89 - Image missing alt text

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

Related Skills

  • design-audit for high-level conversion-focused page audits
  • react-best-practices for React/Next.js performance patterns
  • theme-system for dark mode implementation