Token导航 LogoToken导航

Agent Skill · 前端设计

check-fix-accessibility(检查修复可访问性)

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

check-fix-accessibility 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 8,889。

总安装 250周安装 10GitHub Stars 6下载 81核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/neha/check-fix-accessibility --skill check-fix-accessibility

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于前端页面的无障碍访问检查和可用性审计。可检查语义标签、键盘操作、适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。颜色对比和 ARIA 属性等合规项。

建议结合真实页面验证,check-fix-accessibility 属于前端设计类 Skill,可作为该场景下的辅助能力补充。修复时兼顾设计系统与 WCAG 通用规范。

来源仓库内路径:skills/check-fix-accessibility

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/neha/check-fix-accessibility --skill check-fix…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

check-fix-accessibility 怎么安装?

在终端执行 npx skills add https://github.com/neha/check-fix-accessibility --skill check-fix-accessibi…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

check-fix-accessibility 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

check-fix-accessibility 需要什么权限?

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

check-fix-accessibility 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

check-fix-accessibility 用的人多吗?

公开数据是累计安装 250 次,近一周安装 10 次,下载 81 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

check-fix-accessibility 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
check-fix-accessibility

检查修复可访问性 · 本页

2506操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Check and Fix Front-End Accessibility

Systematically audit and fix accessibility issues in any front-end project. Prioritize WCAG 2.2 Level A and AA unless the user specifies otherwise.

Scope

  • Web (desktop + mobile web): Full scope. This skill applies to HTML/CSS/JS, React, Next.js, Vue, Angular, and other web frameworks, including responsive and PWA. Next.js: use metadata or <Head> for page <title>; client-side navigation counts as SPA route changes — update focus/announce on route change (see Corner cases).
  • Native mobile apps (React Native, Swift/Kotlin, Flutter): Different APIs and patterns (e.g. accessibilityLabel, accessibilityRole). Apply the same principles (labels, focus order, semantics) but use platform APIs. See reference.md for pointers.

Quick workflow

  1. Audit – Run automated checks and/or review key pages/components.
  2. Prioritize – Address critical (blocking) and serious issues first.
  3. Fix – Apply fixes following patterns below; re-check after changes.
  4. Verify – Confirm keyboard flow and, if possible, screen reader behavior.

Running audits

Use at least one automated tool; combine with manual review for important flows.

  • Lighthouse (Chrome DevTools): Run Accessibility audit. Good for full-page snapshot.
  • axe DevTools (browser extension or @axe-core/cli, axe-core in tests): Run on the page or component. Report and fix by rule ID.
  • pa11y (CLI): npx pa11y <url> for terminal reports.
  • ESLint + plugins: eslint-plugin-jsx-a11y (React), vue-eslint-plugin-vuejs-accessibility (Vue). Add to CI and fix reported rules.

When fixing, use the tool’s rule ID (e.g. button-name, label, color-contrast) to look up the exact requirement and apply the right fix.

Checklist: common issues and fixes

Copy and use as a progress list. Not exhaustive; expand from audit results.

Semantics and structure

  • Page title: One <title> per page, descriptive and unique.
  • Landmarks: Use <main>, <nav>, <header>, <footer>, <aside> (or ARIA role="main" etc. only when you can’t use the element). One <main> per page.
  • Headings: Logical order (h1 → h2 → h3), no skips. Use for structure, not just styling.
  • Lists: Use <ul>/<ol>/<li> for list content; don’t use only divs + CSS.
  • Buttons vs links: Use <button> for actions (submit, open modal, toggle). Use <a href="..."> for navigation. Don’t use <div> or <span> for buttons/links without making them focusable and exposing role and name.

Focus and keyboard

  • Focus visible: All interactive elements show a visible focus indicator (outline/box-shadow). Never remove focus outline without replacing it with a clear custom style.
  • Tab order: DOM order matches visual/logical order, or use tabIndex and/or aria-flowto only when necessary and documented.
  • Keyboard operable: Every mouse action has a keyboard path (click → Enter/Space; hover reveals → focus reveals or separate keyboard trigger).
  • Focus trapping: Modals/dialogs trap focus inside until closed; focus returns to trigger on close.
  • Skip link: Provide "Skip to main content" (or equivalent) for repeated nav; ensure it’s visible on focus and moves focus to main content.

Forms and labels

  • Labels: Every form control has an associated <label> (by id/for or wrapping) or aria-label/aria-labelledby. Placeholder is not the label.
  • Errors: Associate error messages with controls (e.g. aria-describedby, aria-invalid) and announce errors to screen readers.
  • Required/optional: Indicate with aria-required and/or visible text; ensure required fields are clearly marked.
  • Grouping: Use <fieldset> + <legend> for radio/checkbox groups.

Images and media

  • Alt text: All meaningful images have alt describing content or function. Decorative images use alt="".
  • Complex images: Charts, diagrams, etc. have extended description (long description page, aria-describedby, or visible text).
  • Video/audio: Provide captions and/or transcripts where applicable; ensure controls are keyboard accessible and labeled.

ARIA (when HTML isn’t enough)

  • Roles: Use native elements first (button, link, heading, etc.). Add ARIA roles only for custom widgets (e.g. role="dialog", role="tablist").
  • Names: Interactive elements and regions have an accessible name: aria-label, aria-labelledby, or visible text content.
  • Live regions: Use aria-live, aria-atomic, aria-relevant for dynamic content that should be announced (toasts, errors, updates). Prefer aria-live="polite" unless urgent.
  • State: Expose state (expanded/collapsed, selected, current) with aria-expanded, aria-selected, aria-current, etc., and keep it in sync with the UI.
  • Avoid: Don’t use role/aria-* on elements that already have that semantics (e.g. role="button" on <button>). Prefer not to add aria-hidden="true" to focusable content.

