用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/InugamiDev/ultrathink-oss --skill test-ui命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Unified design foundations — design system architecture, tokens, component specs, visual principles, creative vision, figma integration, plus brand design system loader (66 real brands via DESIGN.md). Absorbs design, design-system, design-systems, design-principles, design-router, creative-vision, figma, design-md.
Render, summarize, and present markdown documents and structured content in multiple output modes
Ultra UI skill - combines Google's DESIGN.md spec (machine-readable design tokens) with the ui-ux-pro-max knowledge base (91 styles, 161 palettes, 73 font pairings, 161 products, 104 UX guidelines, 25 chart types). Generates lint-clean DESIGN.md files, validates token references and WCAG contrast, exports Tailwind/DTCG tokens, and diffs design systems version-over-version.
基于 SOC 职业分类
正在显示 SKILL.md
| name | test-ui |
| description | Multi-viewport UI testing with screenshots, visual regression detection, and accessibility audits |
| layer | hub |
| category | workflow |
| triggers | ["/test-ui","test the UI","check the interface","visual test","screenshot test","check responsive","accessibility audit"] |
| inputs | [{"target":"URL, page, or component to test"},{"viewports":"Viewport sizes to test (optional, defaults to mobile/tablet/desktop)"},{"checks":"Specific checks to run -- visual | accessibility | responsive | interaction | all (optional, defaults to all)"}] |
| outputs | [{"screenshots":"Screenshots at each viewport with annotations"},{"accessibilityReport":"WCAG compliance findings"},{"responsiveReport":"Layout issues across viewports"},{"interactionReport":"Results of interaction testing (hover, focus, click states)"},{"issueList":"Prioritized list of UI issues found"}] |
| linksTo | ["fix","code-review","scout"] |
| linkedFrom | ["cook","team","ship"] |
| preferredNextSkills | ["fix","code-review"] |
| fallbackSkills | ["scout","debug"] |
| riskLevel | low |
| memoryReadPolicy | selective |
| memoryWritePolicy | selective |
| sideEffects | ["Takes screenshots (creates image files)","Opens browser sessions via Playwright","Does NOT modify source code"] |
Systematically test user interfaces across viewports, accessibility standards, and interaction patterns. This skill uses visual testing (screenshots), automated accessibility auditing, and interaction verification to catch UI problems that unit tests miss.
UI bugs are user-facing bugs. They are the first thing users see and the last thing developers test. This skill closes that gap.
Identify the test target:
Define viewport matrix (default set):
| Name | Width | Height | Device Class |
|---|---|---|---|
| Mobile S | 320 | 568 | iPhone SE |
| Mobile M | 375 | 667 | iPhone 8 |
| Mobile L | 414 | 896 | iPhone 11 |
| Tablet | 768 | 1024 | iPad |
| Desktop | 1280 | 800 | Laptop |
| Desktop L | 1920 | 1080 | Full HD |
Set up the browser using Playwright MCP:
For each viewport in the matrix: a. Resize the browser to the viewport dimensions b. Wait for layout to settle (resize can trigger animations) c. Take a full-page screenshot d. Take a viewport-only screenshot (above the fold) e. Record any visual anomalies observed:
Capture key states (if interactive elements exist):
Evaluate against WCAG 2.1 AA criteria:
Perceivable:
Operable:
Understandable:
<html lang="en">)Robust:
Run automated accessibility check using browser evaluation:
// Check for missing alt text
document.querySelectorAll('img:not([alt])');
// Check for empty buttons/links
document.querySelectorAll('a:empty, button:empty');
// Check heading hierarchy
document.querySelectorAll('h1, h2, h3, h4, h5, h6');
Check layout integrity across viewports:
Check breakpoint transitions:
Test interactive elements (using Playwright):
Test keyboard navigation:
# UI Test Report
## Target
**URL**: [url]
**Date**: [date]
**Viewports tested**: [list]
---
## Visual Summary
| Viewport | Screenshot | Issues |
|----------|-----------|--------|
| Mobile (375px) | [screenshot ref] | [count] issues |
| Tablet (768px) | [screenshot ref] | [count] issues |
| Desktop (1280px) | [screenshot ref] | [count] issues |
## Issues Found
### Critical (Blocks Usage)
#### [V1] [Title]
- **Viewport**: [affected viewports]
- **Description**: [what is wrong]
- **Expected**: [correct behavior]
- **Screenshot**: [reference]
### Major (Degrades Experience)
#### [V2] [Title]
...
### Minor (Polish)
#### [V3] [Title]
...
---
## Accessibility Audit
### Violations
| Rule | Impact | Elements | Fix |
|------|--------|----------|-----|
| [rule] | [critical/serious/moderate] | [count] | [recommendation] |
### Passes
- [count] rules passing
---
## Responsive Behavior
| Breakpoint | Layout | Navigation | Typography | Media |
|-----------|--------|------------|------------|-------|
| 320px | OK/Issue | OK/Issue | OK/Issue | OK/Issue |
| 768px | OK/Issue | OK/Issue | OK/Issue | OK/Issue |
| 1280px | OK/Issue | OK/Issue | OK/Issue | OK/Issue |
## Interaction Results
| Element | Click | Keyboard | Focus | Hover |
|---------|-------|----------|-------|-------|
| [button/link] | Pass/Fail | Pass/Fail | Pass/Fail | Pass/Fail |
---
## Recommendations
1. **[Highest priority]**: [action]
2. **[Second priority]**: [action]
3. ...
/test-ui http://localhost:3000
/test-ui http://localhost:3000/checkout
/test-ui accessibility http://localhost:3000
/test-ui responsive http://localhost:3000/dashboard
/test-ui http://localhost:3000 --viewports mobile,desktop
Test: Homepage at 375px width
Finding: Hero section text overflows container, creating horizontal scrollbar
Root cause: Fixed width of 500px on hero text container instead of max-width
Fix recommendation: Change width: 500px to max-width: 100%
Test: Login form
Finding: Password field has no visible label (only placeholder text)
Impact: Screen reader users cannot identify the field; placeholder disappears on focus
Fix recommendation: Add a visible <label> element associated with the input via htmlFor
Test: Mobile navigation menu Finding: Hamburger menu opens on click but cannot be closed with keyboard (Escape key does not work) Impact: Keyboard users are trapped in the menu Fix recommendation: Add Escape key handler to close the menu and return focus to the trigger button