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: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.
StarMapper Patterns (Priority)
Before applying external guidelines, check against StarMapper internal patterns:
Priority Rules (apply systematically)
Icon buttons :
aria-labelobligatoire sur tout bouton icon-only- ✅
<button aria-label="Close panel"><XIcon aria-hidden="true" /></button> - ❌
<button><XIcon /></button>
- ✅
Icônes décoratives : toujours
aria-hidden="true"- ✅
<StarIcon aria-hidden="true" />
- ✅
Focus visible : ne JAMAIS supprimer l'outline Tailwind
focus-visible:ring-*- ❌
focus:outline-noneinterdit sauf si remplacé par focus-visible ring
- ❌
MapLibre popups : utiliser
textContentpour les données user (location, login), jamaisinnerHTMLavec des données non sanitiséesTokens CSS : toujours utiliser les tokens
@themedeglobals.css(voirdesign-system.md)- ❌
bg-[#0d1117],text-[#8b949e] - ✅
bg-background,text-muted
- ❌
Touch targets : minimum 44px sur mobile pour tout élément interactif
Review Process
- Apply StarMapper priority rules first (above)
- Then fetch and apply external guidelines (web-interface-guidelines)
- Output findings with rule reference when applicable
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 + StarMapper patterns
- Output findings using the format specified in the guidelines
If no files specified, ask the user which files to review.