a11y-agents-kit
AGENTS.md33 starsChanged 9 months agoMITView on GitHub
This monorepo provides accessibility-focused skills and MCP servers for AI coding agents. It is maintained by weAAAre and published under the @weAAAre npm scope. Always run pnpm install before building or testing after a fresh clone. To scope to a single package: The GitHub Actions workflow (.github/workflows/ci.yml) runs on every push/PR to main: All steps must pass before merging. These rules are mandatory. Follow them in every file you create or modify. Biome handles all formatting. Do not fight it.…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- find-skillsSkill
- rstestSkill
- skill-creatorSkill
- typescript-expertSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
28 rules. About 0 are common, 7 are distinctive, and 21 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
21
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 31
Always run pnpm install before building or testing after a fresh clone.
- Distinctive: line 61
All steps must pass before merging.
- Very specific: line 69
Always use arrow functions.
- Distinctive: line 74
Do not write comments that only restate what the code does.
- Distinctive: line 76
Never leave commented-out code.
- Very specific: line 77
Never add // TODO without an associated issue number.
- Very specific: line 81
Use camelCase for variables, functions, and parameters.
- Very specific: line 82
Use PascalCase for types, interfaces, and classes.
- Very specific: line 83
Use SCREAMING_SNAKE_CASE for constants that represent fixed configuration values.
- Distinctive: line 88
Always explicitly type function parameters and return types.
- Very specific: line 89
Prefer type over interface unless declaration merging is needed.
- Very specific: line 90
Never use any. Use unknown and narrow with type guards when the type is truly unknown.
- Very specific: line 91
Never use as type assertions unless unavoidable — prefer type predicates or satisfies.
- Very specific: line 95
All packages use "type": "module" (ESM only).
- Very specific: line 96
Use path extensions in relative imports (e.g.
- Distinctive: line 109
Never swallow errors silently.
- Very specific: line 110
Use typed errors or Error subclasses with descriptive messages.
- Very specific: line 114
Test files live in tests/ alongside the package source.
- Very specific: line 115
Test runner is Rstest (@rstest/core).
- Distinctive: line 116
Every new feature or bug fix requires at least one test.
- Very specific: line 117
Run pnpm test before committing.
- Distinctive: line 121
Follow Conventional Commits enforced by Commitlint.
- Very specific: line 133
All dependency versions are centralized in the pnpm workspace catalog (pnpm-workspace.yaml).
- Very specific: line 135
Always use exact versions (no ^ or ~ ranges).
- Very specific: line 136
When adding a new dependency, add it to the catalog first, then reference it with catalog: in the package.
- Very specific: line 140
Create a directory under packages/<name>/.
- Very specific: line 141
Add package.json with "name": "@weaaare/<name>", "type": "module", and catalog: dependency references.
- Very specific: line 143
Add the scope to commitlint.config.ts in the scope-enum rule.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Purpose
This monorepo provides accessibility-focused skills and MCP servers for AI coding agents. It is maintained by weAAAre and published under the @weAAAre npm scope.
packages/— MCP server packages:mcp-a11y-color— WCAG color contrast, color blindness simulation, palette analysis.mcp-voiceover-auditor— macOS VoiceOver-based accessibility audits.mcp-virtual-screen-reader-auditor— Headless virtual screen reader audits (cross-platform).mcp-auditor-core— Shared audit session, findings, reports, and tool registry (internal, not published).
packages/config— Shared configuration (tsconfig, rstest base config).skills/— Agent skills (markdown-based knowledge modules on accessibility topics like ARIA patterns).
Stack
| Tool | Version | Purpose |
| Node.js | ≥ 24 | Runtime (see .nvmrc) |
| pnpm | 9.15.4 | Package manager with workspace catalog |
| TypeScript | 5.9.3 | Language (strict mode, ESM) |
| Turborepo | 2.8.14 | Monorepo task orchestration |
| Biome | 2.4.6 | Linter + formatter |
| Rstest | 0.9.0 | Test runner |
| Changesets | 2.30.0 | Versioning and npm publishing |
| Lefthook | 2.1.3 | Git hooks |
| Commitlint | 20.4.3 | Commit message validation |
Commands
Always run pnpm install before building or testing after a fresh clone.
pnpm install # install all dependencies
pnpm build # build all packages (via Turborepo)
pnpm test # run all tests (via Turborepo → rstest)
pnpm check-types # type-check all packages
pnpm lint # lint all packages (via Turborepo)
pnpm ci:check # Biome CI mode (lint + format, no writes)
pnpm format # auto-format everything with Biome
pnpm check # Biome check with auto-fixTo scope to a single package:
pnpm --filter mcp-a11y-color test
pnpm --filter mcp-a11y-color buildCI Pipeline
The GitHub Actions workflow (.github/workflows/ci.yml) runs on every push/PR to main:
pnpm install --frozen-lockfilepnpm ci:check(Biome lint & format)pnpm check-typespnpm buildpnpm test
All steps must pass before merging.
Code Rules
These rules are mandatory. Follow them in every file you create or modify.
Functions
- Always use arrow functions. Never use the
functionkeyword. - Exception: when a framework or library explicitly requires a
functiondeclaration (e.g. certainthis-binding scenarios). In that case add a brief explanation.
Comments
- Do not write comments that only restate what the code does. Code should be self-explanatory.
- Comments are allowed only when they explain why (business logic, non-obvious decisions, workarounds, links to specs).
- Never leave commented-out code.
- Never add
// TODOwithout an associated issue number.
Naming
- Use
camelCasefor variables, functions, and parameters. - Use
PascalCasefor types, interfaces, and classes. - Use
SCREAMING_SNAKE_CASEfor constants that represent fixed configuration values. - File names use
kebab-case(e.g.color-parser.ts,check-contrast.ts).
Types
- Always explicitly type function parameters and return types. Do not rely on inference for public APIs.
- Prefer
typeoverinterfaceunless declaration merging is needed. - Never use
any. Useunknownand narrow with type guards when the type is truly unknown. - Never use
astype assertions unless unavoidable — prefer type predicates orsatisfies.
Imports and Modules
- All packages use
"type": "module"(ESM only). - Use path extensions in relative imports (e.g.
./foo.tsnot./foo). - Group imports: external packages first, then internal modules, separated by a blank line.
Formatting
Biome handles all formatting. Do not fight it. Key settings:
- 2-space indent, 100-character line width.
- Single quotes, semicolons always, trailing commas.
- Arrow parentheses always:
(x) => xnotx => x.
Error Handling
- Never swallow errors silently. Always log or re-throw.
- Use typed errors or
Errorsubclasses with descriptive messages.
Tests
- Test files live in
tests/alongside the package source. - Test runner is Rstest (
@rstest/core). It uses Jest-compatible APIs (describe,it,expect). - Every new feature or bug fix requires at least one test.
- Run
pnpm testbefore committing. All tests must pass.
Commits
Follow Conventional Commits enforced by Commitlint.
Format: type(scope): description
Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert.
Scopes: mcp-a11y-color, mcp-auditor-core, mcp-virtual-screen-reader-auditor, mcp-voiceover-auditor, skills, aria-patterns, packages, root, ci, deps, release.
Subject must be lowercase, no period, max 100 characters.
Dependency Management
- All dependency versions are centralized in the pnpm workspace catalog (
pnpm-workspace.yaml). - Package-level
package.jsonfiles reference versions withcatalog:. - Always use exact versions (no
^or~ranges). - When adding a new dependency, add it to the catalog first, then reference it with
catalog:in the package.
Adding a New Package
- Create a directory under
packages/<name>/. - Add
package.jsonwith"name": "@weaaare/<name>","type": "module", andcatalog:dependency references. - Extend
@weaaare/config/tsconfig/library.jsonintsconfig.json. - Add the scope to
commitlint.config.tsin thescope-enumrule.
Skills
Skills are markdown-based knowledge modules in skills/. They follow the structure:
skills/<topic>/
SKILL.md # Main skill instructions
references/ # Supporting reference materialSkills are pure documentation — no runtime code.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

