[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BMP4MSSZVJNK8GMSWCM3EV":3,"skill-same:01M7BMP4MSSZVJNK8GMSWCM3EV":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7BMP4MSSZVJNK8GMSWCM3EV","wcag-audit-patterns",null,"Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-agents\u002Fplugins\u002Faccessibility-compliance\u002Fskills\u002Fwcag-audit-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: wcag-audit-patterns\ndescription: Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.\n---\n\n# WCAG Audit Patterns\n\nComprehensive guide to auditing web content against WCAG 2.2 guidelines with actionable remediation strategies.\n\n## When to Use This Skill\n\n- Conducting accessibility audits\n- Fixing WCAG violations\n- Implementing accessible components\n- Preparing for accessibility lawsuits\n- Meeting ADA\u002FSection 508 requirements\n- Achieving VPAT compliance\n\n## Core Concepts\n\n### 1. WCAG Conformance Levels\n\n| Level   | Description            | Required For      |\n| ------- | ---------------------- | ----------------- |\n| **A**   | Minimum accessibility  | Legal baseline    |\n| **AA**  | Standard conformance   | Most regulations  |\n| **AAA** | Enhanced accessibility | Specialized needs |\n\n### 2. POUR Principles\n\n```\nPerceivable:  Can users perceive the content?\nOperable:     Can users operate the interface?\nUnderstandable: Can users understand the content?\nRobust:       Does it work with assistive tech?\n```\n\n### 3. Common Violations by Impact\n\n```\nCritical (Blockers):\n├── Missing alt text for functional images\n├── No keyboard access to interactive elements\n├── Missing form labels\n└── Auto-playing media without controls\n\nSerious:\n├── Insufficient color contrast\n├── Missing skip links\n├── Inaccessible custom widgets\n└── Missing page titles\n\nModerate:\n├── Missing language attribute\n├── Unclear link text\n├── Missing landmarks\n└── Improper heading hierarchy\n```\n\n## Audit Checklist\n\n### Perceivable (Principle 1)\n\n````markdown\n## 1.1 Text Alternatives\n\n### 1.1.1 Non-text Content (Level A)\n\n- [ ] All images have alt text\n- [ ] Decorative images have alt=\"\"\n- [ ] Complex images have long descriptions\n- [ ] Icons with meaning have accessible names\n- [ ] CAPTCHAs have alternatives\n\nCheck:\n\n```html\n\u003C!-- Good -->\n\u003Cimg src=\"chart.png\" alt=\"Sales increased 25% from Q1 to Q2\" \u002F>\n\u003Cimg src=\"decorative-line.png\" alt=\"\" \u002F>\n\n\u003C!-- Bad -->\n\u003Cimg src=\"chart.png\" \u002F>\n\u003Cimg src=\"decorative-line.png\" alt=\"decorative line\" \u002F>\n```\n````\n\n## 1.2 Time-based Media\n\n### 1.2.1 Audio-only and Video-only (Level A)\n\n- [ ] Audio has text transcript\n- [ ] Video has audio description or transcript\n\n### 1.2.2 Captions (Level A)\n\n- [ ] All video has synchronized captions\n- [ ] Captions are accurate and complete\n- [ ] Speaker identification included\n\n### 1.2.3 Audio Description (Level A)\n\n- [ ] Video has audio description for visual content\n\n## 1.3 Adaptable\n\n### 1.3.1 Info and Relationships (Level A)\n\n- [ ] Headings use proper tags (h1-h6)\n- [ ] Lists use ul\u002Fol\u002Fdl\n- [ ] Tables have headers\n- [ ] Form inputs have labels\n- [ ] ARIA landmarks present\n\nCheck:\n\n```html\n\u003C!-- Heading hierarchy -->\n\u003Ch1>Page Title\u003C\u002Fh1>\n\u003Ch2>Section\u003C\u002Fh2>\n\u003Ch3>Subsection\u003C\u002Fh3>\n\u003Ch2>Another Section\u003C\u002Fh2>\n\n\u003C!-- Table headers -->\n\u003Ctable>\n  \u003Cthead>\n    \u003Ctr>\n      \u003Cth scope=\"col\">Name\u003C\u002Fth>\n      \u003Cth scope=\"col\">Price\u003C\u002Fth>\n    \u003C\u002Ftr>\n  \u003C\u002Fthead>\n\u003C\u002Ftable>\n```\n\n### 1.3.2 Meaningful Sequence (Level A)\n\n- [ ] Reading order is logical\n- [ ] CSS positioning doesn't break order\n- [ ] Focus order matches visual order\n\n### 1.3.3 Sensory Characteristics (Level A)\n\n- [ ] Instructions don't rely on shape\u002Fcolor alone\n- [ ] \"Click the red button\" → \"Click Submit (red button)\"\n\n## 1.4 Distinguishable\n\n### 1.4.1 Use of Color (Level A)\n\n- [ ] Color is not only means of conveying info\n- [ ] Links distinguishable without color\n- [ ] Error states not color-only\n\n### 1.4.3 Contrast (Minimum) (Level AA)\n\n- [ ] Text: 4.5:1 contrast ratio\n- [ ] Large text (18pt+): 3:1 ratio\n- [ ] UI components: 3:1 ratio\n\nTools: WebAIM Contrast Checker, axe DevTools\n\n### 1.4.4 Resize Text (Level AA)\n\n- [ ] Text resizes to 200% without loss\n- [ ] No horizontal scrolling at 320px\n- [ ] Content reflows properly\n\n### 1.4.10 Reflow (Level AA)\n\n- [ ] Content reflows at 400% zoom\n- [ ] No two-dimensional scrolling\n- [ ] All content accessible at 320px width\n\n### 1.4.11 Non-text Contrast (Level AA)\n\n- [ ] UI components have 3:1 contrast\n- [ ] Focus indicators visible\n- [ ] Graphical objects distinguishable\n\n### 1.4.12 Text Spacing (Level AA)\n\n- [ ] No content loss with increased spacing\n- [ ] Line height 1.5x font size\n- [ ] Paragraph spacing 2x font size\n- [ ] Letter spacing 0.12x font size\n- [ ] Word spacing 0.16x font size\n\n````\n\n### Operable (Principle 2)\n\n```markdown\n## 2.1 Keyboard Accessible\n\n### 2.1.1 Keyboard (Level A)\n- [ ] All functionality keyboard accessible\n- [ ] No keyboard traps\n- [ ] Tab order is logical\n- [ ] Custom widgets are keyboard operable\n\nCheck:\n```javascript\n\u002F\u002F Custom button must be keyboard accessible\n\u003Cdiv role=\"button\" tabindex=\"0\"\n     onkeydown=\"if(event.key === 'Enter' || event.key === ' ') activate()\">\n````\n\n### 2.1.2 No Keyboard Trap (Level A)\n\n- [ ] Focus can move away from all components\n- [ ] Modal dialogs trap focus correctly\n- [ ] Focus returns after modal closes\n\n## 2.2 Enough Time\n\n### 2.2.1 Timing Adjustable (Level A)\n\n- [ ] Session timeouts can be extended\n- [ ] User warned before timeout\n- [ ] Option to disable auto-refresh\n\n### 2.2.2 Pause, Stop, Hide (Level A)\n\n- [ ] Moving content can be paused\n- [ ] Auto-updating content can be paused\n- [ ] Animations respect prefers-reduced-motion\n\n```css\n@media (prefers-reduced-motion: reduce) {\n  * {\n    animation: none !important;\n    transition: none !important;\n  }\n}\n```\n\n## 2.3 Seizures and Physical Reactions\n\n### 2.3.1 Three Flashes (Level A)\n\n- [ ] No content flashes more than 3 times\u002Fsecond\n- [ ] Flashing area is small (\u003C25% viewport)\n\n## 2.4 Navigable\n\n### 2.4.1 Bypass Blocks (Level A)\n\n- [ ] Skip to main content link present\n- [ ] Landmark regions defined\n- [ ] Proper heading structure\n\n```html\n\u003Ca href=\"#main\" class=\"skip-link\">Skip to main content\u003C\u002Fa>\n\u003Cmain id=\"main\">...\u003C\u002Fmain>\n```\n\n### 2.4.2 Page Titled (Level A)\n\n- [ ] Unique, descriptive page titles\n- [ ] Title reflects page content\n\n### 2.4.3 Focus Order (Level A)\n\n- [ ] Focus order matches visual order\n- [ ] tabindex used correctly\n\n### 2.4.4 Link Purpose (In Context) (Level A)\n\n- [ ] Links make sense out of context\n- [ ] No \"click here\" or \"read more\" alone\n\n```html\n\u003C!-- Bad -->\n\u003Ca href=\"report.pdf\">Click here\u003C\u002Fa>\n\n\u003C!-- Good -->\n\u003Ca href=\"report.pdf\">Download Q4 Sales Report (PDF)\u003C\u002Fa>\n```\n\n### 2.4.6 Headings and Labels (Level AA)\n\n- [ ] Headings describe content\n- [ ] Labels describe purpose\n\n### 2.4.7 Focus Visible (Level AA)\n\n- [ ] Focus indicator visible on all elements\n- [ ] Custom focus styles meet contrast\n\n```css\n:focus {\n  outline: 3px solid #005fcc;\n  outline-offset: 2px;\n}\n```\n\n### 2.4.11 Focus Not Obscured (Level AA) - WCAG 2.2\n\n- [ ] Focused element not fully hidden\n- [ ] Sticky headers don't obscure focus\n\n````\n\n### Understandable (Principle 3)\n\n```markdown\n## 3.1 Readable\n\n### 3.1.1 Language of Page (Level A)\n- [ ] HTML lang attribute set\n- [ ] Language correct for content\n\n```html\n\u003Chtml lang=\"en\">\n````\n\n### 3.1.2 Language of Parts (Level AA)\n\n- [ ] Language changes marked\n\n```html\n\u003Cp>The French word \u003Cspan lang=\"fr\">bonjour\u003C\u002Fspan> means hello.\u003C\u002Fp>\n```\n\n## 3.2 Predictable\n\n### 3.2.1 On Focus (Level A)\n\n- [ ] No context change on focus alone\n- [ ] No unexpected popups on focus\n\n### 3.2.2 On Input (Level A)\n\n- [ ] No automatic form submission\n- [ ] User warned before context change\n\n### 3.2.3 Consistent Navigation (Level AA)\n\n- [ ] Navigation consistent across pages\n- [ ] Repeated components same order\n\n### 3.2.4 Consistent Identification (Level AA)\n\n- [ ] Same functionality = same label\n- [ ] Icons used consistently\n\n## 3.3 Input Assistance\n\n### 3.3.1 Error Identification (Level A)\n\n- [ ] Errors clearly identified\n- [ ] Error message describes problem\n- [ ] Error linked to field\n\n```html\n\u003Cinput aria-describedby=\"email-error\" aria-invalid=\"true\" \u002F>\n\u003Cspan id=\"email-error\" role=\"alert\">Please enter valid email\u003C\u002Fspan>\n```\n\n### 3.3.2 Labels or Instructions (Level A)\n\n- [ ] All inputs have visible labels\n- [ ] Required fields indicated\n- [ ] Format hints provided\n\n### 3.3.3 Error Suggestion (Level AA)\n\n- [ ] Errors include correction suggestion\n- [ ] Suggestions are specific\n\n### 3.3.4 Error Prevention (Level AA)\n\n- [ ] Legal\u002Ffinancial forms reversible\n- [ ] Data checked before submission\n- [ ] User can review before submit\n\n````\n\n### Robust (Principle 4)\n\n```markdown\n## 4.1 Compatible\n\n### 4.1.1 Parsing (Level A) - Obsolete in WCAG 2.2\n- [ ] Valid HTML (good practice)\n- [ ] No duplicate IDs\n- [ ] Complete start\u002Fend tags\n\n### 4.1.2 Name, Role, Value (Level A)\n- [ ] Custom widgets have accessible names\n- [ ] ARIA roles correct\n- [ ] State changes announced\n\n```html\n\u003C!-- Accessible custom checkbox -->\n\u003Cdiv role=\"checkbox\"\n     aria-checked=\"false\"\n     tabindex=\"0\"\n     aria-labelledby=\"label\">\n\u003C\u002Fdiv>\n\u003Cspan id=\"label\">Accept terms\u003C\u002Fspan>\n````\n\n### 4.1.3 Status Messages (Level AA)\n\n- [ ] Status updates announced\n- [ ] Live regions used correctly\n\n```html\n\u003Cdiv role=\"status\" aria-live=\"polite\">3 items added to cart\u003C\u002Fdiv>\n\n\u003Cdiv role=\"alert\" aria-live=\"assertive\">Error: Form submission failed\u003C\u002Fdiv>\n```\n\n````\n\n## Automated Testing\n\n```javascript\n\u002F\u002F axe-core integration\nconst axe = require('axe-core');\n\nasync function runAccessibilityAudit(page) {\n  await page.addScriptTag({ path: require.resolve('axe-core') });\n\n  const results = await page.evaluate(async () => {\n    return await axe.run(document, {\n      runOnly: {\n        type: 'tag',\n        values: ['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa']\n      }\n    });\n  });\n\n  return {\n    violations: results.violations,\n    passes: results.passes,\n    incomplete: results.incomplete\n  };\n}\n\n\u002F\u002F Playwright test example\ntest('should have no accessibility violations', async ({ page }) => {\n  await page.goto('\u002F');\n  const results = await runAccessibilityAudit(page);\n\n  expect(results.violations).toHaveLength(0);\n});\n````\n\n```bash\n# CLI tools\nnpx @axe-core\u002Fcli https:\u002F\u002Fexample.com\nnpx pa11y https:\u002F\u002Fexample.com\nlighthouse https:\u002F\u002Fexample.com --only-categories=accessibility\n```\n\n## Remediation Patterns\n\n### Fix: Missing Form Labels\n\n```html\n\u003C!-- Before -->\n\u003Cinput type=\"email\" placeholder=\"Email\" \u002F>\n\n\u003C!-- After: Option 1 - Visible label -->\n\u003Clabel for=\"email\">Email address\u003C\u002Flabel>\n\u003Cinput id=\"email\" type=\"email\" \u002F>\n\n\u003C!-- After: Option 2 - aria-label -->\n\u003Cinput type=\"email\" aria-label=\"Email address\" \u002F>\n\n\u003C!-- After: Option 3 - aria-labelledby -->\n\u003Cspan id=\"email-label\">Email\u003C\u002Fspan>\n\u003Cinput type=\"email\" aria-labelledby=\"email-label\" \u002F>\n```\n\n### Fix: Insufficient Color Contrast\n\n```css\n\u002F* Before: 2.5:1 contrast *\u002F\n.text {\n  color: #767676;\n}\n\n\u002F* After: 4.5:1 contrast *\u002F\n.text {\n  color: #595959;\n}\n\n\u002F* Or add background *\u002F\n.text {\n  color: #767676;\n  background: #000;\n}\n```\n\n### Fix: Keyboard Navigation\n\n```javascript\n\u002F\u002F Make custom element keyboard accessible\nclass AccessibleDropdown extends HTMLElement {\n  connectedCallback() {\n    this.setAttribute(\"tabindex\", \"0\");\n    this.setAttribute(\"role\", \"combobox\");\n    this.setAttribute(\"aria-expanded\", \"false\");\n\n    this.addEventListener(\"keydown\", (e) => {\n      switch (e.key) {\n        case \"Enter\":\n        case \" \":\n          this.toggle();\n          e.preventDefault();\n          break;\n        case \"Escape\":\n          this.close();\n          break;\n        case \"ArrowDown\":\n          this.focusNext();\n          e.preventDefault();\n          break;\n        case \"ArrowUp\":\n          this.focusPrevious();\n          e.preventDefault();\n          break;\n      }\n    });\n  }\n}\n```\n\n## Best Practices\n\n### Do's\n\n- **Start early** - Accessibility from design phase\n- **Test with real users** - Disabled users provide best feedback\n- **Automate what you can** - 30-50% issues detectable\n- **Use semantic HTML** - Reduces ARIA needs\n- **Document patterns** - Build accessible component library\n\n### Don'ts\n\n- **Don't rely only on automated testing** - Manual testing required\n- **Don't use ARIA as first solution** - Native HTML first\n- **Don't hide focus outlines** - Keyboard users need them\n- **Don't disable zoom** - Users need to resize\n- **Don't use color alone** - Multiple indicators needed\n","# WCAG Audit Patterns\n\nComprehensive guide to auditing web content against WCAG 2.2 guidelines with actionable remediation strategies.\n\n## When to Use This Skill\n\n- Conducting accessibility audits\n- Fixing WCAG violations\n- Implementing accessible components\n- Preparing for accessibility lawsuits\n- Meeting ADA\u002FSection 508 requirements\n- Achieving VPAT compliance\n\n## Core Concepts\n\n### 1. WCAG Conformance Levels\n\n| Level   | Description            | Required For      |\n| ------- | ---------------------- | ----------------- |\n| **A**   | Minimum accessibility  | Legal baseline    |\n| **AA**  | Standard conformance   | Most regulations  |\n| **AAA** | Enhanced accessibility | Specialized needs |\n\n### 2. POUR Principles\n\n```\nPerceivable:  Can users perceive the content?\nOperable:     Can users operate the interface?\nUnderstandable: Can users understand the content?\nRobust:       Does it work with assistive tech?\n```\n\n### 3. Common Violations by Impact\n\n```\nCritical (Blockers):\n├── Missing alt text for functional images\n├── No keyboard access to interactive elements\n├── Missing form labels\n└── Auto-playing media without controls\n\nSerious:\n├── Insufficient color contrast\n├── Missing skip links\n├── Inaccessible custom widgets\n└── Missing page titles\n\nModerate:\n├── Missing language attribute\n├── Unclear link text\n├── Missing landmarks\n└── Improper heading hierarchy\n```\n\n## Audit Checklist\n\n### Perceivable (Principle 1)\n\n````markdown\n## 1.1 Text Alternatives\n\n### 1.1.1 Non-text Content (Level A)\n\n- [ ] All images have alt text\n- [ ] Decorative images have alt=\"\"\n- [ ] Complex images have long descriptions\n- [ ] Icons with meaning have accessible names\n- [ ] CAPTCHAs have alternatives\n\nCheck:\n\n```html\n\u003C!-- Good -->\n\u003Cimg src=\"chart.png\" alt=\"Sales increased 25% from Q1 to Q2\" \u002F>\n\u003Cimg src=\"decorative-line.png\" alt=\"\" \u002F>\n\n\u003C!-- Bad -->\n\u003Cimg src=\"chart.png\" \u002F>\n\u003Cimg src=\"decorative-line.png\" alt=\"decorative line\" \u002F>\n```\n````\n\n## 1.2 Time-based Media\n\n### 1.2.1 Audio-only and Video-only (Level A)\n\n- [ ] Audio has text transcript\n- [ ] Video has audio description or transcript\n\n### 1.2.2 Captions (Level A)\n\n- [ ] All video has synchronized captions\n- [ ] Captions are accurate and complete\n- [ ] Speaker identification included\n\n### 1.2.3 Audio Description (Level A)\n\n- [ ] Video has audio description for visual content\n\n## 1.3 Adaptable\n\n### 1.3.1 Info and Relationships (Level A)\n\n- [ ] Headings use proper tags (h1-h6)\n- [ ] Lists use ul\u002Fol\u002Fdl\n- [ ] Tables have headers\n- [ ] Form inputs have labels\n- [ ] ARIA landmarks present\n\nCheck:\n\n```html\n\u003C!-- Heading hierarchy -->\n\u003Ch1>Page Title\u003C\u002Fh1>\n\u003Ch2>Section\u003C\u002Fh2>\n\u003Ch3>Subsection\u003C\u002Fh3>\n\u003Ch2>Another Section\u003C\u002Fh2>\n\n\u003C!-- Table headers -->\n\u003Ctable>\n  \u003Cthead>\n    \u003Ctr>\n      \u003Cth scope=\"col\">Name\u003C\u002Fth>\n      \u003Cth scope=\"col\">Price\u003C\u002Fth>\n    \u003C\u002Ftr>\n  \u003C\u002Fthead>\n\u003C\u002Ftable>\n```\n\n### 1.3.2 Meaningful Sequence (Level A)\n\n- [ ] Reading order is logical\n- [ ] CSS positioning doesn't break order\n- [ ] Focus order matches visual order\n\n### 1.3.3 Sensory Characteristics (Level A)\n\n- [ ] Instructions don't rely on shape\u002Fcolor alone\n- [ ] \"Click the red button\" → \"Click Submit (red button)\"\n\n## 1.4 Distinguishable\n\n### 1.4.1 Use of Color (Level A)\n\n- [ ] Color is not only means of conveying info\n- [ ] Links distinguishable without color\n- [ ] Error states not color-only\n\n### 1.4.3 Contrast (Minimum) (Level AA)\n\n- [ ] Text: 4.5:1 contrast ratio\n- [ ] Large text (18pt+): 3:1 ratio\n- [ ] UI components: 3:1 ratio\n\nTools: WebAIM Contrast Checker, axe DevTools\n\n### 1.4.4 Resize Text (Level AA)\n\n- [ ] Text resizes to 200% without loss\n- [ ] No horizontal scrolling at 320px\n- [ ] Content reflows properly\n\n### 1.4.10 Reflow (Level AA)\n\n- [ ] Content reflows at 400% zoom\n- [ ] No two-dimensional scrolling\n- [ ] All content accessible at 320px width\n\n### 1.4.11 Non-text Contrast (Level AA)\n\n- [ ] UI components have 3:1 contrast\n- [ ] Focus indicators visible\n- [ ] Graphical objects distinguishable\n\n### 1.4.12 Text Spacing (Level AA)\n\n- [ ] No content loss with increased spacing\n- [ ] Line height 1.5x font size\n- [ ] Paragraph spacing 2x font size\n- [ ] Letter spacing 0.12x font size\n- [ ] Word spacing 0.16x font size\n\n````\n\n### Operable (Principle 2)\n\n```markdown\n## 2.1 Keyboard Accessible\n\n### 2.1.1 Keyboard (Level A)\n- [ ] All functionality keyboard accessible\n- [ ] No keyboard traps\n- [ ] Tab order is logical\n- [ ] Custom widgets are keyboard operable\n\nCheck:\n```javascript\n\u002F\u002F Custom button must be keyboard accessible\n\u003Cdiv role=\"button\" tabindex=\"0\"\n     onkeydown=\"if(event.key === 'Enter' || event.key === ' ') activate()\">\n````\n\n### 2.1.2 No Keyboard Trap (Level A)\n\n- [ ] Focus can move away from all components\n- [ ] Modal dialogs trap focus correctly\n- [ ] Focus returns after modal closes\n\n## 2.2 Enough Time\n\n### 2.2.1 Timing Adjustable (Level A)\n\n- [ ] Session timeouts can be extended\n- [ ] User warned before timeout\n- [ ] Option to disable auto-refresh\n\n### 2.2.2 Pause, Stop, Hide (Level A)\n\n- [ ] Moving content can be paused\n- [ ] Auto-updating content can be paused\n- [ ] Animations respect prefers-reduced-motion\n\n```css\n@media (prefers-reduced-motion: reduce) {\n  * {\n    animation: none !important;\n    transition: none !important;\n  }\n}\n```\n\n## 2.3 Seizures and Physical Reactions\n\n### 2.3.1 Three Flashes (Level A)\n\n- [ ] No content flashes more than 3 times\u002Fsecond\n- [ ] Flashing area is small (\u003C25% viewport)\n\n## 2.4 Navigable\n\n### 2.4.1 Bypass Blocks (Level A)\n\n- [ ] Skip to main content link present\n- [ ] Landmark regions defined\n- [ ] Proper heading structure\n\n```html\n\u003Ca href=\"#main\" class=\"skip-link\">Skip to main content\u003C\u002Fa>\n\u003Cmain id=\"main\">...\u003C\u002Fmain>\n```\n\n### 2.4.2 Page Titled (Level A)\n\n- [ ] Unique, descriptive page titles\n- [ ] Title reflects page content\n\n### 2.4.3 Focus Order (Level A)\n\n- [ ] Focus order matches visual order\n- [ ] tabindex used correctly\n\n### 2.4.4 Link Purpose (In Context) (Level A)\n\n- [ ] Links make sense out of context\n- [ ] No \"click here\" or \"read more\" alone\n\n```html\n\u003C!-- Bad -->\n\u003Ca href=\"report.pdf\">Click here\u003C\u002Fa>\n\n\u003C!-- Good -->\n\u003Ca href=\"report.pdf\">Download Q4 Sales Report (PDF)\u003C\u002Fa>\n```\n\n### 2.4.6 Headings and Labels (Level AA)\n\n- [ ] Headings describe content\n- [ ] Labels describe purpose\n\n### 2.4.7 Focus Visible (Level AA)\n\n- [ ] Focus indicator visible on all elements\n- [ ] Custom focus styles meet contrast\n\n```css\n:focus {\n  outline: 3px solid #005fcc;\n  outline-offset: 2px;\n}\n```\n\n### 2.4.11 Focus Not Obscured (Level AA) - WCAG 2.2\n\n- [ ] Focused element not fully hidden\n- [ ] Sticky headers don't obscure focus\n\n````\n\n### Understandable (Principle 3)\n\n```markdown\n## 3.1 Readable\n\n### 3.1.1 Language of Page (Level A)\n- [ ] HTML lang attribute set\n- [ ] Language correct for content\n\n```html\n\u003Chtml lang=\"en\">\n````\n\n### 3.1.2 Language of Parts (Level AA)\n\n- [ ] Language changes marked\n\n```html\n\u003Cp>The French word \u003Cspan lang=\"fr\">bonjour\u003C\u002Fspan> means hello.\u003C\u002Fp>\n```\n\n## 3.2 Predictable\n\n### 3.2.1 On Focus (Level A)\n\n- [ ] No context change on focus alone\n- [ ] No unexpected popups on focus\n\n### 3.2.2 On Input (Level A)\n\n- [ ] No automatic form submission\n- [ ] User warned before context change\n\n### 3.2.3 Consistent Navigation (Level AA)\n\n- [ ] Navigation consistent across pages\n- [ ] Repeated components same order\n\n### 3.2.4 Consistent Identification (Level AA)\n\n- [ ] Same functionality = same label\n- [ ] Icons used consistently\n\n## 3.3 Input Assistance\n\n### 3.3.1 Error Identification (Level A)\n\n- [ ] Errors clearly identified\n- [ ] Error message describes problem\n- [ ] Error linked to field\n\n```html\n\u003Cinput aria-describedby=\"email-error\" aria-invalid=\"true\" \u002F>\n\u003Cspan id=\"email-error\" role=\"alert\">Please enter valid email\u003C\u002Fspan>\n```\n\n### 3.3.2 Labels or Instructions (Level A)\n\n- [ ] All inputs have visible labels\n- [ ] Required fields indicated\n- [ ] Format hints provided\n\n### 3.3.3 Error Suggestion (Level AA)\n\n- [ ] Errors include correction suggestion\n- [ ] Suggestions are specific\n\n### 3.3.4 Error Prevention (Level AA)\n\n- [ ] Legal\u002Ffinancial forms reversible\n- [ ] Data checked before submission\n- [ ] User can review before submit\n\n````\n\n### Robust (Principle 4)\n\n```markdown\n## 4.1 Compatible\n\n### 4.1.1 Parsing (Level A) - Obsolete in WCAG 2.2\n- [ ] Valid HTML (good practice)\n- [ ] No duplicate IDs\n- [ ] Complete start\u002Fend tags\n\n### 4.1.2 Name, Role, Value (Level A)\n- [ ] Custom widgets have accessible names\n- [ ] ARIA roles correct\n- [ ] State changes announced\n\n```html\n\u003C!-- Accessible custom checkbox -->\n\u003Cdiv role=\"checkbox\"\n     aria-checked=\"false\"\n     tabindex=\"0\"\n     aria-labelledby=\"label\">\n\u003C\u002Fdiv>\n\u003Cspan id=\"label\">Accept terms\u003C\u002Fspan>\n````\n\n### 4.1.3 Status Messages (Level AA)\n\n- [ ] Status updates announced\n- [ ] Live regions used correctly\n\n```html\n\u003Cdiv role=\"status\" aria-live=\"polite\">3 items added to cart\u003C\u002Fdiv>\n\n\u003Cdiv role=\"alert\" aria-live=\"assertive\">Error: Form submission failed\u003C\u002Fdiv>\n```\n\n````\n\n## Automated Testing\n\n```javascript\n\u002F\u002F axe-core integration\nconst axe = require('axe-core');\n\nasync function runAccessibilityAudit(page) {\n  await page.addScriptTag({ path: require.resolve('axe-core') });\n\n  const results = await page.evaluate(async () => {\n    return await axe.run(document, {\n      runOnly: {\n        type: 'tag',\n        values: ['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa']\n      }\n    });\n  });\n\n  return {\n    violations: results.violations,\n    passes: results.passes,\n    incomplete: results.incomplete\n  };\n}\n\n\u002F\u002F Playwright test example\ntest('should have no accessibility violations', async ({ page }) => {\n  await page.goto('\u002F');\n  const results = await runAccessibilityAudit(page);\n\n  expect(results.violations).toHaveLength(0);\n});\n````\n\n```bash\n# CLI tools\nnpx @axe-core\u002Fcli https:\u002F\u002Fexample.com\nnpx pa11y https:\u002F\u002Fexample.com\nlighthouse https:\u002F\u002Fexample.com --only-categories=accessibility\n```\n\n## Remediation Patterns\n\n### Fix: Missing Form Labels\n\n```html\n\u003C!-- Before -->\n\u003Cinput type=\"email\" placeholder=\"Email\" \u002F>\n\n\u003C!-- After: Option 1 - Visible label -->\n\u003Clabel for=\"email\">Email address\u003C\u002Flabel>\n\u003Cinput id=\"email\" type=\"email\" \u002F>\n\n\u003C!-- After: Option 2 - aria-label -->\n\u003Cinput type=\"email\" aria-label=\"Email address\" \u002F>\n\n\u003C!-- After: Option 3 - aria-labelledby -->\n\u003Cspan id=\"email-label\">Email\u003C\u002Fspan>\n\u003Cinput type=\"email\" aria-labelledby=\"email-label\" \u002F>\n```\n\n### Fix: Insufficient Color Contrast\n\n```css\n\u002F* Before: 2.5:1 contrast *\u002F\n.text {\n  color: #767676;\n}\n\n\u002F* After: 4.5:1 contrast *\u002F\n.text {\n  color: #595959;\n}\n\n\u002F* Or add background *\u002F\n.text {\n  color: #767676;\n  background: #000;\n}\n```\n\n### Fix: Keyboard Navigation\n\n```javascript\n\u002F\u002F Make custom element keyboard accessible\nclass AccessibleDropdown extends HTMLElement {\n  connectedCallback() {\n    this.setAttribute(\"tabindex\", \"0\");\n    this.setAttribute(\"role\", \"combobox\");\n    this.setAttribute(\"aria-expanded\", \"false\");\n\n    this.addEventListener(\"keydown\", (e) => {\n      switch (e.key) {\n        case \"Enter\":\n        case \" \":\n          this.toggle();\n          e.preventDefault();\n          break;\n        case \"Escape\":\n          this.close();\n          break;\n        case \"ArrowDown\":\n          this.focusNext();\n          e.preventDefault();\n          break;\n        case \"ArrowUp\":\n          this.focusPrevious();\n          e.preventDefault();\n          break;\n      }\n    });\n  }\n}\n```\n\n## Best Practices\n\n### Do's\n\n- **Start early** - Accessibility from design phase\n- **Test with real users** - Disabled users provide best feedback\n- **Automate what you can** - 30-50% issues detectable\n- **Use semantic HTML** - Reduces ARIA needs\n- **Document patterns** - Build accessible component library\n\n### Don'ts\n\n- **Don't rely only on automated testing** - Manual testing required\n- **Don't use ARIA as first solution** - Native HTML first\n- **Don't hide focus outlines** - Keyboard users need them\n- **Don't disable zoom** - Users need to resize\n- **Don't use color alone** - Multiple indicators needed\n",{"name":5,"description":7},"main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Agent-智能体\u002FYYC3-Agent-智能体-agents\u002Fplugins\u002Faccessibility-compliance\u002Fskills\u002Fwcag-audit-patterns",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill wcag-audit-patterns",{"tool":39,"command":40},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill wcag-audit-patterns",{"tool":42,"command":43},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill wcag-audit-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-agents\u002Fplugins\u002Faccessibility-compliance\u002Fskills\u002Fwcag-audit-patterns\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]