Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计提醒

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

Agent Skill

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

总安装

250

周安装

10

GitHub Stars

6

下载量

81
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

用于前端页面的无障碍访问检查和可用性审计。

  • 可检查语义标签、键盘操作、适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 颜色对比和 ARIA 属性等合规项。
  • 建议结合真实页面验证,check-fix-accessibility 属于前端设计类 Skill,可作为该场景下的辅助能力补充。
  • 修复时兼顾设计系统与 WCAG 通用规范。

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 (h1h2h3), 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.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.2%
按下载量换算29

Claude

31.27%
按下载量换算25

Cursor

16.96%
按下载量换算14

Gemini CLI

8.15%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills