Accessibility Compliance

Accessibility Compliance

Teaches an AI coding agent to build accessible web apps following WCAG 2.1/2.2, with ARIA, keyboard navigation, focus management and screen reader support.

Skill files8 files

references/

templates/

SKILL.md105 lines
1
---
2
name: accessibility-compliance
3
description: >
4
Implement WCAG 2.1/2.2 accessibility standards, screen reader compatibility,
5
keyboard navigation, and a11y testing. Use when building inclusive web
6
applications, ensuring regulatory compliance, or improving user experience for
7
people with disabilities.
8
---
9
10
# Accessibility Compliance
11
12
## Table of Contents
13
14
- [Overview](#overview)
15
- [When to Use](#when-to-use)
16
- [Quick Start](#quick-start)
17
- [Reference Guides](#reference-guides)
18
- [Best Practices](#best-practices)
19
20
## Overview
21
22
Implement comprehensive accessibility features following WCAG guidelines to ensure your application is usable by everyone, including people with disabilities.
23
24
## When to Use
25
26
- Building public-facing web applications
27
- Ensuring WCAG 2.1/2.2 AA or AAA compliance
28
- Supporting screen readers (NVDA, JAWS, VoiceOver)
29
- Implementing keyboard-only navigation
30
- Meeting ADA, Section 508, or similar regulations
31
- Improving SEO and overall user experience
32
- Conducting accessibility audits
33
34
## Quick Start
35
36
Minimal working example:
37
38
```html
39
<!-- Bad: Non-semantic markup -->
40
<div class="button" onclick="submit()">Submit</div>
41
42
<!-- Good: Semantic HTML -->
43
<button type="submit" aria-label="Submit form">Submit</button>
44
45
<!-- Custom components with proper ARIA -->
46
<div
47
role="button"
48
tabindex="0"
49
aria-pressed="false"
50
onclick="toggle()"
51
onkeydown="handleKeyPress(event)"
52
>
53
Toggle Feature
54
</div>
55
56
<!-- Form with proper labels and error handling -->
57
<form>
58
<label for="email">Email Address</label>
59
<input
60
id="email"
61
type="email"
62
name="email"
63
aria-required="true"
64
// ... (see reference guides for full implementation)
65
```
66
67
## Reference Guides
68
69
Detailed implementations in the `references/` directory:
70
71
| Guide | Contents |
72
|---|---|
73
| [Semantic HTML with ARIA](references/semantic-html-with-aria.md) | Semantic HTML with ARIA |
74
| [React Component with Accessibility](references/react-component-with-accessibility.md) | React Component with Accessibility |
75
| [Keyboard Navigation Handler](references/keyboard-navigation-handler.md) | Keyboard Navigation Handler |
76
| [Color Contrast Validator](references/color-contrast-validator.md) | Color Contrast Validator |
77
| [Screen Reader Announcements](references/screen-reader-announcements.md) | Screen Reader Announcements |
78
| [Focus Management](references/focus-management.md) | Focus Management |
79
80
## Best Practices
81
82
### ✅ DO
83
84
- Use semantic HTML elements
85
- Provide text alternatives for images
86
- Ensure sufficient color contrast (4.5:1 minimum)
87
- Support keyboard navigation
88
- Implement focus management
89
- Test with screen readers
90
- Use ARIA attributes correctly
91
- Provide skip links
92
- Make forms accessible with labels
93
- Support text resizing up to 200%
94
95
### ❌ DON'T
96
97
- Rely solely on color to convey information
98
- Remove focus indicators
99
- Use only mouse/touch interactions
100
- Auto-play media without controls
101
- Create keyboard traps
102
- Use positive tabindex values
103
- Override user preferences
104
- Hide content only visually that should be hidden from screen readers
105

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,374 prompts

More by @OpenSourceBuffGuy

See all
Red satin slip dress in a luxury fashion film prompt image

Red satin slip dress in a luxury fashion film

Directs a 20-second luxury fashion film of a model in a red satin slip dress, in five timed shots with camera moves, sound cues and reference images for face and dress.

video-prompt, multi-shot, timed-beats, camera-movement, fashion, video-ad, product-video, cinematic, photorealistic, character-consistency, reference-image, luxury, slow-motion, macro, close-up, tracking-shot, moody, wan, for-filmmakers, for-marketers, advanced, long-form, structured-output, studio-lighting

Warrior enters witch chamber full of corpses prompt image

Warrior enters witch chamber full of corpses

Describes a cinematic dark-fantasy fight in which a knight in silver armour battles a many-armed ghost in an underground witch chamber, told in clear shot beats.

video-prompt, hailuo, dark-fantasy, action, martial-arts, tracking-shot, camera-movement, cinematic, creatures, warriors, fantasy-world, horror, gothic, visual-effects, dramatic-lighting, moody, multi-shot, handheld, slow-motion, long-form, photorealistic, short-film

Photo paired with a paper illustration poster prompt image

Photo paired with a paper illustration poster

Turns each uploaded photo into an editorial poster split in half: the top stays a faithful photo and the bottom is a small hand-drawn paper illustration of the same scene.

image-prompt, gpt-image, reference-image, photo-editing, style-transfer, poster, split-screen, minimalist, negative-space, limited-palette, illustration, painting, vertical-format, typography, editorial, structured-output, for-artists, for-photographers, for-designers, photorealistic, muted-colors, architecture

Reviews

Loading reviews…

Discussion

Loading comments…