Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

framework-accessibility框架可访问性

Agent Skill

用于辅助无障碍访问检查、页面可用性审计和前端可访问性改进。它适合让 Agent 检查语义标签、键盘操作、颜色对比、ARIA 属性和自动化检测结果。使用时需要结合真实页面和浏览器验证,不应只依赖静态文本判断;涉及修复建议时,应兼顾设计系统、组件复用和 WCAG 等通用无障碍规范。

总安装

3,109

周安装

127

GitHub Stars

256

下载量

996
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:framework-accessibility(框架可访问性)
来源仓库:https://github.com/community-access/accessibility-agents
仓库路径:skills/framework-accessibility
安装命令:
npx skills add https://github.com/community-access/accessibility-agents --skill framework-accessibility
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/community-access/accessibility-agents --skill framework-accessibility

简介

用于辅助无障碍访问检查和前端可访问性改进,确保符合通用规范。

  • 支持语义标签、键盘操作、颜色对比和 ARIA 属性检测,兼顾 WCAG 标准。
  • 结合真实页面和浏览器验证检测结果,避免仅依赖静态文本判断。
  • 修复建议应适配设计系统和组件复用逻辑,不破坏现有交互流程。
  • 安装前需确认权限范围,防止误触命令执行或文件读写操作。

SKILL.md

Framework-Specific Accessibility Patterns

React / Next.js

Common Pitfalls

PatternIssueFix
onClick on <div>Not keyboard accessibleUse <button> or add role="button", tabIndex={0}, onKeyDown
dangerouslySetInnerHTMLMay inject inaccessible contentAudit injected HTML for ARIA, headings, alt text
React.Fragment as rootMay break landmark treeEnsure fragments don't interrupt landmark nesting
Missing key on listsCan cause focus loss on re-renderUse stable keys (not array index) for interactive lists
Portal without focus trapFocus can escape to backgroundWrap portal content in FocusTrap component
useEffect focus managementFocus may not fire on mountUse useRef + useEffect with proper dependency array

Fix Templates

// Bad: div as button
<div onClick={handleClick}>Submit</div>

// Good: semantic button
<button onClick={handleClick}>Submit</button>

// Bad: image without alt in Next.js
<Image src="/hero.jpg" width={800} height={400} />

// Good: image with alt
<Image src="/hero.jpg" width={800} height={400} alt="Team collaborating in a modern office" />

// Bad: no focus management on route change
useEffect(() => {
  // nothing
}, [location]);

// Good: focus management on route change
useEffect(() => {
  const mainContent = document.getElementById('main-content');
  if (mainContent) {
    mainContent.focus();
    mainContent.scrollIntoView();
  }
}, [location]);

// Bad: link opening new tab
<a href={url} target="_blank">Resource</a>

// Good: link with new tab warning
<a href={url} target="_blank" rel="noopener noreferrer">
  Resource <span className="sr-only">(opens in new tab)</span>
</a>

Vue

Common Pitfalls

PatternIssueFix
v-html with user contentMay inject inaccessible markupSanitize and audit injected HTML
v-if on live regionsRemoves element from DOM, breaks announcementsUse v-show for live regions instead
<transition> without focusFocus lost when content transitionsManage focus in @after-enter hook
<teleport> to bodyContent outside app landmark treeAdd landmark roles to teleported content

Fix Templates

<!-- Bad: v-if on live region -->
<div v-if="message" aria-live="polite">{{ message }}</div>

<!-- Good: v-show keeps element in DOM -->
<div v-show="message" aria-live="polite">{{ message }}</div>

<!-- Bad: no focus after transition -->
<transition name="fade">
  <div v-if="showModal" class="modal">...</div>
</transition>

<!-- Good: focus managed after transition -->
<transition name="fade" @after-enter="focusModal">
  <div v-if="showModal" ref="modal" class="modal" tabindex="-1">...</div>
</transition>

Angular

Common Pitfalls

PatternIssueFix
[aria-label] bindingInvalid - ARIA is not a propertyUse [attr.aria-label]
*ngFor without trackByFocus loss on list re-renderAdd trackBy function
No LiveAnnouncerRoute changes not announcedInject LiveAnnouncer and announce navigation
OnPush + live regionsChange detection may not triggerUse ChangeDetectorRef.markForCheck()

Fix Templates

// Bad: ARIA binding
<button [aria-label]="label">X</button>

// Good: ARIA attribute binding
<button [attr.aria-label]="label">X</button>

// Bad: ngFor without trackBy
<li *ngFor="let item of items">{{ item.name }}</li>

// Good: ngFor with trackBy
<li *ngFor="let item of items; trackBy: trackById">{{ item.name }}</li>

// Route change announcements
constructor(private liveAnnouncer: LiveAnnouncer, private router: Router) {
  this.router.events.pipe(
    filter(event => event instanceof NavigationEnd)
  ).subscribe((event: NavigationEnd) => {
    this.liveAnnouncer.announce(`Navigated to ${this.getPageTitle()}`);
  });
}

Svelte

Common Pitfalls

PatternIssueFix
{#if} without focus managementFocus lost when content appearsUse use:action to focus new content
transition: without motion checkAnimations play regardless of user preferenceAdd prefers-reduced-motion check
on:click on non-interactiveNot keyboard accessibleUse <button> or add keyboard handlers

Fix Templates

<!-- Bad: click on div -->
<div on:click={toggle}>Toggle</div>

<!-- Good: keyboard accessible -->
<button on:click={toggle}>Toggle</button>

<!-- Bad: animation without motion preference -->
<div transition:fly={{ y: 200 }}>Content</div>

<!-- Good: respects motion preference -->
<div transition:fly={{ y: reducedMotion ? 0 : 200, duration: reducedMotion ? 0 : 300 }}>Content</div>

<script>
  const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
</script>

Tailwind CSS

Common Pitfalls

PatternIssueFix
outline-noneRemoves focus indicatorPair with ring-2 ring-offset-2 focus-visible:ring-blue-500
text-gray-400 on bg-whiteFails 4.5:1 contrastUse text-gray-600 or darker
No motion-reduce: variantAnimations ignore user preferenceAdd motion-reduce:transition-none
Missing focus: stylesNo visible focus indicatorAdd focus:ring-2 focus:ring-blue-500
sr-only missingScreen reader text not availableAdd <span class="sr-only">description</span>

Contrast-Safe Tailwind Pairs

BackgroundMinimum TextRatio
bg-whitetext-gray-6004.55:1
bg-whitetext-gray-7006.62:1
bg-gray-50text-gray-7006.29:1
bg-gray-900text-gray-3005.92:1
bg-blue-600text-white5.23:1
bg-red-600text-white4.54:1
bg-green-700text-white4.58:1

Fix Templates

<!-- Bad: no focus indicator -->
<button class="bg-blue-500 text-white px-4 py-2 rounded outline-none">
  Submit
</button>

<!-- Good: visible focus indicator -->
<button class="bg-blue-500 text-white px-4 py-2 rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2">
  Submit
</button>

<!-- Bad: low contrast -->
<p class="text-gray-400">Important information</p>

<!-- Good: adequate contrast -->
<p class="text-gray-700">Important information</p>

<!-- Bad: animation without motion preference -->
<div class="transition-transform duration-300 hover:scale-105">Card</div>

<!-- Good: respects motion preference -->
<div class="transition-transform duration-300 hover:scale-105 motion-reduce:transition-none motion-reduce:hover:scale-100">Card</div>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.32%
按下载量换算342

Claude

33.01%
按下载量换算329

Cursor

19.8%
按下载量换算197

Gemini CLI

9.75%
按下载量换算97

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills