# Accessibility as code

> Accessibility as code is an open-source agent skill for developer tools. Checks React Native code for accessibility labels, touch targets, text scaling. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/accessibility-as-code
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** accessibility-as-code
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/accessibility-as-code)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/accessibility-as-code)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/accessibility-as-code)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Accessibility](https://ai-powered.com/skills/accessibility): Accessibility is an open-source agent skill for developer tools.
- [iOS accessibility](https://ai-powered.com/skills/ios-accessibility): iOS accessibility is an open-source agent skill for developer tools.
- [Axiom audit accessibility](https://ai-powered.com/skills/axiom-audit-accessibility): Axiom audit accessibility is an open-source agent skill for developer tools.
- [Vercel react native skills](https://ai-powered.com/skills/vercel-react-native-skills): Vercel react native skills is an open-source agent skill for cloud and infrastructure.
- [Accessibility audit](https://ai-powered.com/skills/accessibility-audit-pstuart): Accessibility audit is an open-source agent skill for developer tools.
- [Accessibility review](https://ai-powered.com/skills/accessibility-review): Accessibility review is an open-source agent skill for developer tools.
- [Adaptive layout](https://ai-powered.com/skills/adaptive-layout): Adaptive layout is an open-source agent skill for developer tools.
- [Accessibility audit](https://ai-powered.com/skills/accessibility-audit-ivy00johns): Accessibility audit is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/accessibility-as-code
