Skip to content

Commit 658d799

Browse files
authored
[AI] Add web-design-guidelines agent skills (#1390)
### Description Add simple web guidelines for creating better UIs to agent skills. ### Demo URL <!-- Provide a URL to a live deployment where we can test your PR. If a demo isn't possible feel free to omit this section. --> ### Type of Change - [ ] New Example - [ ] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered?
1 parent 9a4286d commit 658d799

File tree

5 files changed

+44
-0
lines changed

5 files changed

+44
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: web-design-guidelines
3+
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".
4+
metadata:
5+
author: vercel
6+
version: '1.0.0'
7+
argument-hint: <file-or-pattern>
8+
---
9+
10+
# Web Interface Guidelines
11+
12+
Review files for compliance with Web Interface Guidelines.
13+
14+
## How It Works
15+
16+
1. Fetch the latest guidelines from the source URL below
17+
2. Read the specified files (or prompt user for files/pattern)
18+
3. Check against all rules in the fetched guidelines
19+
4. Output findings in the terse `file:line` format
20+
21+
## Guidelines Source
22+
23+
Fetch fresh guidelines before each review:
24+
25+
```
26+
https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
27+
```
28+
29+
Use WebFetch to retrieve the latest rules. The fetched content contains all the rules and output format instructions.
30+
31+
## Usage
32+
33+
When a user provides a file or pattern argument:
34+
35+
1. Fetch guidelines from the source URL above
36+
2. Read the specified files
37+
3. Apply all rules from the fetched guidelines
38+
4. Output findings using the format specified in the guidelines
39+
40+
If no files specified, ask the user which files to review.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.agents/skills/web-design-guidelines
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.agents/skills/web-design-guidelines
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.agents/skills/web-design-guidelines
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.agents/skills/web-design-guidelines

0 commit comments

Comments
 (0)