- Home
- Skills
- Prompt & Skill Engineering
- ARIA Attributes Review and Fixer for HTML and React
Works with the AI Agents you already use
ARIA Attributes Review and Fixer for HTML and React
by Saizul Amin
Lint and refactor WAI-ARIA markup to fix screen reader errors and enforce native semantic HTML replacements.
$5
ARIA Attributes Review and Fixer for HTML and React
Example session with this skill installed
Run the ARIA Attributes Review and Fixer for HTML and React skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the aria attributes review
Here is what the ARIA Attributes Review and Fixer for HTML and React skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
aria-review: <stdin> - 0 high, 0 medium, 1 low, 0 info
LOW role.redundant (line 1 ul): <ul> already has role "list"; role="list" is redundant
fix: remove the role attribute
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Bad ARIA implementation is often worse than no ARIA at all. This skill provides a deterministic linting engine to identify broken accessibility patterns in rendered HTML and provides refactoring paths to fix them. It detects common failures that automated tools like Lighthouse often miss, such as focusable elements trapped inside hidden containers or interactive roles that lack keyboard support.
What it does
- Detects broken references identifying
aria-labelledbyoraria-controlspointing to missing IDs. - Validates ARIA values flagging incorrect states like
aria-expanded="yes"instead of boolean strings. - Identifies focus traps finding
aria-hidden="true"placed on focusable elements or the document body. - Flag redundant roles spotting unnecessary attributes like
role="button"on native<button>elements. - Enforces required states ensuring
role="checkbox"hasaria-checkedandrole="tab"has the correct parent. - Suggests native replacements applying the five rules of ARIA to swap
divhacks for native semantic HTML.
How it works
- Input rendered HTML from DevTools, Storybook, or SSR output to ensure the skill analyzes the actual DOM.
- Execute the linter using the
aria_lint.pyscript to categorize findings by severity (High, Medium, Low). - Prioritize fixes starting with critical focus and visibility errors before moving to syntax and redundancy.
- Refactor markup following the "Native First" rule to replace ARIA-heavy containers with semantic tags.
Frameworks & tools
The core engine is a Python 3.8 script with no external dependencies, designed for offline use. It works with any web framework (React, Vue, Angular, Svelte) provided it is fed the rendered HTML output.
Why this beats prompting it yourself
Generic LLM prompts often miss the nuance of the five rules of ARIA or fail to catch subtle ID reference mismatches across a large file. This skill uses a deterministic script to find the errors and an expert system to provide the correct semantic HTML replacement.
Use cases
- Auditing custom design system components like accordions, tabs, and modals.
- Resolving "clickable" or "unlabeled" announcements in screen reader testing.
- Reviewing SSR or Storybook output for hidden accessibility regressions.
- Refactoring legacy
divsoups into modern, accessible semantic HTML.
Known limitations
Does not audit general WCAG issues like alt text or color contrast. Cannot fix keyboard behavior in JavaScript; it only identifies where focus management is required.
Open source: saizul/accessibility-a11y-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.
Does not audit non-ARIA accessibility (alt text, contrast, headings). Analyzes static HTML only; runtime state changes must be captured as separate files for review.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3.8+