/security:a11yfrom security
Guides WCAG 2.2 AA compliance with auditing, remediation, component authoring, and validation workflows. Auto-invoked for UI implementation and accessibility testing.
Ships in security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Accessibility implementation guide aligned with WCAG 2.2 Level AA, WAI-ARIA 1.2, and WCAG2ICT.
| Standard | Scope | Normative Source |
|---|---|---|
| WCAG 2.2 | Web content | https://www.w3.org/TR/WCAG22/ |
| WAI-ARIA 1.2 | Widget semantics | https://www.w3.org/TR/wai-aria-1.2/ |
| ARIA APG | Authoring patterns | https://www.w3.org/WAI/ARIA/apg/ |
| WCAG2ICT | Non-web ICT | https://www.w3.org/TR/wcag2ict-22/ |
| EN 301 549 | EU procurement | ETSI EN 301 549 V3.2.1 |
| SC | Level | Requirement | Implementation |
|---|---|---|---|
| 2.4.11 | AA | Focus Not Obscured (Minimum) | Ensure focused element is at least partially visible |
| 2.4.13 | AAA | Focus Appearance | Focus indicator area ≥ 2px perimeter, 3:1 contrast |
| 2.5.7 | A | Dragging Movements | Provide single-pointer alternative to drag operations |
| 2.5.8 | AA | Target Size (Minimum) | 24×24 CSS pixels minimum |
| 3.2.6 | A | Consistent Help | Place help mechanisms in same relative location |
| 3.3.7 | A | Redundant Entry | Auto-populate previously entered information |
| 3.3.8 | AA | Accessible Authentication | No cognitive function test for login |
| SC | Requirement | Implementation | Test |
|---|---|---|---|
| 1.1.1 | Non-text content | alt on images, aria-label on icon buttons | img[alt], button[aria-label] |
| 1.3.1 | Info and relationships | Semantic HTML, no <div> for structure | Landmark audit |
| 1.4.3 | Contrast (minimum) | 4.5:1 text, 3:1 large text | axe color-contrast |
| 1.4.11 | Non-text contrast | 3:1 UI components/graphics | Manual inspection |
| SC | Requirement | Implementation | Test |
|---|---|---|---|
| 2.1.1 | Keyboard | All functions keyboard-accessible | Tab traversal |
| 2.4.3 | Focus order | Logical DOM sequence | Visual focus path |
| 2.4.7 | Focus visible | 2px+ visible indicator | focus-visible:ring-2 |
| 2.5.8 | Target size | Minimum 24x24 CSS pixels | min-w-6 min-h-6 |
| SC | Requirement | Implementation | Test |
|---|---|---|---|
| 3.2.1 | On focus | No context change on focus | Focus does not submit |
| 3.3.1 | Error identification | Text description, not color alone | role="alert" present |
| SC | Requirement | Implementation | Test |
|---|---|---|---|
| 4.1.2 | Name, role, value | Accessible name on all controls | axe button-name |
// REQUIRED: Landmark structure
<header role="banner">...</header>
<nav aria-label="Main">...</nav>
<main role="main">...</main>
<aside role="complementary">...</aside>
<footer role="contentinfo">...</footer>
// PROHIBITED: Div-based structure
<div class="header"> // SC 1.3.1 violation
<div onClick={...}> // SC 2.1.1, 4.1.2 violation
// BAD
<button onClick={handleDelete}><Trash2 /></button>
// GOOD
<button type="button" aria-label="Delete" onClick={handleDelete}>
<Trash2 aria-hidden="true" />
</button>
// BAD
<div className="btn" onClick={handleClick}>Save</div>
// GOOD
<button type="button" onClick={handleClick}>Save</button>
// BAD
<input placeholder="Search..." />
// GOOD
<label htmlFor="search">Search</label>
<input id="search" type="search" />
// OR
<input type="search" aria-label="Search files" />
// BAD
<input className={error ? "border-red-500" : ""} />
// GOOD
<input aria-invalid={!!error} aria-describedby="error-msg" />
{error && <span id="error-msg" role="alert">{error}</span>}
// BAD
<img src="/logo.png" />
// GOOD: Informative
<img src="/logo.png" alt="Company logo" />
// GOOD: Decorative
<img src="/decoration.png" alt="" role="presentation" />
/* BAD: ~2.5:1 ratio */
.muted { color: oklch(75% 0 0); }
/* GOOD: 4.5:1+ ratio */
.muted { color: oklch(45% 0 0); }
Never rely on color alone to convey information (SC 1.4.1):
// BAD: Color-only status
<span className={status === "error" ? "text-red-500" : "text-green-500"}>
{status}
</span>
// GOOD: Color + icon + text
<span className={status === "error" ? "text-red-500" : "text-green-500"}>
{status === "error" ? <AlertCircle aria-hidden /> : <CheckCircle aria-hidden />}
{status === "error" ? "Error" : "Success"}
</span>
Testing tools:
// BAD
<button className="outline-none">Action</button>
// GOOD
<button className="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2">
Action
</button>
// BAD
<h1>Title</h1>
<h3>Subsection</h3> // h2 skipped
// GOOD
<h1>Title</h1>
<h2>Subsection</h2>
// BAD: 16x16
<button className="p-0.5"><X size={12} /></button>
// GOOD: 24x24 minimum
<button className="p-2 min-w-6 min-h-6"><X size={16} /></button>
// BAD
<video src="/demo.mp4" autoPlay />
// GOOD
<video src="/demo.mp4" autoPlay muted />
<ul role="tree" aria-label="File explorer">
<li
role="treeitem"
aria-expanded={isExpanded}
aria-selected={isSelected}
aria-level={level}
aria-setsize={siblingCount}
aria-posinset={position}
tabIndex={isFocused ? 0 : -1} // Roving tabindex
>
<span>{name}</span>
{hasChildren && (
<ul role="group">{children}</ul>
)}
</li>
</ul>
Keyboard: ↓↑ navigate, → expand/child, ← collapse/parent, Enter activate, Space toggle, Home/End boundaries
<div
role="dialog"
aria-modal="true"
aria-labelledby="dialog-title"
tabIndex={-1}
>
<h2 id="dialog-title">Title</h2>
{/* Focus trap: Tab cycles within */}
{/* Escape: closes dialog */}
{/* On close: restore focus to trigger */}
</div>
<div role="alert" aria-live="polite" aria-atomic="true">
{message}
</div>
// Error: aria-live="assertive"
// Only focused item has tabIndex={0}
{items.map((item, i) => (
<button
key={item.id}
tabIndex={focusedIndex === i ? 0 : -1}
onKeyDown={(e) => handleArrowKeys(e, i)}
/>
))}
// Store trigger before modal opens
const triggerRef = useRef<HTMLElement>(null)
const openModal = (e) => { triggerRef.current = e.currentTarget; setOpen(true) }
const closeModal = () => { setOpen(false); triggerRef.current?.focus() }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
# axe-core
npx @axe-core/cli <url> --tags wcag2a,wcag2aa,wcag22aa --exit
# Lighthouse
npx lighthouse <url> --only-categories=accessibility --output=json
# pa11y
npx pa11y <url> --standard WCAG2AA
prefers-reduced-motion, verify complianceNVDA (Windows):
Insert+Space to toggle focus modeInsert+Down to read allH to navigate headings, D for landmarksVoiceOver (macOS):
Cmd+F5 to enableVO+A to read allVO+U to open rotor (headings, links, landmarks)Mobile (TalkBack/VoiceOver):
## Component: [Name]
### WCAG Compliance
- [ ] SC 1.3.1: Semantic structure
- [ ] SC 2.1.1: Keyboard operable
- [ ] SC 2.4.7: Focus visible
- [ ] SC 4.1.2: Accessible name
### Screen Reader
Expected: "[Role]: [Name], [State]"
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub skillmds/skillmd --plugin security29 skills in this plugin
/04-securityDify 安全和部署 SKILLDify 安全实践和部署运维完整指南,涵盖SSRF防护、代码沙箱、Docker/Kubernetes部署、监控告警和故障恢复/adsOperate professional paid advertising across Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, and X. Use for account intake, source-grounded audits, strategy, budget and measurement planning, creative production, experiments, reporting, monitoring, and explicitly approved campaign changes. Also trigger on PPC, paid social, retail media, attribution, tracking, landing pages, cross-platform conversion totals, negative keywords or search terms, beta-feature scoring, stale platform claims, API-token or credential setup, campaign deletion, and safe Claude Ads installation or uninstall./ads-metaAudit Meta Ads measurement, Pixel and Conversions API, attribution, Facebook and Instagram creative, audiences, placements, automation, budgets, account structure, and policy. Use for Meta Ads, Facebook Ads, Instagram Ads, Advantage+, Pixel, CAPI, Events Manager, creative fatigue, or Meta campaign optimization./ads-xAudit X Ads measurement, X Pixel and Conversions API, campaign objectives, keyword and conversation targeting, creative, budgets, brand safety, app measurement, and reporting. Use for X Ads, Twitter Ads, promoted posts, X Pixel, X Conversions API, conversation targeting, or paid campaigns on X./apk-reverse在 CLI 环境下做 Android APK 逆向时使用。适用于 APK 解包、Java 反编译、smali 修改、重打包、Frida 动态 Hook,以及按需切换到 so/native 分析。优先使用本机已安装的 jadx、apktool、frida、adb、ida-reverse、radare2。/b0Delegate tasks to AI agents via Box0. Use when the user asks to
review code, check security, run tests, compare tools, get multiple
perspectives, research a topic, analyze data, write docs, or any
task that could benefit from specialized or parallel execution.
Also use when the user mentions agent names or says "ask", "delegate",
"get opinions from", or "have someone".
Other plugins' skills for the same job