Web Interface Guidelines
Review UI code files for compliance with the Vercel Web Interface Guidelines. The agent reads the specified files and checks them against a comprehensive set of rules covering accessibility, focus states, forms, animation, typography, content handling, images, performance, naviga
5 steps · start to finish.
- 1Step 1
Environment Setup
▶Verify the target files exist and are readable before proceeding.
echo "=== Environment Setup ===" # Confirm arguments were supplied if [ -z "$ARGUMENTS" ]; then echo "ERROR: No file or pattern specified. Pass the target via ARGUMENTS." exit 1 fi # Expand the pattern and confirm at least one file matches FILES=$(ls $ARGUMENTS 2>/dev/null) if [ -z "$FILES" ]; then echo "ERROR: No files found matching pattern: $ARGUMENTS" exit 1 fi echo "Files to review:" echo "$FILES" echo "" mkdir -p /app/results - 2Step 2
Read and Analyse Files
▶For each file matching `$ARGUMENTS`, read its content and check it against every rule category below. Record each violation as a finding.
- 3Step 3
Write Review Report
▶Write `/app/results/review_report.md` using the output format below. Group findings by file. Use `file:line` references (VS Code clickable). Be terse—state issue and location. Skip explanation unless fix is non-obvious. No preamble.
- 4Step 4
Iterate on Errors (max 3 rounds)
▶If any rule categories were skipped or files were unreadable:
- 5Step 5
Write Summary
▶Write `/app/results/summary.md` with: