--- version: "1.0.0" evaluation: programmatic agent: claude-code model: claude-sonnet-4-6 snapshot: python312-uv origin: url: "https://skills.sh/vercel-labs/agent-skills/web-design-guidelines" source_host: "skills.sh" source_title: "Web Interface Guidelines" imported_at: "2026-05-01T00:00:00Z" imported_by: "skill-to-runbook-converter@1.0.0" attribution: collection_or_org: "vercel-labs" skill_name: "web-design-guidelines" confidence: "high" secrets: {} --- # Web Interface Guidelines — Agent Runbook ## Objective 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, navigation, touch interaction, safe areas, dark mode, locale, hydration safety, hover states, and copy conventions. Output is concise and high signal-to-noise, grouped by file with `file:line` references. Each finding states the issue and location; explanations are included only when the fix is non-obvious. ## REQUIRED OUTPUT FILES (MANDATORY) **You MUST write all of the following files to `/app/results`. The task is NOT complete until every file exists and is non-empty. No exceptions.** | File | Description | |------|-------------| | `/app/results/review_report.md` | Compliance review output grouped by file with `file:line` findings | | `/app/results/summary.md` | Executive summary with file count, total findings, and pass/fail per category | | `/app/results/validation_report.json` | Structured validation results with stages, results, and `overall_passed` | ## Parameters | Parameter | Default | Description | |-----------|---------|-------------| | Results directory | `/app/results` | Output directory for all results | | `arguments` | *(required)* | File or glob pattern to review, e.g. `src/components/*.tsx` | ## Dependencies | Dependency | Type | Required | Description | |------------|------|----------|-------------| | `git` | CLI | No | For resolving file paths within a repository | | Source files | Files | Yes | The UI source files matching `` | ## Step 1: Environment Setup Verify the target files exist and are readable before proceeding. ```bash 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 ``` ## Step 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. ### Accessibility Rules - Icon-only buttons need `aria-label` - Form controls need `