Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibility traits and hints…
Pins this version in aipm.package.json and aipm-lock.json.
aipm add @affaan-m/accessibility@1.0.0
Without project tracking
Writes the skill files only. Add --no-init to skip aipm.package.json and the lockfile.
aipm add @affaan-m/accessibility@1.0.0 --no-init
How to use
Install the skill above, then run this in your AI tool:
/accessibility <your description>
About
This skill ensures that digital interfaces are Perceivable, Operable, Understandable, and Robust (POUR) for all users, including those using screen readers, switch controls, or keyboard navigation. It focuses on the technical implementation of WCAG 2.2 success criteria.
Source
What gets added to your project
Preview every file this package writes on install before you run the command above.
Summary
2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibility traits and hints, focus management, contrast, target size, and screen-reader support. Use when b...
Skill instructions
Accessibility (WCAG 2.2)
This skill ensures that digital interfaces are Perceivable, Operable, Understandable, and Robust (POUR) for all users, including those using screen readers, switch controls, or keyboard navigation. It focuses on the technical implementation of WCAG 2.2 success criteria.
When to Use
Defining UI component specifications for Web, iOS, or Android.
Auditing existing code for accessibility barriers or compliance gaps.
Implementing new WCAG 2.2 standards like Target Size (Minimum) and Focus Appearance.
POUR Principles: The foundation of WCAG (Perceivable, Operable, Understandable, Robust).
Semantic Mapping: Using native elements over generic containers to provide built-in accessibility.
Accessibility Tree: The representation of the UI that assistive technologies actually "read."
Focus Management: Controlling the order and visibility of the keyboard/screen reader cursor.
Labeling & Hints: Providing context through aria-label, accessibilityLabel, and contentDescription.
How It Works
Step 1: Identify the Component Role
Determine the functional purpose (e.g., Is this a button, a link, or a tab?). Use the most semantic native element available before resorting to custom roles.
Step 2: Define Perceivable Attributes
Ensure text contrast meets 4.5:1 (normal) or 3:1 (large/UI).
Add text alternatives for non-text content (images, icons).
Implement responsive reflow (up to 400% zoom without loss of function).
Div-Buttons: Using a <div> or <span> for a click event without adding a role and keyboard support.
Color-Only Meaning: Indicating an error or status only with a color change (e.g., turning a border red).
Uncontained Modal Focus: Modals that don't trap focus, allowing keyboard users to navigate background content while the modal is open. Focus must be contained and escapable via the Escape key or an explicit close button (WCAG SC 2.1.2).
Redundant Alt Text: Using "Image of..." or "Picture of..." in alt text (screen readers already announce the role "Image").
Best Practices Checklist
Interactive elements meet the 24x24px (Web) or 44x44pt (Native) target size.
Focus indicators are clearly visible and high-contrast.
Modals contain focus while open, and release it cleanly on close (Escape key or close button).
Dropdowns and menus restore focus to the trigger element on close.
Forms provide text-based error suggestions.
All icon-only buttons have a descriptive text label.
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/affaan-m/accessibility/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.
AI assistant context
What this skill is for
@affaan-m/accessibility@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibility traits and hints, focus management, contrast, target size, and screen-reader support. Use when b...
Preview a UI component mockup in a local browser canvas where the human directly edits it (move, resize, edit text, delete, restyle), switches mobile/desktop/custom viewports, tests it, chats with you, and clicks Save and Finish. You the...
Run aipm add @affaan-m/accessibility@1.0.0 in a project that has AIPM initialized.
Supported tools
@affaan-m/accessibility@1.0.0 supports All tools.
Before installing
AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.