Malimbe by Beyond A11y
v0.6.0Accessibility for coding agents: WCAG 2.2 A/AA audits, accessible component guidance, release gates.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
a11y_audit_html Audit HTML for accessibility
Audit an HTML document or fragment against a WCAG 2.1 A/AA static ruleset and return violations with success-criteria references and concrete fixes. Use this to TEST existing UI (a component's rendered output, a page's source, or generated markup) before shipping. Args: - html (string): the markup to audit. - rule_ids (string[], optional): restrict to specific rules; omit to run all. - response_format ('markdown' | 'json'): default 'markdown'. Returns (json): { summary: { total, byImpact, rulesChecked, passed }, findings: [{ ruleId, title, wcag, level, impact, selector, snippet, detai…
| Parameter | Type | Description |
|---|---|---|
html * | string | The HTML document or fragment to audit. |
response_format | string | Output format: 'markdown' for a readable report or 'json' for structured findings. |
rule_ids | array | Optional subset of rule ids. Available: img-alt, control-label, button-name, link-name, html-lang, heading-order, empty-heading, positive-tabindex, duplicate-id, valid-role, viewport-zoom, aria-hidden… |
a11y_component_guidance Get accessible component guidance
Return the accessibility contract for a UI component pattern — required roles, ARIA attributes, keyboard interactions, focus management, and common pitfalls — derived from the WAI-ARIA Authoring Practices Guide. Use this BEFORE generating a component so the produced code meets the pattern's requirements. Args: - component (string): pattern name (e.g. "dialog", "tabs", "combobox"). - response_format ('markdown' | 'json'): default 'markdown'. Returns (json): { component, roles, aria, keyboard: [{key, action}], focus, wcag, pitfalls }. If the component is unknown, returns the list of a…
| Parameter | Type | Description |
|---|---|---|
component * | string | The component pattern to describe. Available: dialog, menu button, listbox, grid, tree view, tree grid, date picker, tabs, accordion, combobox, tooltip. |
response_format | string | Output format. |
a11y_ux_guidance Get UX best-practice guidance
Return current, source-cited UX best practices for what you are building or reviewing — usability heuristics, forms and validation, navigation, feedback and error recovery, WCAG 2.2 interaction requirements, performance, visual direction and responsive design systems, motion and animation, AI features, and research — so quality UI and accessibility come from one place. Complements a11y_component_guidance (which gives one component's ARIA contract). Use this BEFORE designing a flow or screen, and again when reviewing UI for usability. Each topic carries a confidence label (stable / standar…
| Parameter | Type | Description |
|---|---|---|
mode | string | 'build' returns rules to apply before writing UI; 'review' adds questions to ask of an existing design or implementation. |
response_format | string | |
task | string | What you are building or reviewing, e.g. "a checkout form" or "settings page". Used to pick the relevant topics. |
topic | string | A specific topic to return instead of auto-selecting. Available: heuristics, forms, navigation, feedback, accessibility, performance, visual-design, motion, ai, research, or "all". |
a11y_build_prompt Build an accessibility-primed prompt
Assemble a ready-to-paste prompt that primes any coding agent (Codex, Copilot, Claude Code, etc.) to GENERATE accessible code on the first try. It injects either a specific component's ARIA contract or the general WCAG ruleset, the framework/platform-specific requirements, and the mandatory post-generation verify chain (audit → release gate → manifest). This is the same builder Malimbe's UI prompt tools use — identical output either way. Use this when a user is about to ask an agent to build UI and you want the request to bake in accessibility rather than bolt it on afterward. Args:…
| Parameter | Type | Description |
|---|---|---|
agent | string | Target coding agent — only affects the MCP setup snippet's syntax. |
component | string | Optional known pattern to inject its full contract. Available: button, text input, link, checkbox, radio, dialog, menu button, listbox, grid, tree view, tree grid, date picker, tabs, accordion, combob… |
design_system_image_data_uri | string | Optional inline screenshot as a data: URI (small files only — large ones are dropped and only the filename/description in design_system_ref is kept). Only used when design_system_kind is 'screenshot… |
design_system_kind | string | Source of truth to conform to, if any. 'figma'/'xd'/'screenshot' are design-file sources (visual/interaction spec) — never rendered artifacts, so they can never satisfy the automated release gate on… |
design_system_ref | string | Reference for the source (URL, pkg@version, repo@SHA, a Figma/Adobe XD file/frame link, or a screenshot file path/description). Required if design_system_kind is not 'none'. |
design_tokens | string | Raw design tokens (CSS custom properties, a token JSON blob, or plain name:value pairs) to use verbatim instead of inventing new ones. |
framework | string | Target framework for the generated code. |
include_mcp_setup | boolean | Include MCP tool setup and the mandatory post-generation verify chain (audit → gate → manifest). |
include_tests | boolean | Ask the agent to also produce interaction/focus/state tests. |
platform | string | Target platform — adds the relevant touch-target/zoom/screen-reader considerations. |
task | string | What to build, e.g. "a searchable country picker". Optional if `component` is set. |
wcag_level | string | WCAG 2.2 conformance level to build to. |
a11y_build_handoff_spec Build a designer-to-developer handoff spec
Assemble a standalone, human-readable handoff document for a component — a spec sheet for a ticket or design review, not an agent instruction. Combines the same pattern contract, design-source, design-tokens, and states/variants facts as a11y_build_prompt, so the two can never disagree, but formatted to be read by a person: no MCP setup, no verify-chain imperatives. Use this when a designer wants something to attach to a ticket or send to a developer directly, instead of (or alongside) a11y_build_prompt's agent-facing prompt. Args: same shape as a11y_build_prompt's design/component fields…
| Parameter | Type | Description |
|---|---|---|
component | string | Optional known pattern to inject its full contract. Available: button, text input, link, checkbox, radio, dialog, menu button, listbox, grid, tree view, tree grid, date picker, tabs, accordion, combob… |
design_system_image_data_uri | string | Optional inline screenshot as a data: URI (small files only). Only used when design_system_kind is 'screenshot'. |
design_system_kind | string | Source of truth to conform to, if any. 'figma'/'xd'/'screenshot' are design-file sources — never rendered artifacts, so they can never satisfy the automated release gate on their own. |
design_system_ref | string | Reference for the source (URL, pkg@version, repo@SHA, a Figma/Adobe XD file/frame link, or a screenshot file path/description). Required if design_system_kind is not 'none'. |
design_tokens | string | Raw design tokens (CSS custom properties, a token JSON blob, or plain name:value pairs) to use verbatim instead of inventing new ones. |
framework | string | Target framework for the generated code. |
platform | string | Target platform — adds the relevant touch-target/zoom/screen-reader considerations. |
task | string | What to build, e.g. "a searchable country picker". Optional if `component` is set. |
wcag_level | string | WCAG 2.2 conformance level to build to. |
a11y_build_audit_prompt Build an accessibility-audit prompt
Assemble a ready-to-paste prompt that primes any coding agent to AUDIT a URL or repo for accessibility — the test-side counterpart to a11y_build_prompt's build-side. Classifies the target (repo path, internal/intranet, or public-facing external), picks the right audit tool by default (a11y_audit_axe — the audit of record — for single pages; a11y_crawl_audit for multi-page crawls; a11y_audit_axe with scope="internal" plus a11y_audit_html for repo previews), and appends the mandatory release-gate step and the curated practical references. This is the same builder Malimbe's UI audit tools u…
| Parameter | Type | Description |
|---|---|---|
target * | string | The URL or repo path to audit. |
agent | string | Target coding agent — only affects the MCP setup snippet's syntax. |
crawl | boolean | Crawl same-origin pages instead of auditing a single page. Ignored when kind resolves to 'repo'. |
include_mcp_setup | boolean | Include MCP tool setup naming the specific tools this prompt calls. |
kind | string | Force a classification, or 'auto' to detect it from `target` (filesystem path/owner-repo slug = repo; loopback/RFC1918/.local/.internal/.test/single-label host = internal; otherwise external). |
max_pages | integer | Only used when crawl is true. |
platform | string | Target platform — adds the relevant manual-verification considerations. |
provenance_kind | string | Provenance of the audited artifact, for the release-gate step. Omit if unknown — the prompt will ask the agent to supply one. |
provenance_ref | string | Reference for the provenance (URL, pkg@version, or repo@SHA). |
source_pattern | string | Design-system source to check rendered widgets against (passed to a11y_audit_axe's source_pattern), for internal/repo targets. |
wcag_level | string | WCAG 2.2 conformance level to audit against. |
a11y_release_gate Evaluate the enterprise accessibility release gate
Evaluate a component against the seven Required Gates and return a PASS / BLOCKED verdict. Release proceeds only when ALL gates pass AND no critical defects remain. Gates: Definition of Done, Automated accessibility (hash-verified browser audit clean), Interaction test, Manual accessibility review, Responsive accessibility, Cognitive review, Enterprise review. Automated and hybrid gates are computed from immutable browser-audit evidence; manual and hybrid gates require reviewer-attributed attestations bound to that evidence's audit ID. Risk tier (from the component name) is informational. It…
| Parameter | Type | Description |
|---|---|---|
attestations | array | Reviewer-attributed attestations tied to the audit ID. Gate ids: definition-of-done, automated-accessibility, interaction-test, manual-accessibility-review, responsive-accessibility, cognitive-review,… |
component | string | Component name to resolve its risk tier. Known: T1[button/text input/link/checkbox/radio] T2[tabs/accordion/listbox/menu button/dialog/tooltip] T3[combobox/grid/tree view/tree grid/date picker]. |
evidence_ref | string | Evidence artifact returned by a browser audit, stored under .malimbeba/evidence/. The gate validates its SHA-256 digest before use. |
min_impact | string | Blocking threshold (default 'moderate'). Critical defects always block regardless. |
response_format | string | |
tier | integer | Explicit risk tier (1-3) when the component name is not recognized. |
a11y_checklist Get the implementation checklist
Return the engineering-ready per-component accessibility checklist. Each item is tagged by how it is verified (auto / auto+manual / manual / design) and which Required Gate it rolls up to, so a team can work top-to-bottom while building a component. Use this at the start of building a component, and to see which checklist items a given gate depends on. Args: - section ('A'|'B'|'C'|'D', optional): restrict to one section. - response_format ('markdown'|'json'): default 'markdown'. Returns (json): [{ id, name, items: [{ id, text, method, ruleIds, gate }] }].
| Parameter | Type | Description |
|---|---|---|
response_format | string | |
section | string | Restrict to one section: A discovery/design, B contract, C implementation, D automated validation, E interaction test coverage, F manual validation, COG cognitive review, G documentation/supportabilit… |
a11y_audit_url Audit a live URL for accessibility
Fetch a URL and audit its delivered HTML against the WCAG ruleset — no need to paste markup. Runs entirely inside the agent's session. Scope: with render='browser' (or 'auto' when a browser is available) this audits the JAVASCRIPT-RENDERED DOM including shadow DOM, and adds runtime-only checks (computed contrast, focus indicators, target size). With render='static' it reads only the server-delivered HTML — accurate for SSR/static pages, partial for client-only SPAs and blind to web components. The response always names the renderMode actually used. It is static analysis (see a11y_audit_ht…
| Parameter | Type | Description |
|---|---|---|
url * | string | The http(s) URL to fetch and audit. |
render | string | 'browser' renders in a headless browser (sees JS-rendered DOM and shadow DOM); 'static' fetches delivered HTML only; 'auto' prefers the browser and falls back to static, always reporting which was use… |
response_format | string | |
rule_ids | array | Optional subset of rules. Available: img-alt, control-label, button-name, link-name, html-lang, heading-order, empty-heading, positive-tabindex, duplicate-id, valid-role, viewport-zoom, aria-hidden-fo… |
a11y_crawl_audit Crawl and audit a site (up to 20 pages)
Crawl same-origin pages breadth-first from a starting URL and audit each one, then aggregate the results into a single site-level report with a verdict: BLOCKED (critical defects), INCOMPLETE (no criticals, but one or more pages could not be audited — never treat as a pass), or PASS. Runs inside the agent's session — no external service. Use this to audit a whole flow or section of a site at once instead of page by page. Scope: follows only same-origin <a href> links, up to max_pages (hard cap 20). With render='browser'/'auto' each page is rendered in a headless browser so JS-built conte…
| Parameter | Type | Description |
|---|---|---|
url * | string | The starting http(s) URL to crawl from. |
max_pages | integer | Maximum pages to audit (1-20). Same-origin links are followed breadth-first. |
render | string | Render mode for every page: 'browser' (JS-rendered DOM + shadow DOM), 'static' (delivered HTML), or 'auto' (browser when available, else static). Each page reports the mode used. |
response_format | string | |
rule_ids | array | Optional subset of rules. Available: img-alt, control-label, button-name, link-name, html-lang, heading-order, empty-heading, positive-tabindex, duplicate-id, valid-role, viewport-zoom, aria-hidden-fo… |
a11y_detect_stack Detect a page's platform, framework, widgets and overlays
Report what a page is built on — CMS or hosted platform, front-end framework, component libraries and widgets, accessibility overlays, and other third-party scripts — with the evidence for each detection, and where fixes for each layer have to happen (native markup, platform template, custom component, or vendor). Detection uses one page load: generator meta tags, script and stylesheet URLs, allowlisted product response headers, cookie NAMES (never values), typeof checks on a fixed list of globals, a fixed set of version constants, and DOM marker selectors. It never reads storage, form da…
| Parameter | Type | Description |
|---|---|---|
url * | string | The http(s) page to inspect. |
render | string | 'browser' loads the page in a headless browser (sees runtime globals, version constants and JavaScript-built markup); 'static' reads delivered HTML and headers only; 'auto' prefers the browser and fal… |
response_format | string |
a11y_audit_axe Audit a URL with axe-core against WCAG 2.2 Level A and AA
Run a full axe-core accessibility scan in a real browser (Playwright) against WCAG 2.2 Levels A and AA, and return a structured report. Also checks document structure — heading hierarchy (no skipped levels, no empty headings, covers role="heading"/aria-level custom headings too) and landmark regions (exactly one main, no duplicate/unlabeled landmarks, page has an h1, all content inside a landmark). These are axe-core rules tagged "best-practice" rather than a specific WCAG success criterion, so they're reported without a WCAG citation — real findings, just not ones a specific SC number ba…
| Parameter | Type | Description |
|---|---|---|
url * | string | The http(s) URL to audit. |
response_format | string | |
scope | string | 'external' = public-facing site (WCAG 2.2 Level A and AA). 'internal' = intranet/localhost/repo preview — additionally checks rendered widgets against their source pattern contracts. 'auto' classifi… |
source_pattern | string | Provenance of the source pattern for internal audits: design-system URL, package@version, or repo@SHA. Recorded against any pattern gaps found. |
a11y_audit_keyboard Walk a URL by keyboard and report reachability, traps, and focus order
Drive real Tab/Shift+Tab key presses through a rendered page in a headless browser and report what a keyboard-only user would actually experience -- not a static markup check. Reports three pattern-agnostic things: - Reachability: every visible, enabled interactive element (links, buttons, form controls, anything with tabindex) that the Tab walk never focused. - Traps: Tab making no further progress, repeatedly landing on the same element instead of moving on. - Focus order vs. visual layout: a heuristic flag (WCAG 2.4.3-adjacent) when focus jumps backward against top-to-bottom visual p…
| Parameter | Type | Description |
|---|---|---|
url * | string | The http(s) URL to walk. |
max_steps | integer | Safety cap on Tab presses issued, so a page with runaway or infinite focusable content cannot hang the walkthrough. A result that hits the cap is reported as incomplete, not as a pass. |
response_format | string |
a11y_audit_reading_order Check a URL's DOM order against its visual reading order
Compare the DOM order of a page's meaningful content (headings, text, links, form controls, images with alt text) against its rendered visual position, in a real browser. Flags a heuristic mismatch (WCAG 1.3.2-adjacent) when content later in DOM order renders meaningfully ABOVE content earlier in DOM order -- the sequence a sighted user reads top-to-bottom and the sequence assistive tech reads linearly have diverged. Some jumps are intentional (a skip link, a sidebar that legitimately reads after the main content but sits first visually), so this is reported for review, not asserted as a hard…
| Parameter | Type | Description |
|---|---|---|
url * | string | The http(s) URL to check. |
response_format | string |
a11y_audit_announcements Review accessible names and states in the browser accessibility tree
Inspect Chromium's computed accessibility tree for interactive roles, accessible names, descriptions, and exposed state. Flag unnamed controls, generic names, and repeated same-role names for human review. This is NOT an actual VoiceOver/NVDA/TalkBack speech test. It cannot measure synthesized phrasing, announcement timing, verbosity preferences, or whether content makes sense to a person. Use it to prepare a targeted manual assistive-technology pass, not replace one. Requires Chromium via Playwright. Returns the inspected role/name/description/state entries, heuristic findings, and the expl…
| Parameter | Type | Description |
|---|---|---|
url * | string | The http(s) URL to inspect in Chromium's accessibility tree. |
response_format | string |
a11y_audit_status_messages Watch a URL for un-announced content changes (WCAG 4.1.3)
Watch a rendered page for content changes that are not wrapped in an ARIA live region -- the kind of update a screen-reader user would miss entirely if they are not focused on that part of the page when it happens. Runs in two phases: - Passive (always runs, no interaction): watches for changes that happen on their own -- a timer, polling, an auto-rotating carousel, a server-pushed update. There is no clickable element to point at for these, so this phase needs no selector and never clicks anything. - Triggered (only if trigger_selector is given): clicks that one, caller-specified element…
| Parameter | Type | Description |
|---|---|---|
url * | string | The http(s) URL to watch. |
observe_ms | integer | How long to watch for changes, in each phase (passive, and again after the trigger if one is given). Longer windows catch slower async updates but take more time. |
response_format | string | |
trigger_selector | string | Optional CSS selector to click after the passive observation window, then watch for further changes. Never auto-discovered -- omit it and only autonomous changes (timers, polling, server push) are che… |
a11y_manifest_record Record a component in the library manifest
Persist a component's accessibility state to the library manifest — tier, latest gate verdict, provenance, immutable audit evidence, reviewer attestations, public API surface, and any exceptions. The manifest is repo state: commit it. This is what turns per-component verdicts into a governable library. Call it after a11y_release_gate so the verdict is retained, and record the API surface so a11y_consistency_check can compare components against each other. Exceptions REQUIRE an owner and an expiry date; expiry is then enforced by a11y_library_status. Returns (json): { path, component, tota…
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name, unique within the library. |
api | object | Public API surface — used by the consistency checker. |
critical_defects | integer | |
evidence | object | |
exceptions | array | |
library | string | Library name, recorded on first write. |
manifest_path | string | Override the manifest location (default ./a11y-manifest.json or A11Y_MANIFEST_PATH). |
notes | string | |
pattern | string | APG pattern implemented (dialog, tabs, combobox...). |
provenance_kind | string | |
provenance_ref | string | |
status | string | Latest release-gate verdict. |
tier | integer | Risk tier: 1 primitive, 2 composite, 3 high-risk composite. |
a11y_library_status Library-wide accessibility status
Roll the component manifest up into a library-level view: how many components pass, are blocked, or are unassessed; distribution by risk tier; missing evidence (tests, ARIA assertions, keyboard docs, support matrix, known limitations); and exception health. Enforces exception expiry — expired or unapproved exceptions become release blockers, which a stateless gate cannot do. Also re-verifies every stored "pass" against its own recorded evidence on every call — not just once at the a11y_manifest_record write that set it. A pass can go stale after the fact (its evidence artifact deleted or…
| Parameter | Type | Description |
|---|---|---|
manifest_path | string | |
response_format | string |
a11y_consistency_check Check cross-component consistency
Compare every component in the manifest against every other and report where the library diverges from itself: prop naming for the same concept, enumerated value scales, event-naming conventions, hard-coded values bypassing design tokens, token namespaces, focus styling hooks, disabled semantics, duplicate implementations of the same APG pattern, untiered components, and slot naming. This is the design-system check that per-component audits cannot perform. A library of individually-compliant components that each behave differently still fails users, because the accessibility payoff of a desig…
| Parameter | Type | Description |
|---|---|---|
manifest_path | string | |
response_format | string |
a11y_audit_demo Audit unhosted component code via a local demo page
Serve component code that is NOT yet hosted on an ephemeral http://127.0.0.1 page, then run the full axe-core WCAG 2.2 A+AA audit against it in a real browser — and tear the server down. This closes the pre-production gap: it lets "Accessibility Review" work on code that only exists on disk, with no dev server, preview deploy, or promotion required. Because it produces a real localhost URL and a real render, the result is a genuine audit (computed contrast, focus indicators, rendered target size, shadow-scoped ARIA, source-pattern conformance) — not the paste-box smoke test. The target is…
| Parameter | Type | Description |
|---|---|---|
markup * | string | Body HTML that exercises the component(s), e.g. '<my-dialog label="Hi">...</my-dialog>'. |
component_code | string | Inline component source to run in the page (alternative to files). |
files | array | Local JS/CSS file paths (under the working directory) to load into the page. .js/.mjs files are AUTOMATICALLY loaded via <script type="module">, .css via <link rel="stylesheet"> — do not also list t… |
lang | string | |
modules | array | EXTERNAL ES module specifiers to import via <script type="module">import '...'</script> — a full URL (e.g. a CDN package build like 'https://esm.sh/some-package') or another already-served absolute… |
response_format | string | |
source_pattern | string | Provenance of the code under test (repo@SHA, pkg@version); recorded against pattern gaps. |
styles | string | Inline CSS to include. |
title | string |
a11y_browser_check Check browser readiness for audits
Report whether Malimbe can run browser-dependent audits (axe WCAG 2.2 A+AA, rendered audits, and a11y_audit_demo's rendered path), and how to fix it if not. Resolves a browser via the layered fallback: A11Y_BROWSER_PATH → A11Y_BROWSER_CHANNEL → a discovered Chrome/Edge install → a Playwright-managed Chromium → (optionally) auto-install. Use this before a browser audit so the agent can tell the user 'ready' or give the one-line fix, instead of surfacing a mid-audit failure. Set install=true to provision Chromium if none is found (~150MB download). Static (non-browser) audits work rega…
| Parameter | Type | Description |
|---|---|---|
install | boolean | If true and no browser is found, auto-run `playwright install chromium` (a ~150MB download). Default false = report only. |
response_format | string |