Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

web-accessibility网络可访问性

Agent Skill

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

总安装

1,458

周安装

62

GitHub Stars

4

下载量

511
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/s-hiraoku/synapse-a2a --skill web-accessibility

简介

web-accessibility 用于辅助无障碍访问检查、页面可用性审计和前端可访问性改进。

  • 适用于研究检索类任务,可协助检查语义标签、键盘操作和 ARIA 属性。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,具体用法需参考原始 README 和项目文档。
  • 使用时需结合真实页面和浏览器验证,不应只依赖静态文本判断,建议兼顾 WCAG 规范和设计系统。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Web Accessibility

Build interfaces that work for everyone. These are not optional enhancements — they are baseline quality.

Semantic HTML

Use the right element for the job. Never simulate interactive elements with <div>.

// BAD: div with click handler
<div onClick={handleClick} className="button">Submit</div>

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

// BAD: div as link
<div onClick={() => router.push('/about')}>About</div>

// GOOD: anchor/Link for navigation
<Link href="/about">About</Link>

Element Selection Guide

PurposeElementNot
Action (submit, toggle, delete)<button><div onClick>
Navigation to URL<a> / <Link><button onClick={navigate}>
Form input<input>, <select>, <textarea>Custom div-based inputs
Section heading<h1><h6> (sequential)<div className="heading">
List of items<ul> / <ol> + <li>Repeated <div>
Navigation group<nav><div className="nav">
Main content<main><div id="content">

Keyboard Navigation

Every interactive element must be keyboard accessible.

Focus Management

/* NEVER remove focus indicators without replacement */
/* BAD */
*:focus { outline: none; }

/* GOOD: Visible focus only on keyboard navigation */
.interactive:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Group focus for compound controls */
.input-group:focus-within {
  outline: 2px solid var(--color-accent);
}

Keyboard Event Handling

// Interactive custom elements need keyboard support
function CustomButton({ onClick, children }: { onClick: () => void; children: React.ReactNode }) {
  return (
    <div
      role="button"
      tabIndex={0}
      onClick={onClick}
      onKeyDown={(e) => {
        if (e.key === 'Enter' || e.key === ' ') {
          e.preventDefault();
          onClick();
        }
      }}
    >
      {children}
    </div>
  );
}
// Better: just use <button> and avoid all of the above

Skip Links

Provide skip navigation for keyboard users.

<a href="#main-content" className="sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 focus:z-50">
  Skip to main content
</a>

Headings used as scroll targets need offset for fixed headers:

[id] { scroll-margin-top: 5rem; }

ARIA Patterns

Icon Buttons

// Icon-only buttons MUST have aria-label
<button aria-label="Close dialog" onClick={onClose}>
  <XIcon aria-hidden="true" />
</button>

// Decorative icons are hidden from screen readers
<span aria-hidden="true">🔒</span> Secure connection

Live Regions

Announce dynamic content changes to screen readers.

// Toast notifications
<div role="status" aria-live="polite">
  {notification && <p>{notification.message}</p>}
</div>

// Error alerts
<div role="alert" aria-live="assertive">
  {error && <p>{error.message}</p>}
</div>

Loading States

<button disabled={isLoading} aria-busy={isLoading}>
  {isLoading ? 'Saving\u2026' : 'Save'}  {/* proper ellipsis character */}
</button>

// Skeleton screens
<div aria-busy="true" aria-label="Loading content">
  <Skeleton />
</div>

Forms

Labels

Every input must have an associated label.

// GOOD: Explicit association
<label htmlFor="email">Email</label>
<input id="email" type="email" autoComplete="email" />

// GOOD: Wrapping (clickable label, no htmlFor needed)
<label>
  Email
  <input type="email" autoComplete="email" />
</label>

// GOOD: Visually hidden but accessible
<label htmlFor="search" className="sr-only">Search</label>
<input id="search" type="search" placeholder="Search..." />

Input Types and Autocomplete

Use semantic input types to get the right mobile keyboard and browser behavior.

<input type="email" autoComplete="email" />
<input type="tel" autoComplete="tel" />
<input type="url" autoComplete="url" />
<input type="password" autoComplete="current-password" />
<input type="password" autoComplete="new-password" />

Validation and Errors

<div>
  <label htmlFor="email">Email</label>
  <input
    id="email"
    type="email"
    aria-invalid={!!errors.email}
    aria-describedby={errors.email ? 'email-error' : undefined}
  />
  {errors.email && (
    <p id="email-error" role="alert" className="text-red-600">
      {errors.email}
    </p>
  )}
</div>

Form Behavior Rules

  • Never prevent paste on any input
  • Disable spellcheck on emails and codes: spellCheck={false}
  • Submit button stays enabled until request starts; show spinner during loading
  • Focus first error on submit failure
  • Checkboxes and radio buttons: single hit target, no dead zones between label and input

Images and Media

// Informative images: descriptive alt
<img src="chart.png" alt="Revenue grew 40% from Q1 to Q3 2025" />

// Decorative images: empty alt
<img src="divider.svg" alt="" />

// Prevent layout shift: always set dimensions
<img src="photo.jpg" width={800} height={600} alt="Team photo" />

// Below fold: lazy load
<img src="photo.jpg" loading="lazy" alt="..." />

// Critical: prioritize
<img src="hero.jpg" fetchPriority="high" alt="..." />

Touch and Mobile

Touch Targets

Minimum 44x44px for all interactive elements (WCAG 2.5.5).

.touch-target {
  min-height: 44px;
  min-width: 44px;
}

Safe Areas

Handle device notches and home indicators.

.full-bleed {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

Touch Behavior

/* Prevent 300ms delay and highlight flash */
.interactive {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent scroll chaining on modals */
.modal { overscroll-behavior: contain; }

Internationalization

// BAD: Hardcoded formats
const date = `${month}/${day}/${year}`;
const price = `$${amount.toFixed(2)}`;

// GOOD: Locale-aware formatting
const date = new Intl.DateTimeFormat(locale).format(new Date());
const price = new Intl.NumberFormat(locale, {
  style: 'currency',
  currency: 'USD',
}).format(amount);

// Detect language
const lang = request.headers.get('accept-language')?.split(',')[0] ?? 'en';

Performance for Accessibility

  • Lists > 50 items: virtualize
  • Critical fonts: <link rel="preload" as="font"> with font-display: swap
  • Avoid layout reads during render (causes jank for screen reader users too)
  • Uncontrolled inputs perform better than controlled for large forms

Checklist

Use this for review:

  • All interactive elements are keyboard accessible
  • Focus indicators are visible on :focus-visible
  • Color contrast meets WCAG AA (4.5:1 body, 3:1 large text)
  • Images have appropriate alt text
  • Form inputs have labels
  • Error messages are associated with inputs via aria-describedby
  • Icon-only buttons have aria-label
  • Dynamic content uses aria-live regions
  • Touch targets are minimum 44x44px
  • prefers-reduced-motion is respected
  • No outline: none without replacement focus style
  • Heading hierarchy is sequential (no skipped levels)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.22%
按下载量换算175

Claude

31.91%
按下载量换算163

Cursor

19.78%
按下载量换算101

Gemini CLI

9.58%
按下载量换算49

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills