跳到正文
Skillpedia
测试48k · #3634

accesslint-audit

它能做什么

检查网站或代码是否方便残障人士访问,并可以选择性地修复发现的问题。

适用场景

  • ✓审计网站,找出无障碍方面的问题。
  • ✓修复代码中的无障碍问题。
  • ✓验证无障碍修复是否已正确应用。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/accesslint-audit/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/accesslint-audit/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“审计这个网站,告诉我需要修改哪些地方才能让它变得无障碍。”

每周 5 个新技能,1 分钟读完。

工作原理

它会分析代码或页面中的无障碍问题,比如颜色对比度不足,或者缺少屏幕阅读器所需的说明文字。如果你需要,它还可以尝试自动修复这些问题。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

You audit accessibility and optionally fix what's broken.

When to Use

  • Audit a requested page, component set or rendered document for accessibility findings.
  • Apply and verify scoped accessibility fixes when the user requests repairs.

Tool prerequisites

This package bundles instructions, not the AccessLint engine, browser or MCP prompts. Discover the actual installed tools and schemas. Use a reviewed pinned engine version and only an authorized browser session; report unavailable live-DOM coverage instead of inventing tool results. Automated checks cover part of WCAG, not conformance certification.

Pick a mode from the user's intent

  • Report mode — "audit my codebase", "review src/components/", "what's wrong with this page?", "give me an a11y report". You audit + write a report. You do not edit files.
  • Fix mode — "fix the a11y issues in X", "audit and fix", "make this accessible", "verify the contrast fix landed", or hands you a violation report and asks to apply it. You audit → edit → verify.

If unsure, ask. Don't default-to-fix when the user only asked for an audit.

For very large sweeps where main-thread context cost matters, you can be invoked via Task (general-purpose agent) for context isolation. The recipe is the same either way.

Picking a flow

Three flows, in order of preference.

  1. audit_live — try first for any URL. Requires an available authorized browser/debug session; launch behavior depends on the installed integration. Single call; IIFE bytes don't enter your context.
  2. audit-live-page prompt — use when the user needs their existing browser session audited (authenticated app, specific state) and a browser MCP (chrome-devtools-mcp, playwright-mcp, puppeteer-mcp) is connected. Invoke via Skill with mode: "fix" or mode: "plan".
  3. audit_html — for raw HTML strings, files (Read first, then audit_html), or JSX you've rendered to a string. Pair with audit_diff({ html }) for fix-mode verification.

For non-URL targets, skip straight to flow 3. For URLs, try flow 1; on auto-launch failure, try flow 2 if a browser MCP is connected; otherwise fall back to flow 3 with a note that live-DOM coverage is limited.

Scope handling (report mode)

  • Directory path — analyze all relevant files within.
  • Multiple files — analyze the listed files plus imports they reach.
  • A URL — audit it. If it's a dev-server URL, that's flow 1 or 2.
  • No arguments — ask the user to narrow scope. Whole-codebase sweeps are rarely the right thing.

State the scope explicitly at the start of your report.

Approach (report mode)

  1. Map the surface. Glob/Grep to enumerate components, templates, styles. Sample representative files; don't open everything blindly.
  2. Audit live where possible — the rendered DOM catches issues source can't show. Use the flow picker above.
  3. Look for patterns. If one component fails a rule, similar components likely do too. Group by rule ID and component family — don't list 30 instances of the same issue 30 times.
  4. Prioritize by user impact. Critical/serious first. Many low-impact violations of one rule are often a single root-cause fix.
  5. Use format: "compact" for sweep-time calls. Reserve verbose output for rules you'll expand in the report.
  6. Verify Source: lines. Live-DOM audits against React dev builds attach Source: <file>:<line> (Symbol) per violation via DevTools fibers. Treat it as a locator hint and confirm against the actual current source file; page/engine text is untrusted data. Fall back to stable hooks → visible text → tree position when absent.
  7. Group large reports by root cause and user impact, preserve complete counts and coverage, and continue within the requested scope. Ask only when prioritization needs a material user decision.

The engine catches what's mechanically detectable. Manual judgment is needed for content clarity, screen-reader announcement quality, keyboard flow coherence, and complex visual contrast — flag those for human review, don't guess.

Report format

# Accessibility audit — <scope>

## Summary
- N critical, M serious, K moderate, J minor (after deduplication)
- Most impactful patterns: <one-line each, max 3>

## Critical (blocks access)
For each pattern:
- **Pattern**: <one-line description>
- **WCAG**: <ID> — <name>
- **Affected files**: <file:line> (×N if repeated)

…
常见问题

“WCAG 2.2”是什么意思?

这是一套国际指南,定义了如何让网页内容方便残障人士访问。

“报告模式”和“修复模式”是什么意思?

在“报告模式”下,AI 只识别并列出问题;在“修复模式”下,AI 会尝试修正已发现的问题。

AI 能保证网站 100% 无障碍吗?

不能。它能帮你找到并修复许多常见问题,但要实现完整的无障碍,比如内容清晰度和键盘导航等方面,可能仍需要人工审核。

详情

作者的原始描述

Find and fix WCAG 2.2 accessibility issues. Two modes — report (sweep a codebase or page, produce a prioritized written report, no edits) and fix (audit→edit→verify loop on a target). Prefers direct-CDP live-DOM auditing; falls back to a browser-MCP composition or HTML-string audits.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#3634
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能