Color and contrast

  • Contrast: Text (and important graphics) meets WCAG AA: 4.5:1 for normal text, 3:1 for large text. Use a contrast checker (e.g. DevTools, WebAIM) and fix background/foreground.
  • Not color alone: Don’t convey information or state by color only. Add icons, text, or pattern (e.g. "Error" + red; "Required" + asterisk).

Motion and animation

  • Reduce motion: Respect prefers-reduced-motion: reduce (CSS or JS) by disabling or simplifying non-essential motion. Don’t rely on animation for critical information.

Responsive and zoom

  • Zoom: Layout works at 200% zoom (and preferably up to 400%). No horizontal scrolling at 320px width unless the content is inherently wide (e.g. data tables).
  • Touch targets: Interactive elements at least 44×44 CSS pixels where possible.

Corner cases and edge cases

Handle these explicitly; they are often missed by automated tools.

Screen readers

  • Screen-reader-only text: When visible label would be redundant (e.g. icon-only button), add a visible-for-SR label (e.g. .sr-only / aria-label) so the control has a clear name. Don't rely on title alone for critical labels.
  • Tables: Data tables use <table>, <th> with scope or headers, and <caption> or aria-labelledby so screen reader users can navigate by cell. Avoid tables for layout.
  • Iframes: Every <iframe> needs a descriptive title (or aria-label) so SR users know what the region is.
  • Link purpose: Link text must make sense out of context. Avoid "Click here" or "Read more" alone; use descriptive text or aria-label that includes context.
  • Duplicate announcements: Avoid announcing the same thing twice (e.g. both aria-label and visible text saying the same; multiple live regions for one update). Use one clear source of truth.
  • Language of parts: Use lang on an element when its content is in a different language than the page (e.g. <span lang="fr">), so SR uses the correct pronunciation.
  • Announcement order: Ensure live regions and focus moves don't create confusing order (e.g. result announced before "Loading" is removed). Use aria-busy during loading and clear it when content is ready.

Voice control / Voice View

  • Distinct, speakable labels: Users of voice input (e.g. Voice Access, Dragon, Voice Control) say element names. Avoid many elements with the same label (e.g. multiple "Submit" or "Button"). Use unique, short labels (e.g. "Submit registration", "Cancel") so users can say "Click Submit registration".
  • Numbering: If labels can't be unique, voice software may fall back to "first button", "second link". Prefer unique labels over relying on order.

Single-page apps (SPA) and dynamic content

  • Route / view changes: On navigation, update <title> and move focus to main content or announce the change (e.g. aria-live="polite" region or focus to <main>/heading) so SR users know the page changed.
  • Loading states: Use aria-busy="true" on the loading container and set to false when done. Optionally use a live region to announce "Loading…" and then the result.
  • Hidden but focusable: Content that is hidden (e.g. display: none, hidden, inactive tab panel) must not contain focusable elements, or those elements must be removed from the accessibility tree (e.g. aria-hidden="true" on container, or inert where supported). Otherwise keyboard/SR users can focus "invisible" elements.

Other

  • Time limits: If the content has a time limit (session timeout, quiz), provide a way to extend, turn off, or adjust it (WCAG 2.2).
  • CAPTCHA / verification: Provide an accessible alternative (e.g. audio CAPTCHA, alternative task) and ensure the flow is keyboard/SR accessible.
  • RTL: For right-to-left languages, set dir="rtl" (or appropriate dir) on the document or container so layout and reading order are correct.
  • Third-party embeds: If you embed widgets or iframes you don't control, document that they should be accessible or provide an alternative (e.g. link to same content elsewhere).

Fix patterns (concise)

  • Custom control: Use the right native element or add role, tabindex="0" (or -1 if managed by script), and aria-* state/name. Handle Enter/Space and focus.
  • Modal: role="dialog", aria-modal="true", aria-labelledby (title), focus move to dialog on open, trap focus, Escape closes, focus return on close.
  • Expand/collapse: aria-expanded and aria-controls on trigger; id on panel; toggle on Enter/Space.
  • Tabs: role="tablist", role="tab" (with aria-selected, aria-controls), role="tabpanel" (with id); arrow keys switch tabs; activate on Enter/Space.
  • Error message: aria-describedby="id-of-error" on control, aria-invalid="true" when invalid; ensure error element has id and is in DOM when invalid.

Providing feedback

When reporting issues, use:

  • Critical: Blocks access (e.g. no focus, missing labels, no keyboard path). Fix first.
  • Serious: Major barrier (e.g. poor contrast, wrong semantics). Fix soon.
  • Minor: Improves experience (e.g. redundant ARIA, heading order). Fix when practical.

Include: file/component, element or selector, rule or guideline, and a concrete fix (code or steps).

After fixing

  • Re-run the same audit tool and confirm violations are gone or explained.
  • Test keyboard-only navigation through the flow.
  • If possible, test with one screen reader (e.g. NVDA, VoiceOver) for the changed components.

Reference

For detailed WCAG criteria, ARIA patterns, and component examples, see reference.md when you need deeper guidance.

平台分布

Codex

36.2%
按下载量换算29

Claude

31.27%
按下载量换算25

Cursor

16.96%
按下载量换算14

Gemini CLI

8.15%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills