accessible-by-default

accessible-by-default is a skill for Claude Code, Codex from ThomasSweet/a11y-foundation. It costs 82 tokens per session (2,063 once invoked), scanned A, original, MIT.

Guidance for building web interfaces with built-in browser elements and accessibility support. Accessibility means making websites usable by people with different abilities, devices, and input methods.

In plain words
What is it for?
Use it when creating or reviewing HTML and CSS for controls such as dialogs, menus, forms, buttons, links, and expandable sections.
Why use it?
It helps avoid barriers caused by replacing standard controls with custom elements that do not work well with keyboards, screen readers, or user preferences.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or reviewing HTML and CSS for controls such as dialogs, menus, forms, buttons, links, and expandable sections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thomassweet/a11y-foundation/llms
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.

Any agent
npx skills add ThomasSweet/a11y-foundation --skill llms
Clone the repo
git clone --depth 1 https://github.com/ThomasSweet/a11y-foundation

Made for: Claude Code, Codex.

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 accessible-by-default

README.md
[![agentmods](https://agentmods.dev/badge/skills/thomassweet/a11y-foundation/llms/github.svg)](https://agentmods.dev/skills/thomassweet/a11y-foundation/llms)
Your own site
<a href="https://agentmods.dev/skills/thomassweet/a11y-foundation/llms"><img src="https://agentmods.dev/badge/skills/thomassweet/a11y-foundation/llms/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for accessible-by-default

Your own site · 80×15
<a href="https://agentmods.dev/skills/thomassweet/a11y-foundation/llms"><img src="https://agentmods.dev/badge/skills/thomassweet/a11y-foundation/llms.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,063 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00082 $0.02063
Opus 5.5 $0.00033 $0.00825
Sonnet 5.5 $0.00016 $0.00413
Haiku 4.5 $0.00008 $0.00206

Measured 12d ago against content hash 452b1c4ae92e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

accessible-by-default 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 12d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

public/llms/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Accessible by default

The web platform ships most of accessibility already built in. Most barriers are not missing ARIA — they are a native element that was replaced by a div, and then partially rebuilt.

So the rule is: use the thing that already does the job, and don't break what it gives you. Everything below follows from that.

Before building a component, check what already exists

You need Use Not
A modal <dialog> + showModal() div + focus-trap library
A menu, tooltip, or any transient overlay popover attribute (+ anchor positioning) div + click-outside handler
Expand/collapse <details> / <summary> div + aria-expanded + height JS
A dropdown <select> (customisable <select> if you must restyle) div + listbox roles
Any clickable thing <button> <div onclick>
Anything that navigates <a href> <button> + router.push
A form field label <label for> placeholder, aria-label
Grouped controls <fieldset> + <legend> div + aria-labelledby
Field validation styling :user-valid / :user-invalid JS class toggling on every keystroke
A progress or loading state <progress>, aria-busy animated div with no name

Each native element brings keyboard behaviour, focus management, a role, an accessible name, and platform conventions the user already knows. A rebuilt version starts at zero and has to earn all of it back.

The first rule of ARIA: if a native element gives you the semantics, use it instead of the ARIA attribute. No ARIA is better than bad ARIA — a wrong role overrides what the element correctly reported.

Non-negotiables in anything you write

  • Never remove focus visibility. outline: none is only acceptable when the same rule paints a visible replacement. Style :focus-visible, keep it at least 3:1 against what surrounds it, and never let sticky headers cover the focused element (WCAG 2.2 adds 2.4.11 for exactly this). An outline is drawn outside its element, further out with a positive outline-offset, and any ancestor that clips (overflow other than visible, contain: paint, content-visibility: auto) cuts it at the padding edge: give that ancestor padding of at least the ring's width plus its offset.
  • Keyboard reaches everything, in a sensible order. Reading order is DOM order; CSS reordering (order, grid-area, flex-direction: row-reverse) desyncs the two. Never use tabindex greater than 0.
  • Never signal with color alone. Pair it with text, an icon, or a shape.
  • Text contrast 4.5:1, large text 3:1, and 3:1 for the visual boundary of any control or meaningful graphic.
  • Pointer targets at least 24x24 CSS pixels, or spaced far enough apart to amount to the same thing. 44px is the comfortable choice.
  • Reflow at 320 CSS pixels — equivalently 400% zoom — without a second scroll direction. Logical properties, intrinsic grids, and min-inline-size: 0 on flex/grid children get you most of the way.
  • Never disable zoom. No user-scalable=no, no maximum-scale=1.
  • Every image, icon, and control has a name, and decorative ones are explicitly empty (alt="") rather than unnamed.

Read the full file on GitHub · 169 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago Changed · +15 lines 452b1c4ae92e
  2. 25d ago Changed 5ee3c4ac5dcc
  3. 1mo ago First seen · 154 lines · 82 tokens per session scan A b4bdda94c075

Subscribe to this mod's changes

accessible-by-default is a skill published in the GitHub repository ThomasSweet/a11y-foundation (23 stars, last pushed today), licensed MIT. It adds 82 tokens to every session and 2,063 once invoked, about $0.0003 per session on Opus 5.5. 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-30.