name: web-design-guidelines
description: 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".
metadata:
author: vercel
version: "1.0.0"
argument-hint:
Web Interface Guidelines
Review files for compliance with 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:line format
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.
⚠️ よくある落とし穴
- ガイドラインを事前にキャッシュして古い版を使い続ける: ガイドラインはソースURL(
command.md)から毎回WebFetchで最新版を取得する設計。ローカルにキャッシュして使い回すとルール変更に追従できない
- レビュー対象ファイルを指定せずに実行する: ファイルやパターンが指定されていないとレビューが実行できない。ユーザーに確認してから進めること
- WebFetchが失敗してもガイドラインなしでレビューを進めてしまう: ソースURLからの取得に失敗した場合、正確なルールセットが不明のまま独自判断でレビューすると不正確な結果になる。取得失敗時はユーザーに報告する