Agent Skills › videojs/video.js › implement-accessible-ui

implement-accessible-ui

GitHub

实现符合无障碍标准的 Video.js UI,涵盖语义化、ARIA、键盘交互、焦点管理及屏幕阅读器支持,确保遵循最佳实践并验证兼容性。

.agents/skills/implement-accessible-ui/SKILL.md videojs/video.js

触发场景

需要实现或修复前端组件的无障碍访问功能 涉及 ARIA 属性、键盘导航或焦点管理的开发任务

安装

npx skills add videojs/video.js --skill implement-accessible-ui -g -y
更多选项

非标准路径

npx skills add https://github.com/videojs/video.js/tree/main/.agents/skills/implement-accessible-ui -g -y

不安装直接使用

npx skills use videojs/video.js@implement-accessible-ui

指定 Agent (Claude Code)

npx skills add videojs/video.js --skill implement-accessible-ui -a claude-code -g -y

安装 repo 全部 skill

npx skills add videojs/video.js --all -g -y

预览 repo 内 skill

npx skills add videojs/video.js --list

SKILL.md

Frontmatter
{
    "name": "implement-accessible-ui",
    "description": "Implement accessible Video.js UI. Use for semantics, ARIA, keyboard interaction, focus, screen readers, captions, or live regions."
}

Accessibility

Start from the rendered semantics and interaction contract. Prefer native HTML; add ARIA only where native semantics cannot express the control.

Workflow

  1. Read the component, its rendered output, interaction tests, and adjacent accessible controls.
  2. Define expected name, role, value/state, keyboard behavior, focus behavior, and announcements.
  3. Load only the applicable reference:
    • Keyboard: references/keyboard.md
    • Focus: references/focus.md
    • Roles and states: references/aria.md
    • React-specific implementation: references/react.md
    • Media-player behavior: references/media.md
    • Suspected smell: references/anti-patterns.md
  4. Implement the smallest semantic change and add behavior-focused tests.
  5. Verify keyboard and focus behavior in a browser when interaction changed.

Never remove visible focus without a replacement, use positive tabindex, convey meaning only with color, or use a changing label where a state attribute is the correct contract.

Example

Input: “Make the custom volume slider keyboard accessible.”

Output: Correct native or ARIA semantics, keyboard and focus behavior, announcements, focused tests, and browser verification.

版本历史

  • 8a0a3d8 当前 2026-10-20 08:03

同 Skill 集合

.agents/skills/change-spf-behavior/SKILL.md
.agents/skills/commit-pr/SKILL.md
.agents/skills/configure-vite-plus/SKILL.md
.agents/skills/create-html-component/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-react-component/SKILL.md
.agents/skills/create-skill/SKILL.md
.agents/skills/create-spf-behavior/SKILL.md
.agents/skills/design-api/SKILL.md
.agents/skills/document-spf-feature/SKILL.md
.agents/skills/document-spf-use-case/SKILL.md
.agents/skills/implement-spf-feature/SKILL.md
.agents/skills/implement-spf-use-case/SKILL.md
.agents/skills/implement-ui-transition/SKILL.md
.agents/skills/investigate-issue/SKILL.md
.agents/skills/maintain-agent-docs/SKILL.md
.agents/skills/maintain-tests/SKILL.md
.agents/skills/maintain-vjsc-skin-gaps/SKILL.md
.agents/skills/review-accessibility/SKILL.md
.agents/skills/review-api/SKILL.md
.agents/skills/review-branch/SKILL.md
.agents/skills/review-docs/SKILL.md
.agents/skills/review-html-component-design/SKILL.md
.agents/skills/review-html-component/SKILL.md
.agents/skills/review-react-component-design/SKILL.md
.agents/skills/review-react-component/SKILL.md
.agents/skills/write-api-reference/SKILL.md
.agents/skills/write-design-doc/SKILL.md
.agents/skills/write-docs/SKILL.md
.agents/skills/write-html-component-design/SKILL.md
.agents/skills/write-locale-translations/SKILL.md
.agents/skills/write-react-component-design/SKILL.md
.agents/skills/write-rfc/SKILL.md
.agents/skills/create-rolldown-plugin/SKILL.md
.agents/skills/create-vite-plugin/SKILL.md
.agents/skills/create-vjsc-component/SKILL.md
.agents/skills/transform-rolldown-code/SKILL.md

元信息

文件数
0
版本
8a0a3d8
Hash
b4c5ed80
收录时间
2026-10-20 08:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-05 23:05
浙ICP备14020137号-1