diff options
| author | elsigh <elsigh@gmail.com> | 2026-01-14 10:49:56 -0800 |
|---|---|---|
| committer | elsigh <elsigh@gmail.com> | 2026-01-14 12:36:13 -0800 |
| commit | 9e2435e972fa6cca879e49aea0004028be138b40 (patch) | |
| tree | 5886cda401cae4be4be8e5a65ec057405df8fefc | |
| parent | a986ced282c08d20badb596e31ad4e1aa1a74e43 (diff) | |
Rename vercel-design-guidelines to web-design-guidelinesweb-design-guidelines
- Move from dx/skills/ to skills/
- Rename skill to web-design-guidelines
- Simplify to fetch guidelines from upstream GitHub repo
- Source: vercel-labs/web-interface-guidelines/main/command.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
| -rw-r--r-- | skills/vercel-design-guidelines.zip | bin | 2305 -> 0 bytes | |||
| -rw-r--r-- | skills/vercel-design-guidelines/SKILL.md | 139 | ||||
| -rw-r--r-- | skills/web-design-guidelines.zip | bin | 0 -> 946 bytes | |||
| -rw-r--r-- | skills/web-design-guidelines/SKILL.md | 36 |
4 files changed, 36 insertions, 139 deletions
diff --git a/skills/vercel-design-guidelines.zip b/skills/vercel-design-guidelines.zip Binary files differdeleted file mode 100644 index 8dcedf0..0000000 --- a/skills/vercel-design-guidelines.zip +++ /dev/null diff --git a/skills/vercel-design-guidelines/SKILL.md b/skills/vercel-design-guidelines/SKILL.md deleted file mode 100644 index 526c7b9..0000000 --- a/skills/vercel-design-guidelines/SKILL.md +++ /dev/null @@ -1,139 +0,0 @@ ---- -name: vercel-design-guidelines -description: Check web interfaces against Vercel's design guidelines. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", "check my site against best practices", or "apply Vercel design guidelines". ---- - -# Vercel Design Guidelines - -Review web interfaces against Vercel's comprehensive design guidelines and propose fixes. - -## How It Works - -1. Read the user's code (components, CSS, HTML) -2. Check against Vercel design guidelines (interactions, animations, layout, content, forms, performance, design, copywriting) -3. Report violations with specific line references -4. Propose concrete fixes with code examples - -## Usage - -When a user asks to review their UI or check against design guidelines: - -1. Fetch the live guidelines from `https://vercel.com/design/guidelines` -2. Read the relevant source files (components, styles, HTML) -3. Analyze the code against each applicable guideline category -4. Report findings grouped by category with severity - -**Guidelines URL:** https://vercel.com/design/guidelines - -Always fetch fresh guidelines to ensure you're checking against the latest standards. - -## Audit Categories - -- **Interactions**: Keyboard accessibility, focus management, hit targets, loading states, URL persistence -- **Animations**: Reduced motion, GPU acceleration, easing, interruptibility -- **Layout**: Optical adjustment, alignment, responsive testing, safe areas -- **Content**: Inline help, skeletons, empty states, typography, accessibility -- **Forms**: Labels, validation, autocomplete, error handling, submit behavior -- **Performance**: Re-renders, layout thrashing, virtualization, preloading -- **Design**: Shadows, borders, radii, contrast, color accessibility -- **Copywriting**: Active voice, title case, clarity, error messaging - -## Output Format - -Present findings as: - -``` -## {Category} Issues - -### {Severity}: {Guideline Name} -**File:** `path/to/file.tsx:42` -**Issue:** {Description of the violation} -**Guideline:** {Brief guideline reference} -**Fix:** -```{language} -{Proposed code fix} -``` -``` - -Severity levels: -- **Critical**: Accessibility violations, broken functionality -- **Warning**: UX issues, performance concerns -- **Suggestion**: Polish, best practices - -## Example Review - -``` -## Interactions Issues - -### Critical: Keyboard Accessibility -**File:** `components/Modal.tsx:28` -**Issue:** Modal lacks focus trap - keyboard users can tab outside -**Guideline:** Implement focus traps per WAI-ARIA patterns -**Fix:** -```tsx -// Add focus trap using @radix-ui/react-focus-guards or similar -import { FocusScope } from '@radix-ui/react-focus-scope'; - -<FocusScope trapped> - <ModalContent>{children}</ModalContent> -</FocusScope> -``` - -### Warning: Loading State Duration -**File:** `components/Button.tsx:15` -**Issue:** No minimum loading duration - causes flicker on fast responses -**Guideline:** Add 150-300ms delay and 300-500ms minimum visibility -**Fix:** -```tsx -const [isLoading, setIsLoading] = useState(false); -const minimumLoadingTime = 300; - -async function handleClick() { - setIsLoading(true); - const start = Date.now(); - await action(); - const elapsed = Date.now() - start; - if (elapsed < minimumLoadingTime) { - await new Promise(r => setTimeout(r, minimumLoadingTime - elapsed)); - } - setIsLoading(false); -} -``` -``` - -## Quick Checklist - -For rapid reviews, check these high-impact items first: - -- [ ] All interactive elements keyboard accessible -- [ ] Visible focus rings on focusable elements -- [ ] Hit targets ≥24px (44px on mobile) -- [ ] Form inputs have associated labels -- [ ] Loading states don't flicker -- [ ] `prefers-reduced-motion` respected -- [ ] No `transition: all` -- [ ] Errors show how to fix, not just what's wrong -- [ ] Color contrast meets APCA standards -- [ ] No zoom disabled - -## Present Results to User - -After reviewing: - -``` -# Design Guidelines Audit - -Reviewed {N} files against Vercel design guidelines. - -## Summary -- Critical: {N} issues -- Warning: {N} issues -- Suggestions: {N} items - -{Detailed findings by category} - -## Recommended Priority -1. {First critical fix} -2. {Second critical fix} -... -``` diff --git a/skills/web-design-guidelines.zip b/skills/web-design-guidelines.zip Binary files differnew file mode 100644 index 0000000..82ea624 --- /dev/null +++ b/skills/web-design-guidelines.zip diff --git a/skills/web-design-guidelines/SKILL.md b/skills/web-design-guidelines/SKILL.md new file mode 100644 index 0000000..83b34c2 --- /dev/null +++ b/skills/web-design-guidelines/SKILL.md @@ -0,0 +1,36 @@ +--- +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". +argument-hint: <file-or-pattern> +--- + +# Web Interface Guidelines + +Review files for compliance with Web Interface Guidelines. + +## How It Works + +1. Fetch the latest guidelines from the source URL below +2. Read the specified files (or prompt user for files/pattern) +3. Check against all rules in the fetched guidelines +4. 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: +1. Fetch guidelines from the source URL above +2. Read the specified files +3. Apply all rules from the fetched guidelines +4. Output findings using the format specified in the guidelines + +If no files specified, ask the user which files to review. |
