Guide · Agent skill
How to use the Decorative Elements Accessibility Check agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The decorative-elements skill is a small instruction package for an AI agent that reviews web page markup and components for decorative images, icons and SVGs that screen readers would announce for no reason. This guide explains what the skill makes the agent do, how to install it, how to ask for it in plain language, and what limits to keep in mind. By the end you will be able to run a quick first-pass check on a snippet of HTML.
Quick start
- 1Download the ZIP. Get the decorative-elements skill ZIP from this directory page.
- 2Unzip into a skills folder. Extract it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder.
- 3Or upload in the Claude apps. In the Claude apps, go to Settings → Capabilities → Skills and upload the ZIP.
- 4Paste your markup. Share the HTML snippet or component code you want reviewed.
- 5Ask for a decorative-elements check. Use a plain request such as checking for decorative images or icons that screen readers announce.
- 6Verify the findings. Confirm flagged elements with browser accessibility tools or assistive technology before changing code.
What the decorative-elements skill makes the agent do
Once installed, the agent reviews web page markup and components for decorative images, icons and SVGs that screen readers would announce needlessly. It checks that decorative images use empty alt text, that decorative icons use aria-hidden, and that decoration is not exposed to assistive technology.
The skill also tells the agent not to flag harmless decorative elements unless there is a real semantic, focus or layout problem. Its guidance is that an image that is clearly decorative should produce no finding unless the snippet shows broken semantics, focusability, or visible layout instability.
- Decorative img elements should use alt="" (empty), not a missing alt or alt="image".
- Decorative SVGs and icon fonts should use aria-hidden="true".
- Purely decorative visuals can be drawn with CSS background-image instead of img elements.
- role="presentation" removes semantic meaning from an element, so use it with care.
Install the skill from the ZIP or the Claude apps
Download the ZIP for the decorative-elements skill from this directory page. Then choose one of the two install routes below.
For Claude Code, unzip the download into ~/.claude/skills/ to make it available to you across projects, or into a project's .claude/skills/ folder to limit it to that project. The skill folder contains SKILL.md and references/rule.md.
In the Claude apps, you can instead upload the ZIP under Settings → Capabilities → Skills.
- Personal install: ~/.claude/skills/
- Project install: .claude/skills/ inside your project folder
- Claude apps: Settings → Capabilities → Skills
Trigger the skill with natural requests
You do not need a special command. The skill is written to activate when you ask the agent to review rendered HTML, interactive components, or design-system patterns for decorative content. Name the thing you want checked and the rule in ordinary words.
Paste the markup or describe the component, then ask directly. Including the surrounding markup helps the agent judge whether an image is really decorative.
- "Check this HTML for decorative images that screen readers will announce."
- "Review this icon component: should its SVG be hidden from assistive technology?"
- "Does this divider image need an empty alt attribute?"
- "Give me a quick first-pass accessibility check on this snippet for decorative elements."
Read the results and check the examples
The source material shows the pattern the agent looks for. A missing alt makes a screen reader guess from the filename, and alt="border" is still noise. An empty alt is skipped by screen readers, and a CSS-drawn border avoids the image entirely.
Treat the agent's output as a starting point. Confirm each flagged element in a browser's accessibility tools or with a real screen reader before changing production code.
- Bad: missing alt, the screen reader announces the filename, for example "decorative-border.png, image".
- Bad: alt="border", announced as "border, image".
- Good: alt="", the image is skipped by screen readers.
- Better: a div with a CSS class for the border, with no image element at all.
<img src="decorative-border.png" alt="">What people use it for
- Reviewing a page template for img tags used as dividers or bullets that need alt="".
- Checking an icon component to confirm decorative SVGs carry aria-hidden="true".
- Giving a designer or QA reviewer a quick list of decorative graphics that may be announced by screen readers.
- Getting a first-pass look at a design-system component before a fuller accessibility review.
Frequently asked questions
Is the decorative-elements skill free to use?
The source lists the skill under the MIT licence, which is the licence it is published under. The source does not mention pricing, so check the directory page for any terms beyond the licence.
What do I need to run the decorative-elements skill?
The source lists no specific requirements. It does not run scripts and does not use the network, so it works by reading the markup you provide.
Where do I install the skill?
Unzip the download into ~/.claude/skills/ for personal use or into a project's .claude/skills/ folder. In the Claude apps, upload the ZIP under Settings → Capabilities → Skills.
Can the skill replace a full accessibility audit?
No. It covers one narrow rule about decorative content and cannot replace testing with real assistive technology. Use it as a quick first pass only.
Why did the agent not flag my decorative image?
The skill is designed not to report harmless decorative elements unless the snippet shows broken semantics, focusability, or visible layout instability. This is intentional and avoids noisy findings.
How is this different from a general accessibility checker?
This skill focuses only on whether decorative images and icons are hidden from screen readers. It does not judge other accessibility rules, and the agent must infer whether an image is decorative from the snippet alone.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Front-end developers, designers and QA reviewers who want a quick first-pass check of decorative images and icons will find this skill useful. Teams that need a full accessibility audit, or who must judge whether context-dependent images are decorative, should use real assistive technology testing and a broader audit tool instead.
Download the skill