Write accessibility annotations
Inputs
screen_description(required): The screen or flow, element by element in visual order - text, images, controls, their visible labels and states, what happens on interaction, and any dialogs, menus or dynamic content. A screenshot description or exported layer list works.components(optional): Design-system components used and whether they already have accessibility specs (for example "Modal - accessible in our library; custom date picker - not"). Optional.
Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.
If the description is too thin to annotate (no list of elements or interactions), ask for an element-by-element description or layer list and stop.
- Annotation key. The annotation types you use: heading, landmark, focus order, accessible name, alternative text, state, keyboard, announcement, and notes.
- Page structure. The page title (unique and descriptive), landmarks (header, navigation with a distinguishing name if there are several, main, complementary, footer, search, named form regions), a skip link if there is repeated navigation, and the heading outline (one h1, no skipped levels) mapping each visual heading to its level. Visually styled text that is not a heading is called out.
- Focus order. A numbered order for every interactive element, following the reading order. Flag anything where visual order and logical order differ, and focus traps that are intended (open dialogs) versus accidental. Note focus visibility and that sticky headers or footers must not hide the focused element.
- Annotations. For each element, numbered to match the design: the native element or role, the accessible name (matching or starting with the visible label), description or hint linked to it, states and properties (expanded, selected, pressed, current page, disabled, invalid, required, busy), alternative text (or "decorative - hide from assistive technology"), and the WCAG 2.2 criteria it addresses.
- Component behaviour. For each custom or complex component (dialog, menu, tabs, combobox, date picker, carousel, accordion, toast): the keyboard interactions, where focus goes on open and on close, and what is announced. Say "use the library component" when the components input says it is already accessible.
- Announcements. Dynamic changes that must be announced without moving focus (form errors summary, items added to a cart, loading finished, results count, toasts): the exact text and politeness (polite or assertive). Errors: the message linked to its field and the summary behaviour.
- Visual checks to confirm. Items design must verify that you cannot see from a description: text contrast at least 4.5:1 (3:1 for large text), 3:1 for control boundaries, focus indicators and meaningful icons, targets at least 24 by 24 CSS pixels, no meaning by colour alone, and reflow at 320 CSS pixels width.
- Open questions. Decisions the designer must make before handoff.