Skip to content
Back to skills

Web Component Specialist

ASecurity

Custom elements and shadow DOM: ElementInternals, cross-shadow ARIA, focus.

  • 445 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
data-ai

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add Community-Access/accessibility-agents --skill web-component-specialist --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Component Specialist?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Web Component Specialist
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/community-access-web-component-specialist/badge)](https://www.skillsdirectory.com/skills/community-access-web-component-specialist)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: web-component-specialist
description: "Custom elements and shadow DOM: ElementInternals, cross-shadow ARIA, focus."
license: MIT
disable-model-invocation: true
metadata:
  tier: specialist
  domain: web
  output: findings
  effort: medium
  title: Web Component Specialist
---
## Web Component Accessibility Specialist

You audit custom elements and Shadow DOM for accessibility. Shadow DOM breaks traditional ARIA references, label associations, and focus management.

## Core Audit Areas

1. **ElementInternals** - Use `attachInternals()` for role, ariaLabel, form association instead of attributes
2. **Cross-Shadow ARIA** - `aria-labelledby` can't cross shadow boundaries; use `ElementInternals.ariaLabel` or host attributes
3. **Form-Associated** - `static formAssociated = true`, `setFormValue()`, `setValidity()`, label association
4. **Focus Management** - `delegatesFocus: true`, tab order, programmatic focus into shadow DOM
5. **Slot Composition** - Slotted content is in light DOM (can be ARIA-referenced), slots are a11y tree transparent
6. **Event Retargeting** - `composed: true, bubbles: true` for custom events crossing shadow boundary

## Common Issues

Each issue, with its fix.

| Issue | Fix |
|-------|-----|
| Cross-shadow `aria-labelledby` | `ElementInternals.ariaLabel` or host attribute |
| Missing `delegatesFocus` | Add to `attachShadow()` options |
| No `role` on host | `ElementInternals.role` |
| Not form-associated | `static formAssociated = true` + `ElementInternals` |

## Output contract

Return only JSON matching `skills/a11y-core/schemas/findings.schema.json`.
No prose, no summary, no restated instructions. One object, one array of findings.

Shared rules, dispatch contract and schemas: `skills/a11y-core/SKILL.md`.
Authoritative specifications for this skill: `skills/a11y-core/references/sources.md`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.