agentleFS
weAAAreweAAAre/a11y-agents-kit/AGENTS.md

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.

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
  1. Very specific:

    Always run pnpm install before building or testing after a fresh clone.

    line 31
  2. Distinctive:

    All steps must pass before merging.

    line 61
  3. Very specific:

    Always use arrow functions.

    line 69
  4. Distinctive:

    Do not write comments that only restate what the code does.

    line 74
  5. Distinctive:

    Never leave commented-out code.

    line 76
  6. Very specific:

    Never add // TODO without an associated issue number.

    line 77
  7. Very specific:

    Use camelCase for variables, functions, and parameters.

    line 81
  8. Very specific:

    Use PascalCase for types, interfaces, and classes.

    line 82
  9. Very specific:

    Use SCREAMING_SNAKE_CASE for constants that represent fixed configuration values.

    line 83
  10. Distinctive:

    Always explicitly type function parameters and return types.

    line 88
  11. Very specific:

    Prefer type over interface unless declaration merging is needed.

    line 89
  12. Very specific:

    Never use any. Use unknown and narrow with type guards when the type is truly unknown.

    line 90
  13. Very specific:

    Never use as type assertions unless unavoidable — prefer type predicates or satisfies.

    line 91
  14. Very specific:

    All packages use "type": "module" (ESM only).

    line 95
  15. Very specific:

    Use path extensions in relative imports (e.g.

    line 96
  16. Distinctive:

    Never swallow errors silently.

    line 109
  17. Very specific:

    Use typed errors or Error subclasses with descriptive messages.

    line 110
  18. Very specific:

    Test files live in tests/ alongside the package source.

    line 114
  19. Very specific:

    Test runner is Rstest (@rstest/core).

    line 115
  20. Distinctive:

    Every new feature or bug fix requires at least one test.

    line 116
  21. Very specific:

    Run pnpm test before committing.

    line 117
  22. Distinctive:

    Follow Conventional Commits enforced by Commitlint.

    line 121
  23. Very specific:

    All dependency versions are centralized in the pnpm workspace catalog (pnpm-workspace.yaml).

    line 133
  24. Very specific:

    Always use exact versions (no ^ or ~ ranges).

    line 135
  25. Very specific:

    When adding a new dependency, add it to the catalog first, then reference it with catalog: in the package.

    line 136
  26. Very specific:

    Create a directory under packages/<name>/.

    line 140
  27. Very specific:

    Add package.json with "name": "@weaaare/<name>", "type": "module", and catalog: dependency references.

    line 141
  28. Very specific:

    Add the scope to commitlint.config.ts in the scope-enum rule.

    line 143

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

ToolVersionPurpose
Node.js≥ 24Runtime (see .nvmrc)
pnpm9.15.4Package manager with workspace catalog
TypeScript5.9.3Language (strict mode, ESM)
Turborepo2.8.14Monorepo task orchestration
Biome2.4.6Linter + formatter
Rstest0.9.0Test runner
Changesets2.30.0Versioning and npm publishing
Lefthook2.1.3Git hooks
Commitlint20.4.3Commit 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-fix

To scope to a single package:

pnpm --filter mcp-a11y-color test
pnpm --filter mcp-a11y-color build

CI Pipeline

The GitHub Actions workflow (.github/workflows/ci.yml) runs on every push/PR to main:

  1. pnpm install --frozen-lockfile
  2. pnpm ci:check (Biome lint & format)
  3. pnpm check-types
  4. pnpm build
  5. pnpm 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 function keyword.
  • Exception: when a framework or library explicitly requires a function declaration (e.g. certain this-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 // TODO without an associated issue number.

Naming

  • Use camelCase for variables, functions, and parameters.
  • Use PascalCase for types, interfaces, and classes.
  • Use SCREAMING_SNAKE_CASE for 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 type over interface unless declaration merging is needed.
  • Never use any. Use unknown and narrow with type guards when the type is truly unknown.
  • Never use as type assertions unless unavoidable — prefer type predicates or satisfies.

Imports and Modules

  • All packages use "type": "module" (ESM only).
  • Use path extensions in relative imports (e.g. ./foo.ts not ./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) => x not x => x.

Error Handling

  • Never swallow errors silently. Always log or re-throw.
  • Use typed errors or Error subclasses 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 test before 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.json files reference versions with catalog:.
  • 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

  1. Create a directory under packages/<name>/.
  2. Add package.json with "name": "@weaaare/<name>", "type": "module", and catalog: dependency references.
  3. Extend @weaaare/config/tsconfig/library.json in tsconfig.json.
  4. Add the scope to commitlint.config.ts in the scope-enum rule.

Skills

Skills are markdown-based knowledge modules in skills/. They follow the structure:

skills/<topic>/
  SKILL.md               # Main skill instructions
  references/            # Supporting reference material

Skills are pure documentation — no runtime code.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.