Web Design Reviewer

Web Design Reviewer

Inspects a running website with screenshots to find responsive, accessibility and layout problems, then fixes them in the source code and re-verifies.

Skill files3 files

references/

SKILL.md371 lines
1
---
2
name: web-design-reviewer
3
description: 'This skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design", "check the UI", "fix the layout", "find design problems". Detects issues with responsive design, accessibility, visual consistency, and layout breakage, then performs fixes at the source code level.'
4
---
5
6
# Web Design Reviewer
7
8
This skill enables visual inspection and validation of website design quality, identifying and fixing issues at the source code level.
9
10
## Scope of Application
11
12
- Static sites (HTML/CSS/JS)
13
- SPA frameworks such as React / Vue / Angular / Svelte
14
- Full-stack frameworks such as Next.js / Nuxt / SvelteKit
15
- CMS platforms such as WordPress / Drupal
16
- Any other web application
17
18
## Prerequisites
19
20
### Required
21
22
1. **Target website must be running**
23
- Local development server (e.g., `http://localhost:3000`)
24
- Staging environment
25
- Production environment (for read-only reviews)
26
27
2. **Browser automation must be available**
28
- Screenshot capture
29
- Page navigation
30
- DOM information retrieval
31
32
3. **Access to source code (when making fixes)**
33
- Project must exist within the workspace
34
35
## Workflow Overview
36
37
```mermaid
38
flowchart TD
39
A[Step 1: Information Gathering] --> B[Step 2: Visual Inspection]
40
B --> C[Step 3: Issue Fixing]
41
C --> D[Step 4: Re-verification]
42
D --> E{Issues Remaining?}
43
E -->|Yes| B
44
E -->|No| F[Completion Report]
45
```
46
47
---
48
49
## Step 1: Information Gathering Phase
50
51
### 1.1 URL Confirmation
52
53
If the URL is not provided, ask the user:
54
55
> Please provide the URL of the website to review (e.g., `http://localhost:3000`)
56
57
### 1.2 Understanding Project Structure
58
59
When making fixes, gather the following information:
60
61
| Item | Example Question |
62
|------|------------------|
63
| Framework | Are you using React / Vue / Next.js, etc.? |
64
| Styling Method | CSS / SCSS / Tailwind / CSS-in-JS, etc. |
65
| Source Location | Where are style files and components located? |
66
| Review Scope | Specific pages only or entire site? |
67
68
### 1.3 Automatic Project Detection
69
70
Attempt automatic detection from files in the workspace:
71
72
```
73
Detection targets:
74
├── package.json → Framework and dependencies
75
├── tsconfig.json → TypeScript usage
76
├── tailwind.config → Tailwind CSS
77
├── next.config → Next.js
78
├── vite.config → Vite
79
├── nuxt.config → Nuxt
80
└── src/ or app/ → Source directory
81
```
82
83
### 1.4 Identifying Styling Method
84
85
| Method | Detection | Edit Target |
86
|--------|-----------|-------------|
87
| Pure CSS | `*.css` files | Global CSS or component CSS |
88
| SCSS/Sass | `*.scss`, `*.sass` | SCSS files |
89
| CSS Modules | `*.module.css` | Module CSS files |
90
| Tailwind CSS | `tailwind.config.*` | className in components |
91
| styled-components | `styled.` in code | JS/TS files |
92
| Emotion | `@emotion/` imports | JS/TS files |
93
| CSS-in-JS (other) | Inline styles | JS/TS files |
94
95
---
96
97
## Step 2: Visual Inspection Phase
98
99
### 2.1 Page Traversal
100
101
1. Navigate to the specified URL
102
2. Capture screenshots
103
3. Retrieve DOM structure/snapshot (if possible)
104
4. If additional pages exist, traverse through navigation
105
106
### 2.2 Inspection Items
107
108
Work through [references/visual-checklist.md](references/visual-checklist.md) during inspection and again during post-fix verification.
109
110
#### Layout Issues
111
112
| Issue | Description | Severity |
113
|-------|-------------|----------|
114
| Element Overflow | Content overflows from parent element or viewport | High |
115
| Element Overlap | Unintended overlapping of elements | High |
116
| Alignment Issues | Grid or flex alignment problems | Medium |
117
| Inconsistent Spacing | Padding/margin inconsistencies | Medium |
118
| Text Clipping | Long text not handled properly | Medium |
119
120
#### Responsive Issues
121
122
| Issue | Description | Severity |
123
|-------|-------------|----------|
124
| Non-mobile Friendly | Layout breaks on small screens | High |
125
| Breakpoint Issues | Unnatural transitions when screen size changes | Medium |
126
| Touch Targets | Buttons too small on mobile | Medium |
127
128
#### Accessibility Issues
129
130
| Issue | Description | Severity |
131
|-------|-------------|----------|
132
| Insufficient Contrast | Low contrast ratio between text and background | High |
133
| No Focus State | Cannot determine state during keyboard navigation | High |
134
| Missing alt Text | No alternative text for images | Medium |
135
136
#### Visual Consistency
137
138
| Issue | Description | Severity |
139
|-------|-------------|----------|
140
| Font Inconsistency | Mixed font families | Medium |
141
| Color Inconsistency | Non-unified brand colors | Medium |
142
| Spacing Inconsistency | Non-uniform spacing between similar elements | Low |
143
144
### 2.3 Viewport Testing (Responsive)
145
146
Test at the following viewports:
147
148
| Name | Width | Representative Device |
149
|------|-------|----------------------|
150
| Mobile | 375px | iPhone SE/12 mini |
151
| Tablet | 768px | iPad |
152
| Desktop | 1280px | Standard PC |
153
| Wide | 1920px | Large display |
154
155
---
156
157
## Step 3: Issue Fixing Phase
158
159
### 3.1 Issue Prioritization
160
161
```mermaid
162
block-beta
163
columns 1
164
block:priority["Priority Matrix"]
165
P1["P1: Fix Immediately\n(Layout issues affecting functionality)"]
166
P2["P2: Fix Next\n(Visual issues degrading UX)"]
167
P3["P3: Fix If Possible\n(Minor visual inconsistencies)"]
168
end
169
```
170
171
### 3.2 Identifying Source Files
172
173
Identify source files from problematic elements:
174
175
1. **Selector-based Search**
176
- Search codebase by class name or ID
177
- Explore style definitions with `grep_search`
178
179
2. **Component-based Search**
180
- Identify components from element text or structure
181
- Explore related files with `semantic_search`
182
183
3. **File Pattern Filtering**
184
```
185
Style files: src/**/*.css, styles/**/*
186
Components: src/components/**/*
187
Pages: src/pages/**, app/**
188
```
189
190
### 3.3 Applying Fixes
191
192
#### Framework-specific Fix Guidelines
193
194
See [references/framework-fixes.md](references/framework-fixes.md) for details.
195
196
#### Fix Principles
197
198
1. **Minimal Changes**: Only make the minimum changes necessary to resolve the issue
199
2. **Respect Existing Patterns**: Follow existing code style in the project
200
3. **Avoid Breaking Changes**: Be careful not to affect other areas
201
4. **Add Comments**: Add comments to explain the reason for fixes where appropriate
202
203
---
204
205
## Step 4: Re-verification Phase
206
207
### 4.1 Post-fix Confirmation
208
209
1. Reload browser (or wait for development server HMR)
210
2. Capture screenshots of fixed areas
211
3. Compare before and after
212
213
### 4.2 Regression Testing
214
215
- Verify that fixes haven't affected other areas
216
- Confirm responsive display is not broken
217
218
### 4.3 Iteration Decision
219
220
```mermaid
221
flowchart TD
222
A{Issues Remaining?}
223
A -->|Yes| B[Return to Step 2]
224
A -->|No| C[Proceed to Completion Report]
225
```
226
227
**Iteration Limit**: If more than 3 fix attempts are needed for a specific issue, consult the user
228
229
---
230
231
## Output Format
232
233
### Review Results Report
234
235
```markdown
236
# Web Design Review Results
237
238
## Summary
239
240
| Item | Value |
241
|------|-------|
242
| Target URL | {URL} |
243
| Framework | {Detected framework} |
244
| Styling | {CSS / Tailwind / etc.} |
245
| Tested Viewports | Desktop, Mobile |
246
| Issues Detected | {N} |
247
| Issues Fixed | {M} |
248
249
## Detected Issues
250
251
### [P1] {Issue Title}
252
253
- **Page**: {Page path}
254
- **Element**: {Selector or description}
255
- **Issue**: {Detailed description of the issue}
256
- **Fixed File**: `{File path}`
257
- **Fix Details**: {Description of changes}
258
- **Screenshot**: Before/After
259
260
### [P2] {Issue Title}
261
...
262
263
## Unfixed Issues (if any)
264
265
### {Issue Title}
266
- **Reason**: {Why it was not fixed/could not be fixed}
267
- **Recommended Action**: {Recommendations for user}
268
269
## Recommendations
270
271
- {Suggestions for future improvements}
272
```
273
274
---
275
276
## Required Capabilities
277
278
| Capability | Description | Required |
279
|------------|-------------|----------|
280
| Web Page Navigation | Access URLs, page transitions | ✅ |
281
| Screenshot Capture | Page image capture | ✅ |
282
| Image Analysis | Visual issue detection | ✅ |
283
| DOM Retrieval | Page structure retrieval | Recommended |
284
| File Read/Write | Source code reading and editing | Required for fixes |
285
| Code Search | Code search within project | Required for fixes |
286
287
---
288
289
## Reference Implementation
290
291
### Implementation with Playwright MCP
292
293
[Playwright MCP](https://github.com/microsoft/playwright-mcp) is recommended as the reference implementation for this skill.
294
295
| Capability | Playwright MCP Tool | Purpose |
296
|------------|---------------------|---------|
297
| Navigation | `browser_navigate` | Access URLs |
298
| Snapshot | `browser_snapshot` | Retrieve DOM structure |
299
| Screenshot | `browser_take_screenshot` | Images for visual inspection |
300
| Click | `browser_click` | Interact with interactive elements |
301
| Resize | `browser_resize` | Responsive testing |
302
| Console | `browser_console_messages` | Detect JS errors |
303
304
#### Configuration Example (MCP Server)
305
306
```json
307
{
308
"mcpServers": {
309
"playwright": {
310
"command": "npx",
311
"args": ["-y", "@playwright/mcp@latest", "--caps=vision"]
312
}
313
}
314
}
315
```
316
317
### Other Compatible Browser Automation Tools
318
319
| Tool | Features |
320
|------|----------|
321
| Selenium | Broad browser support, multi-language support |
322
| Puppeteer | Chrome/Chromium focused, Node.js |
323
| Cypress | Easy integration with E2E testing |
324
| WebDriver BiDi | Standardized next-generation protocol |
325
326
The same workflow can be implemented with these tools. As long as they provide the necessary capabilities (navigation, screenshot, DOM retrieval), the choice of tool is flexible.
327
328
---
329
330
## Best Practices
331
332
### DO (Recommended)
333
334
- ✅ Always save screenshots before making fixes
335
- ✅ Fix one issue at a time and verify each
336
- ✅ Follow the project's existing code style
337
- ✅ Confirm with user before major changes
338
- ✅ Document fix details thoroughly
339
340
### DON'T (Not Recommended)
341
342
- ❌ Large-scale refactoring without confirmation
343
- ❌ Ignoring design systems or brand guidelines
344
- ❌ Fixes that ignore performance
345
- ❌ Fixing multiple issues at once (difficult to verify)
346
347
---
348
349
## Troubleshooting
350
351
### Problem: Style files not found
352
353
1. Check dependencies in `package.json`
354
2. Consider the possibility of CSS-in-JS
355
3. Consider CSS generated at build time
356
4. Ask user about styling method
357
358
### Problem: Fixes not reflected
359
360
1. Check if development server HMR is working
361
2. Clear browser cache
362
3. Rebuild if project requires build
363
4. Check CSS specificity issues
364
365
### Problem: Fixes affecting other areas
366
367
1. Rollback changes
368
2. Use more specific selectors
369
3. Consider using CSS Modules or scoped styles
370
4. Consult user to confirm impact scope
371

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,242 prompts

More by @OpenSourceBuffGuy

See all
Robotic Process Automation Expert prompt image

Robotic Process Automation Expert

Turns the AI into an RPA expert that analyses a process, designs bots with exception handling and sets up automation governance for enterprise teams.

system-prompt, act-as, workflow-automation, process-improvement, operations, planner, risk-management, compliance, security-awareness, software-architecture, change-management, report, structured-output, xml-tags, guardrails, expert-advice, for-developers, for-managers, advanced, long-form

Purple Energy Drink Splash Ad prompt image

Purple Energy Drink Splash Ad

Draws a dramatic splash-photography ad of a purple energy drink can wrapped in headphones, surrounded by ice, berries and frozen liquid arcs.

image-prompt, nano-banana, photorealistic, product-photography, dramatic-lighting, studio-lighting, macro, neon, bokeh, motion-blur, packaging-design, text-rendering, advertising, luxury, moody, night-scene, food-photography, still-life, limited-palette, for-marketers, for-photographers, for-online-sellers, vibrant-colors, cinematic

Tokyo travel vlogger 13 frame candid phone collage prompt image

Tokyo travel vlogger 13 frame candid phone collage

Generates a 13-frame grid collage of a young travel vlogger exploring Tokyo, each frame a different candid phone shot with deliberate flaws.

image-prompt, gpt-image, chatgpt, multi-panel, collage, candid, smartphone-photo, photorealistic, travel, selfie, woman, night-scene, neon, motion-blur, film-grain, cityscape, landmarks, japan, street-photography, social-media-graphic, fashion, bokeh, for-travelers, for-content-creators, long-form, structured-output

Reviews

Loading reviews…

Discussion

Loading comments…