tailwind-a11y CLAUDE.md

tailwind-a11y CLAUDE.md is an instructions file for coding agents from chamroro/tailwind-a11y. It costs 1,876 tokens per session, scanned A, original, MIT.

Repository instructions for tailwind-a11y, a codebase split into four related npm packages in one monorepo. They explain shared architecture and how the engine, ESLint plugin, VS Code extension, and GitHub Action should work together.

In plain words
What is it for?
Use them when modifying, testing, or adding packages in tailwind-a11y, especially when changing the shared engine or its ESLint, VS Code, and GitHub Action integrations.
Why use it?
They help an agent make changes in the correct package and keep all adapters using the same detection logic. They also prevent build and test ordering problems between packages.

Instructions file

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.

agentmods
npx agentmods add instructions/chamroro/tailwind-a11y/claude-md
Clone the repo
git clone --depth 1 https://github.com/chamroro/tailwind-a11y

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 tailwind-a11y CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chamroro/tailwind-a11y/claude-md.svg)](https://agentmods.dev/instructions/chamroro/tailwind-a11y/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/chamroro/tailwind-a11y/claude-md"><img src="https://agentmods.dev/badge/instructions/chamroro/tailwind-a11y/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,876 This file is loaded in full into every session.
When invoked 1,876 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01876 $0.01876
Opus 5 $0.00938 $0.00938
Sonnet 5 $0.00375 $0.00375
Haiku 4.5 $0.00188 $0.00188

Measured today against content hash 0e070c43defc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tailwind-a11y CLAUDE.md 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 today.

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.

CLAUDE.md · 111 lines

How it starts

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

tailwind-a11y (monorepo root)

npm workspaces monorepo with four packages. Per-package conventions, scope boundaries, and architecture live in each package's own CLAUDE.md — this file covers only monorepo-level rules.

packages/
  tailwind-a11y/                  the engine + CLI — see packages/tailwind-a11y/CLAUDE.md
  eslint-plugin-tailwind-a11y/    thin ESLint adapter over the engine
  vscode-tailwind-a11y/           thin VS Code adapter over the engine (live diagnostics)
  github-action-tailwind-a11y/    thin GitHub Action adapter (inline PR annotations);
                                   its manifest is the root-level action.yml so consumers
                                   can write `uses: chamroro/tailwind-a11y@v0`

All adapters call the engine's extract*/check* functions directly — none of them reimplement detection logic. Adding another adapter (or another check) should follow the same pattern.

Rules specific to the monorepo layout

  • workspaces in the root package.json is an explicit ordered array, not a packages/* glob. Glob matches resolve alphabetically, which would build/test eslint-plugin-tailwind-a11y before tailwind-a11y — and the plugin imports types from the engine's build output, so that order fails. When adding a package, append it in dependency order.
  • eslint-plugin-tailwind-a11y's dependency on tailwind-a11y is a plain semver range (^0.13.5), not a special workspace protocol — npm has no workspace: protocol. npm resolves it to the local workspace symlink only while the range is satisfied by the engine's actual version. Bump both together; npm run check:link at the root guards against this drifting silently (a version bump that breaks the range makes npm silently fall back to the registry instead of local source — no error, just stale behavior).
  • One lockfile, at the root. Never commit a package-lock.json inside a package directory.
  • Publish order: engine, then plugin, always — the plugin's published manifest depends on the engine actually being on the registry.
  • Root package.json name is tailwind-a11y-monorepo, not tailwind-a11y — deliberately different from the packages/tailwind-a11y package name to avoid a workspace name collision. Root is "private": true and never published.
  • vscode-tailwind-a11y must bundle its dependencies (esbuild) and package with vsce package --no-dependencies. vsce's dependency collector only looks inside the extension's own directory; npm workspaces hoists everything (including tailwind-a11y itself) to the monorepo root, so an unbundled build produces a .vsix with broken ../.. paths or missing deps. A raw tsc build here is broken, not just non-optimal.
  • A fix to the engine's detection logic requires bumping vscode-tailwind-a11y's own version too, even when its source didn't change. eslint-plugin-tailwind-a11y resolves tailwind-a11y dynamically from node_modules at each consumer's install, so a new engine patch reaches it automatically without a plugin republish. But because vscode-tailwind-a11y bundles the engine into a static .vsix at build time, there is no dependency resolution happening on the end user's machine — a bug fix to the engine is frozen out of every Marketplace install until the extension itself is rebuilt and republished with a bumped version. The same applies to github-action-tailwind-a11y (also a bundle — see below).
  • packages/github-action-tailwind-a11y/dist/index.js is a COMMITTED build artifact — the only dist in this repo that is (.gitignore re-includes that one directory). GitHub runs a JS action straight from the repo tree at a git ref with no npm install, so the bundle IS the release artifact; there is no publish step to force a rebuild. After any engine change, rebuild and commit it (npm run build -w tailwind-a11y && npm run build -w github-action-tailwind-a11y). .github/workflows/verify-action-bundle.yml enforces this on every PR and push to main by rebuilding and failing on git diff (deliberately no paths filter — a lockfile-only bump changes bundle bytes without touching any filterable path). The bundle build keeps minify: false, sourcemap: false so rebuilds are reproducible given the lockfile-pinned esbuild.
  • Bundled adapters must not rely on import.meta — esbuild's CJS output rewrites import.meta to an empty object, so e.g. createRequire(import.meta.url) throws inside a bundle (and if wrapped in try/catch, degrades silently — this shipped as a real bug in vscode-tailwind-a11y 0.5.0, where custom-theme detection silently never worked). The engine's loadCustomTheme anchors createRequire to the config path itself instead; a bundling regression test in loadCustomTheme.test.ts builds a real CJS bundle and runs it.
  • Tag namespaces: bare vX.Y.Z tags are the engine's releases. The GitHub Action releases via a floating v0 tag (what consumers pin) plus an immutable action-vX.Y.Z tag, both handled by publish.yml's release-action job (gated on the action package's own version bump, like every other package). Never tag an action release as bare vX.Y.Z. Unlike v0 (deliberately force-moved every release), action-vX.Y.Z is pushed without -f and the job fails first if that tag already exists on origin — npm/vsce reject a duplicate version automatically, but git has no such built-in check, so this job does it explicitly rather than letting an "immutable" tag silently move.
  • Why the Action is a bundled JS action, not a composite running npx tailwind-a11y: a composite gets no structured violation objects (so no inline annotations, the whole point) and pays npm-install latency per CI run.
  • .github/workflows/publish.yml auto-publishes on push to main, gated per-package by whether that package's version field actually changed in the push. A version bump landing via a merged PR is what triggers a real publish — don't bump a version casually in an unrelated PR. Every publish job targets the release GitHub Environment (required reviewer approval gate before the actual publish step runs) and needs NPM_TOKEN (npm Automation token, not a regular one — regular tokens require a 2FA OTP that CI can't provide) and VSCE_PAT set as secrets on that environment. One-time setup: repo Settings → Environments → New environment named release → enable Required reviewers → add the two secrets there (not the repo-level secrets page). NPM_TOKEN comes from npmjs.com → Access Tokens → Generate New Token → Automation; VSCE_PAT is the same Azure DevOps PAT used for manual vsce publish (Marketplace → Manage scope, "All accessible organizations").
  • On a fresh clone, npm install runs twice: once before the first npm run build --workspaces (to get the toolchain), once after (so the tailwind-a11y CLI's node_modules/.bin symlink gets created — it's only linked for a dist/cli.js that already exists at install time).

Read the full file on GitHub · 111 lines

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. today Changed 0e070c43defc
  2. 4d ago First seen · 111 lines · 1,876 tokens per session scan A 8e10b5d40783

Subscribe to this mod's changes

tailwind-a11y CLAUDE.md is an instructions file published in the GitHub repository chamroro/tailwind-a11y (10 stars, last pushed yesterday), licensed MIT. It adds 1,876 tokens to every session, about $0.0094 per session on Opus 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-31.