算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
accessibility-review【设计与创意】Run a WCAG accessibility audit on a design, component, or page. TRIGGER when: user says "accessibility audit", "a11y review", "WCAG check", "is this accessible", or asks about color contrast, screen readers, keyboard navigation, or ARIA.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Perform a structured WCAG 2.2 accessibility audit. Evaluate designs, components, or implementations against established standards and produce actionable findings.
Evaluate against these WCAG 2.2 conformance levels, in order of priority:
| Criterion | What to Check |
|---|---|
| 1.1.1 Non-text Content | Every image, icon, and visual element has a text alternative |
| 1.3.1 Info and Relationships | Structure (headings, lists, tables) is programmatically determinable, not just visual |
| 1.3.2 Meaningful Sequence | Reading order matches visual order |
| 1.4.1 Use of Color | Color is not the only means of conveying information |
| 2.1.1 Keyboard | All functionality is operable via keyboard |
| 2.4.1 Bypass Blocks | Skip navigation or landmark regions exist |
| 2.4.2 Page Titled | Pages have descriptive titles |
| 3.1.1 Language of Page | lang attribute is set |
| 3.3.1 Error Identification | Errors are identified and described in text |
| 4.1.2 Name, Role, Value | All UI components have accessible names and roles |
| Criterion | What to Check |
|---|---|
| 1.4.3 Contrast (Minimum) | Text: 4.5:1 ratio. Large text (18px+ bold or 24px+): 3:1 |
| 1.4.4 Resize Text | Content is readable at 200% zoom without loss of functionality |
| 1.4.11 Non-text Contrast | UI components and graphics: 3:1 ratio against adjacent colors |
| 2.4.6 Headings and Labels | Headings and labels describe topic or purpose |
| 2.4.7 Focus Visible | Keyboard focus indicator is visible |
| 3.2.3 Consistent Navigation | Navigation is consistent across pages |
| 3.3.2 Labels or Instructions | Form inputs have labels or instructions |
| Criterion | What to Check |
|---|---|
| 1.4.6 Contrast (Enhanced) | Text: 7:1 ratio. Large text: 4.5:1 |
| 2.4.10 Section Headings | Content is organized with section headings |
| 3.2.5 Change on Request | Changes of context are initiated only by user request |
| 3.3.5 Help | Context-sensitive help is available |
$ARGUMENTS references a file, read it. If it references a component, find it in the codebase.If auditing implementation code (HTML/JSX/TSX):
alt attributes.aria-* attributes on interactive elements.<label> elements or aria-label.h1 -> h2 -> h3, no skips).role attributes on custom interactive elements.:focus / focus-visible styles in CSS.tabindex usage (avoid positive values).For designs or areas that can't be automated:
prefers-reduced-motion?Output a structured report:
## Accessibility Audit — {component/page name}
**Target**: WCAG 2.2 Level AA
**Scope**: {what was audited}
**Date**: {today}
### Critical (Level A violations)
- [{criterion}] {description of issue}
- **Location**: {file:line or design element}
- **Impact**: {who is affected and how}
- **Fix**: {specific remediation}
### Major (Level AA violations)
- [{criterion}] {description}
- **Location**: ...
- **Impact**: ...
- **Fix**: ...
### Advisory (Best practices & AAA)
- {recommendation}
### Passed
- {list of criteria that passed}
### Summary
- Critical: {N} | Major: {N} | Advisory: {N} | Passed: {N}
| Severity | Definition | Action |
|---|---|---|
| Critical | Blocks access for one or more disability groups | Must fix before release |
| Major | Significantly degrades experience for assistive tech users | Should fix before release |
| Advisory | Enhancement that improves experience but doesn't block access | Fix when possible |
Reference these when recommending fixes:
alt="" for decorativeoutline or custom focus indicator, never outline: none without replacement<label> over aria-label — visible labels help everyonearia-live regions for content that updates without page reload