Agent skill · Jakub Krehel's Interface Skills
/better-accessibility Fix keyboard, focus, ARIA and form issues against WCAG 2.2
better-accessibility has the agent walk an interface twice, once with only the keyboard and once as a screen reader would hear it, and report each failure against a numbered WCAG 2.2 A or AA criterion. It favours native elements over ARIA, covers focus, forms, announcements, motion and zoom, and keeps conventions such as larger touch targets as recommendations rather than blockers.
Works with
- Agents supported by the skills CLI
When to use it
- A custom dropdown, dialog or tab set needs to work without a mouse.
- Form errors are not announced or users cannot tell which field failed.
- You need findings tied to specific WCAG criteria for a compliance discussion.
How it works
- 1Prefer native elements
The agent replaces clickable divs with buttons or links and removes ARIA that a native element already provides.
- 2Check focus and keyboard
It requires a visible focus-visible ring with sufficient contrast, APG key maps for composite widgets, and focus moved into dialogs and back to the trigger on close.
- 3Label forms and errors
Every input gets a real label, autocomplete and input type, validation runs on submit, and invalid fields are marked and described.
- 4Handle motion and zoom
Motion becomes opt-in behind a reduced-motion query, long-running movement gets a pause control and the page must reflow at 320px and 200% text size.
- 5Report by severity
Findings are grouped by principle with location, before, after and the criterion, ending in Block when a high-severity item remains.
What it steers the agent away from
- Removing outlines with no tested replacement focus style.
- Disabling the submit button until a form is valid.
- Marking AAA criteria or style conventions as high severity.
Install this skill
It installs with the Jakub Krehel's Interface Skills pack.
Agents supported by the skills CLIInstalls the whole collection; the README documents no other route.
npx skills add jakubkrehel/skillsCommands come from the author’s README; check it for changes before you run them.
Questions
Does it measure color contrast itself?
It decides which contrast ratio applies and hands the measurement of the rendered pair to better-colors.
What happens to checks it cannot run?
Any check that needs a browser and could not be performed is reported as not verified rather than passed.
More guides from Jakub Krehel's Interface Skills
/afkLet the agent improve your project while you are awaySpends hours improving a project while you are away, committing evidence-backed changes to a local branch and leaving a report.Read the guide →/better-interfaceGet one ranked, evidence-backed review of an entire interfaceRuns one review across six UI domains, merges the evidence into a single table capped at 15 findings and ends with a verdict.Read the guide →/interface-reviewCatch the UI regressions a branch or pull request introducesReviews a branch, pull request or working-tree change and tags each UI finding as introduced, regression or pre-existing.Read the guide →/state-machineSee every state of a component on one throwaway pageBuilds a scratch page that shows one component in each state its code can reach, with mock data and a grouped state switcher.Read the guide →
Also in this pack
/better-layoutFixes grouping, alignment, reading order and responsive structure, then tests the layout resized, translated and mirrored for RTL.↗/better-typographySets type scales, line-height, font loading, numeric figures, wrapping and truncation, writing fixes in the project's CSS or Tailwind.↗/better-uiApplies exact polish values for nested radii, optical alignment, layered shadows, image outlines and press and hover motion.↗/breakRenders one component under every worst-case input it can receive on a harness page and marks what visibly broke.↗/build-designImplements Figma frames or a design image with the project's existing tokens and components and reports every rounding or deviation.↗/explain-interfaceBreaks down how a site or a single visual effect was built from a URL or screenshot, marking each value measured, derived or inferred.↗/variantBuilds three deliberately different versions of a component behind a picker on the real page, varying one design axis.↗
Summary by trendhub. The skill itself lives in jakubkrehel/skills/skills/better-accessibility by Jakub Krehel (MIT); read the full, current text there.