Automated summary
This skill guides writing and reviewing frontend markup, SCSS, and JS so the resulting UI meets WCAG 2.2 AA, favoring semantic HTML, focus management, motion safety, contrast, and adequate touch targets.
Strengths
- Provides concrete, checkable rules (4.5:1 and 3:1 contrast ratios, 24 px and 44 px targets)
- Enforces native HTML over ARIA with explicit replacement examples
- Covers frequently missed details: modal focus trapping, skip link, prefers-reduced-motion, non-color state cues
- Includes media guidance: decorative vs informative alt text, lazy-loading except the LCP image, captions and transcripts
Limitations
- The skill states its quick checks are not exhaustive and defers to the specification
- Offers no tooling or test procedure for automated or manual accessibility auditing
- Assumes an existing design-system context (referrals to scss-mobile-first and frontend-design) without defining it
Use it whenever you write or review markup, SCSS, or JS that produces public-facing UI expected to meet WCAG 2.2 AA.
Skip it for purely non-visual work (APIs, build scripts, back-end) where no user-facing semantics or interaction is involved.
Security analysis
SafeThis skill is pure documentation: markdown guidance on WCAG 2.2 AA accessibility practices. It declares no allowed-tools, contains no scripts, no network calls, no file operations, and no instructions to execute anything. There is no execution surface for a destructive or exfiltrating action, so listing it carries no meaningful risk.
No concerns found
How this analysis is madeExamples
Review this card component (HTML + SCSS) against WCAG 2.2 AA: check semantic elements, focus visibility, contrast ratios, and touch target size, and list fixes.Build a modal dialog with a close button and a form inside. Make sure it traps focus while open, restores focus on close, and uses semantic HTML instead of ARIA roles.This form uses a red border only for errors and animates the submit button. Make it accessible: honor prefers-reduced-motion, associate errors with their fields, and add a non-color cue for the disabled state.name: accessibility description: Use when writing or reviewing frontend markup, SCSS, or JS that produces UI. Covers WCAG 2.2 AA, semantic HTML over ARIA, focus management, motion safety, contrast, target size, and accessible media. Complements scss-mobile-first and frontend-design. metadata: prism.frontend-skill-order: "40"
WCAG 2.2 AA — the floor
Every public-facing UI must meet WCAG 2.2 Level AA. The quick checks below are not exhaustive; when in doubt, consult the specification.
Prefer semantic HTML over ARIA
Use the native element first. ARIA is a patch, not a replacement.
<button>not<div role="button">.<a href>not<span role="link">.- Use
<nav>,<main>,<header>,<footer>,<article>, and<section>for landmarks rather than redundant roles on generic elements. - Add
aria-*only when native semantics are insufficient for a component.
Focus management
- Every interactive element must be reachable and operable by keyboard.
- Never remove focus outlines without providing a visible alternative.
- Focus order follows DOM order; avoid positive
tabindexvalues. - Modals and drawers trap focus while open and restore it on close.
- Put a skip-to-content link first in the focus order on each page.
Touch targets
- WCAG 2.2 AA Target Size (Minimum) is 24 × 24 CSS px with its defined exceptions.
- Use 44 × 44 CSS px for primary touch controls as a stricter Prism recommendation.
- Keep adjacent targets separated so users can avoid accidental activation.
Motion safety
- Honor
prefers-reduced-motion: reduce. - Disable non-essential animation and transitions when reduced motion is requested; snap to the final state.
- Do not place essential content in motion that cannot be paused or skipped.
Contrast
- Normal text: at least 4.5:1.
- Large text: at least 3:1.
- Applicable component boundaries and focus indicators: at least 3:1.
- If the user-authored palette fails, revise the palette or add a visible boundary; never weaken the accessibility floor.
Color and state
- Never rely on color alone for errors, success, selection, or disabled state.
- Associate form errors with their controls and announce updates as needed.
- Use native disabled semantics and a non-color cue for disabled controls.
Images and media
- Decorative images use
alt="". - Informative images describe meaning rather than appearance alone.
- Lazy-load below-the-fold images, but not the likely LCP image.
- Provide captions or transcripts for audio and video.
Cross-refs
scss-mobile-first— responsive and touch-oriented implementation.frontend-design— user-authored visual brief and quality recommendations.frontend-architecture— progressive enhancement and keyboard behavior.visual-review— configured viewport and state evidence.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/frontend-accessibility-wcag-2-2-mtfbwmbu/download' --output '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md.part' && mv '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md.part' '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md' && test -s '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/accessibility' && cp -R '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu' '.claude/skills/accessibility'Cursor
test -f '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md' && test -s '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/accessibility' && cp -R '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu' '.cursor/skills/accessibility'Codex
test -f '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md' && test -s '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/accessibility' && cp -R '.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu' '.agents/skills/accessibility'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu'openskills read 'frontend-accessibility-wcag-2-2-mtfbwmbu'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/frontend-accessibility-wcag-2-2-mtfbwmbu/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.