Skip to content
Skill

Accessibility as code

Checks React Native code for accessibility labels, touch targets, text scaling

Accessibility as code is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
JavaScript, TypeScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
16
Last commit
License
MIT
Listing updated

Similar skills

About Accessibility as code

This skill sets up accessibility rules for a React Native app and enforces them in code. It covers screen reader names and roles, touch targets of at least 44 pt, text that keeps working at 200 percent size, WCAG 2.2 AA colour pairs declared in one contract file, and reduce-motion handling through a shared store and provider.

The workflow copies shared helper components and tests into the app, sets up a contrast contract for the theme palette and other colour tables, and asks the agent to build screens with accessible patterns. Two checker scripts scan the source and contract, printing PASS or FAIL lines, and a Maestro flow captures large-text screenshots on named simulators. It also includes a checklist for a human VoiceOver and TalkBack pass before release.

It expects a React Native project using Expo Router, with TypeScript or JavaScript sources and Node available to run the checker scripts from the repository root.

When your agent uses it

Enforces a11y labels, 44pt targets, 200% text, VoiceOver, TalkBack. Use when adding a pressable, swipe or a11y label, text clips when large, contrast fails or Reduce Motion is missed. Not for RTL (rtl-and-direction).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 72 files (518 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the react-native plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills

Or copy only this skill to ~/.claude/skills/accessibility-as-code:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/accessibility-as-code &&
cp -R "$tmp/skills/accessibility-as-code" ~/.claude/skills/accessibility-as-code &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/accessibility-as-code inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/accessibility-as-code to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/accessibility-as-code &&
cp -R "$tmp/skills/accessibility-as-code" ~/.agents/skills/accessibility-as-code &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/accessibility-as-code inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/accessibility-as-code to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/accessibility-as-code &&
cp -R "$tmp/skills/accessibility-as-code" ~/.cursor/skills/accessibility-as-code &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/accessibility-as-code inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/accessibility-as-code

Or copy the folder to ~/.gemini/skills/accessibility-as-code yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/accessibility-as-code:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/accessibility-as-code &&
cp -R "$tmp/skills/accessibility-as-code" ~/.copilot/skills/accessibility-as-code &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/accessibility-as-code inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git

Then copy ReactNative-Skills/skills/accessibility-as-code into your agent's skills folder as accessibility-as-code. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Accessible names and roles
Rules and tests ensuring every interactive element has a translated name, role, and state for screen readers.
Touch target sizing
Requires touch targets to be at least 44 pt on their own box, avoiding hitSlop workarounds.
Large text support
Guidance for text scaling to 200 percent, stacking rows at large sizes, and avoiding clipped labels.
Contrast contract checks
A single contract file declares colour pairs and a checker verifies WCAG 2.2 AA contrast in every colour set.
Reduce motion handling
Routes motion preferences through a shared hook and provider and requires a reduced alternative for each moving element.
Overlay and gesture rules
Covers modal overlays on iOS and Android and requires named accessibility actions for swipes and drags.

Good for

  • Add an accessible pressable with a translated label to a screen
  • Fix text that clips when the system font size is increased
  • Check that colour pairs in the theme meet contrast requirements
  • Make a swipe-to-delete row usable with VoiceOver or TalkBack
  • Add reduce-motion support to an animation
  • Run the accessibility checker before a release

Accessibility as code FAQ

When does Accessibility as code trigger?

It triggers when adding a pressable, swipe or accessibility label, when text clips at large sizes, when contrast fails, or when Reduce Motion is missed. It does not cover right-to-left layout, which belongs to a separate skill.

What does Accessibility as code change in my project?

Its setup step copies helper files into src/ui/a11y/ and test/a11y/, adds a contrast contract under contracts/, and asks you to wrap the root layout in a motion provider.

What does Accessibility as code need to run?

The checker scripts run with Node from the repository root. It targets React Native apps and includes a Maestro flow for large-text device checks.

Does Accessibility as code replace manual screen reader testing?

No. The skill states that scripts and tests cover what a machine can see, and a human VoiceOver and TalkBack pass is still needed before release.

How do I install Accessibility as code in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/accessibility-as-code to use it in all your projects, or to .claude/skills/accessibility-as-code in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

Does Accessibility as code run scripts?

Yes. It runs JavaScript and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Accessibility as code?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Accessibility as code?

The closest alternatives to Accessibility as code are Accessibility, iOS accessibility, Axiom audit accessibility, Vercel react native skills and Accessibility audit.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from zakariaf/ReactNative-Skills

  1. Turns canvas taps, swipes and drags into typed intents hit-tested on the drawn layout

    • Open source
    • 16 GitHub stars
    • Developer tools
  2. Adds a gated debug menu, debug deep link and simulated clock and offline mode to React

    • Open source
    • 16 GitHub stars
    • Developer tools
  3. Sells a one-time Premium unlock through the App Store and Google Play

    • Open source
    • 16 GitHub stars
    • Finance and payments
  4. Walks an Expo app through an SDK, Xcode or Android toolchain upgrade in one commit

    • Open source
    • 16 GitHub stars
    • Developer tools
  5. Builds React Native forms with one valibot schema, catalog-key errors and keyboard-aware

    • Open source
    • 16 GitHub stars
    • Developer tools
  6. Headless seeded bot sims that measure and tune difficulty in React Native games

    • Open source
    • 16 GitHub stars
    • Developer tools