web-design-guidelines
2
总安装量
2
周安装量
#74111
全站排名
安装命令
npx skills add https://github.com/namesreallyblank/clorch --skill web-design-guidelines
Agent 安装分布
mcpjam
1
claude-code
1
windsurf
1
crush
1
cline
1
Skill 文档
Web Interface Guidelines
Review files for compliance with Vercel Web Interface Guidelines.
How It Works
- Fetch the latest guidelines from the source URL below
- Read the specified files (or prompt user for files/pattern)
- Check against all rules in the fetched guidelines
- Output findings in the terse
file:lineformat
Guidelines Source
Fetch fresh guidelines before each review:
https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
Use WebFetch to retrieve the latest rules. The fetched content contains all the rules and output format instructions.
Usage
When a user provides a file or pattern argument:
- Fetch guidelines from the source URL above
- Read the specified files
- Apply all rules from the fetched guidelines
- Output findings using the format specified in the guidelines
If no files specified, ask the user which files to review.
Categories
See rules/ directory for detailed rules by category:
accessibility.md– CRITICAL: Screen readers, ARIA, semantic HTMLfocus-states.md– HIGH: Keyboard navigation, focus ringsforms.md– HIGH: Input handling, validation, autocompleteanimation.md– MEDIUM: Motion preferences, performancetypography.md– MEDIUM: Quotes, ellipsis, numeric formattingimages.md– HIGH: Alt text, dimensions, lazy loadingperformance.md– HIGH: Virtualization, layout thrashingnavigation.md– MEDIUM: URL state, deep linkingtheming.md– LOW: Dark mode, color schemetouch.md– MEDIUM: Tap targets, safe areasi18n.md– MEDIUM: Intl API, locale detection
Output Format
Group by file. Use file:line format (VS Code clickable). Terse findings.
## src/Button.tsx
src/Button.tsx:42 - icon button missing aria-label
src/Button.tsx:18 - input lacks label
src/Button.tsx:55 - animation missing prefers-reduced-motion
## src/Card.tsx
pass
Playwright Validation
Use Playwright MCP to validate guidelines in real browsers:
Automated Checks
| Guideline | Playwright Command |
|---|---|
| Focus visible | Navigate, tab through, screenshot focus states |
| Touch targets | Get element sizes, check â¥44x44px |
| Color contrast | Evaluate computed styles, check ratios |
| Form labels | Get accessibility tree, verify label associations |
| Loading states | Interact, screenshot during loading |
| Error states | Submit invalid input, screenshot errors |
Validation Workflow
playwright_navigateto the pageplaywright_get_contentfor accessibility treeplaywright_evaluateto check specific rulesplaywright_screenshotfor visual evidence- Report violations with specific line numbers
Example: Form Validation Check
Navigate to /signup
Get the accessibility tree
Check if all inputs have associated labels
Fill email with "invalid" and submit
Screenshot the error state
Verify error message is announced to screen readers