Agentic Accessibility - Can AI help us ship more accessible code? A developer argues that AI coding agents, being probability machines trained on a web where 96% of top homepages have accessibility issues per WebAim's One Million report, tend to reproduce inaccessible patterns rather than fix them. The engineer recommends shaping code at generation time by giving agents explicit accessibility instructions through Agent.md/claude.md files and task-specific skills, citing Anna E Cook's warning that "AI does not repair broken systems. It multiplies them. ~~Many~~ All of us are coding with AI these days. There is a lot of momentum; code is being produced at lightning-speed, and at immense scale. While many people get quite excited about the prospect of seemingly endless possibilities this development seems to hold, there’s a lot to unpack here: As much as we’d like to think of coding agents or AI assistants in general as smart, eloquent problem solvers - in the end, they are probability machines. They return the statistically most likely response to your question or proposed problem, out of the massive data set that is the internet. This sounds great in theory and has a lot of benefits, especially for coding, where recognizing patterns and reproducing logic is a highly demanded skill. But when it comes to fixing accessibility issues or creating code which doesn’t introduce any new ones, there is a problem with our dataset: it’s full of accessibility issues and inaccessible patterns. The WebAim One Million report https://webaim.org/projects/million/ looked at the one million most popular homepages and found accessibility issues on 96% of them, only using automated testing tools which can only detect a fraction of the existing issues . The most common issues were insufficient color contrast, missing alternative texts and labels, empty links and buttons as well as missing document language. And these are the homepages of the most popular webpages, typically the most cared for pages, as they attract the most visitors. With our data source providing such flawed information, expecting the coding agents to produce accessible code by default, would be very optimistic. Github user stats https://github.blog/news-insights/octoverse/octoverse-a-new-developer-joins-github-every-second-as-ai-leads-typescript-to-1/ reveal not only a drastic increase in the amount of code being pushed to the platform PRs increased by +23%, commits by +25.1% compared to the previous year , and previously unseen rise in new users 36 million new users in 2025 , but also show that the percentage of code which has been either AI generated or AI assisted has skyrocketed over the last two years. When we are generating new code with AI, we are reproducing existing inaccessible patterns. On top of this, according to WebAim, “Home pages are getting larger and more technologically complex at an alarming rate, making accessibility more difficult to achieve and maintain”. The speed and sheer volume of this phenomenon is truly overwhelming. To ‘fix’ this at scale , we need better systems and governance. The use of AI will not magically fix overnight, what we quietly eroded over decades. “AI does not repair broken systems. It multiplies them.” Anna E Cook So how can we turn this around? Accessibility should be part of the digital product cycle for all disciplines. The earlier we incorporate it, the lower the costs, efforts, the smoother and faster usually the delivery. But what does that mean when it comes to AI? Your biggest lever is shaping the code as it is generated, rather than trying to catch problems after the fact. To do so, your coding agents need clear instructions. These can come in different formats. The Agent.md or claude.md will be loaded into every session. Provide concise instructions here which are always applicable. In regards to accessibility, this could be something like “semantic HTML by default”, “WCAG 2.2 AA compliant”, “apply A11y skill for presentation layer files”. Skills are loaded when the agent recognizes a task matches it. Skills can be particularly powerful in helping you improve accessibility patterns, as they can be quite specific. When crafting an accessibility skill.md, here are a few things to look out for: role="button" on things that should just be