text
| 1 | # Accessibility Rules |
| 2 | |
| 3 | Agent-written UI tends to fail accessibility in the same handful of ways: a div with an |
| 4 | onClick, an icon button with no name, focus styles removed for looking untidy, and ARIA |
| 5 | attributes bolted onto markup that would have been fine without them. These rules |
| 6 | target exactly those. |
| 7 | |
| 8 | ## When to use |
| 9 | |
| 10 | - Any project where an agent writes or edits user interface code. |
| 11 | - Before shipping a component that a keyboard or screen reader user will meet. |
| 12 | - As the review standard for UI in a pull request. |
| 13 | |
| 14 | ## Install |
| 15 | |
| 16 | ```bash |
| 17 | npx openagents-cli add openagents/accessibility-rules |
| 18 | ``` |
| 19 | |
| 20 | | Runtime | Installed to | |
| 21 | |---|---| |
| 22 | | `claude-code` | `.claude/skills/accessibility-rules/` | |
| 23 | | `cursor` | `.cursor/rules/accessibility-rules/` | |
| 24 | | `codex` | `.codex/skills/accessibility-rules/` | |
| 25 | | `generic` | `.openagents/accessibility-rules/` | |
| 26 | |
| 27 | ## What is in the package |
| 28 | |
| 29 | - `RULES.md` - the rules, each with the barrier it removes. |
| 30 | - `review-checklist.md` - a pass you can run in a browser in about five minutes. |
| 31 | |
| 32 | ## License |
| 33 | |
| 34 | MIT |
| 35 |