04-accessibility

04-accessibility is a cursor rule for Cursor from the-missing-pink/ai-repository-security-baseline. It costs 0 tokens per session (264 once invoked), scanned A, original, Apache-2.0.

A set of rules for building websites and user interfaces that people with disabilities can use, based on WCAG 2.1 AA, an accessibility standard. It covers structure, screen readers, keyboard use, visual contrast, and motion preferences.

In plain words
What is it for?
Use it when creating or reviewing UI components, forms, navigation, headings, images, dialogs, keyboard interactions, contrast, text sizing, and motion or color-theme behavior.
Why use it?
It helps prevent interfaces that exclude people who navigate with keyboards, screen readers, or other assistive tools. It also reduces common accessibility mistakes such as missing labels, poor focus states, and relying on color alone.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when creating or reviewing UI components, forms, navigation, headings, images, dialogs, keyboard interactions, contrast, text sizing, and motion or color-theme behavior.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/the-missing-pink/ai-repository-security-baseline/04-accessibility
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/the-missing-pink/ai-repository-security-baseline

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 04-accessibility

README.md
[![agentmods](https://agentmods.dev/badge/rules/the-missing-pink/ai-repository-security-baseline/04-accessibility.svg)](https://agentmods.dev/rules/the-missing-pink/ai-repository-security-baseline/04-accessibility)
Your own site
<a href="https://agentmods.dev/rules/the-missing-pink/ai-repository-security-baseline/04-accessibility"><img src="https://agentmods.dev/badge/rules/the-missing-pink/ai-repository-security-baseline/04-accessibility.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 264 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00264
Opus 5 $0.00000 $0.00132
Sonnet 5 $0.00000 $0.00053
Haiku 4.5 $0.00000 $0.00026

Measured 7d ago against content hash f3a945f2a651, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

04-accessibility scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/04-accessibility.mdc · 35 lines

What it actually says

Accessibility Standards (WCAG 2.1 AA)

Semantic HTML

  • Use semantic elements (nav, main, article, section, button, etc.).
  • Never use div or span for interactive elements.
  • Ensure correct heading hierarchy (h1 through h6 in order).

ARIA & Screen Readers

  • Add ARIA labels and roles where semantic HTML is insufficient.
  • All images must have meaningful alt attributes (or alt="" for decorative).
  • Form inputs must have associated label elements.
  • Dynamic content must use ARIA live regions.

Keyboard Navigation

  • All interactive elements must be reachable via keyboard.
  • Maintain a logical tab order.
  • Provide visible focus indicators.
  • Support Escape to close modals.

Visual Design

  • Minimum 4.5:1 color contrast for normal text, 3:1 for large text.
  • Never convey information through color alone.
  • Use relative units (rem, em) for text, not px.
  • Support prefers-reduced-motion and prefers-color-scheme.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 35 lines · 0 tokens per session scan A f3a945f2a651

Subscribe to this mod's changes

04-accessibility is a cursor rule published in the GitHub repository the-missing-pink/ai-repository-security-baseline (10 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 264 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.