accessibility-audit

A command for auditing digital products against WCAG, the accessibility rules for making websites usable with disabilities and assistive technology.

In plain words
What is it for?
Use it to test websites with axe-core and Puppeteer, review accessibility issues, plan remediation, and check conformance at a chosen WCAG level.
Why use it?
It combines automated checks with manual verification so teams can identify barriers and receive guidance for fixing them.

Command

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 commands/engineerwithai/engineerwith-agents/accessibility-audit
Clone the repo
git clone --depth 1 https://github.com/EngineerWithAI/engineerwith-agents
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,457 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00000 $0.03457
Opus 5 $0.00000 $0.01729
Sonnet 5 $0.00000 $0.00691
Haiku 4.5 $0.00000 $0.00346

Measured 2d ago against content hash 4fead63fbaf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

accessibility-audit 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 2d 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

This is a copy

100% identical to accessibility-audit — 423 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/accessibility-compliance/commands/accessibility-audit.md · 484 lines

How it starts

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

Accessibility Audit and Testing

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct comprehensive audits, identify barriers, provide remediation guidance, and ensure digital products are accessible to all users.

Context

The user needs to audit and improve accessibility to ensure compliance with WCAG standards and provide an inclusive experience for users with disabilities. Focus on automated testing, manual verification, remediation strategies, and establishing ongoing accessibility practices.

Requirements

$ARGUMENTS

Instructions

1. Automated Testing with axe-core

// accessibility-test.js
const { AxePuppeteer } = require('@axe-core/puppeteer');
const puppeteer = require('puppeteer');

class AccessibilityAuditor {
    constructor(options = {}) {
        this.wcagLevel = options.wcagLevel || 'AA';
        this.viewport = options.viewport || { width: 1920, height: 1080 };
    }

    async runFullAudit(url) {
        const browser = await puppeteer.launch();
        const page = await browser.newPage();
        await page.setViewport(this.viewport);
        await page.goto(url, { waitUntil: 'networkidle2' });

        const results = await new AxePuppeteer(page)
            .withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'])
            .exclude('.no-a11y-check')
            .analyze();

        await browser.close();

        return {
            url,
            timestamp: new Date().toISOString(),
            violations: results.violations.map(v => ({
                id: v.id,
                impact: v.impact,
                description: v.description,
                help: v.help,
                helpUrl: v.helpUrl,
                nodes: v.nodes.map(n => ({
                    html: n.html,
                    target: n.target,
                    failureSummary: n.failureSummary
                }))
            })),
            score: this.calculateScore(results)
        };
    }

    calculateScore(results) {
        const weights = { critical: 10, serious: 5, moderate: 2, minor: 1 };
        let totalWeight = 0;
        results.violations.forEach(v => {
            totalWeight += weights[v.impact] || 0;
        });
        return Math.max(0, 100 - totalWeight);
    }
}

// Component testing with jest-axe
import { render } from '@testing-library/react';
import { axe, toHaveNoViolations } from 'jest-axe';

expect.extend(toHaveNoViolations);

describe('Accessibility Tests', () => {
    it('should have no violations', async () => {
        const { container } = render(<MyComponent />);
        const results = await axe(container);
        expect(results).toHaveNoViolations();
    });
});

Read the full file on GitHub · 484 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. 2d ago First seen · 484 lines · 0 tokens per session scan A 4fead63fbaf5

Subscribe to this mod's changes

accessibility-audit is a command published in the GitHub repository EngineerWithAI/engineerwith-agents (4 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,457 tokens. A static security scan graded it A with 0 findings. It is 100% identical to accessibility-audit, differing in 423 lines, and is treated as a copy.