Chuyển đến nội dung
Skillpedia
Kiểm thử48k · #3636

accesslint-scan

Skill này làm gì

Kiểm tra xem một trang web có vấn đề về khả năng tiếp cận không, như màu sắc khó đọc hoặc nút không có tên. Nó chỉ ra chính xác vị trí các vấn đề và cách khắc phục, nhưng không tự sửa.

Khi nào nên dùng

  • ✓Khi bạn muốn biết một trang có dễ dùng cho mọi người không.
  • ✓Sau khi thay đổi giao diện website và muốn đảm bảo khả năng tiếp cận không bị hỏng.
  • ✓Khi muốn có danh sách vấn đề khả năng tiếp cận trước khi kiểm thử thủ công.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/accesslint-scan/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm tra khả năng tiếp cận của trang https://example.com”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ truy cập trang web bạn cung cấp, tìm các vấn đề khả năng tiếp cận phổ biến và liệt kê vị trí cùng cách sửa của từng vấn đề.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Audit a live page and report what's broken and where. Locate; don't fix. If no URL in $ARGUMENTS, ask for one.

When to Use

  • A supplied page needs an automated contrast, accessible-name, or semantic-markup audit.
  • You need selector-grounded findings after a UI change, without modifying the application.
  • Manual assistive-technology checks or site-wide conformance assessment are separate work.

1. Audit

Use an already reviewed, project-pinned installation of @accesslint/chrome and @accesslint/cli; confirm their local binaries and CLI help before execution. Do not silently download and execute @latest. Confirm the URL and whether browser access could expose authenticated or sensitive content.

For a project whose locked installation exposes these binary names:

session_file="$(mktemp)"
./node_modules/.bin/accesslint-chrome ensure > "$session_file"

Read the complete JSON result once, record port and managed, and substitute the returned port in ./node_modules/.bin/accesslint scan "<target>" --port "<returned-port>" --format json. Never parse arbitrary stdout chunks as complete JSON. Confirm the actual binary names from the installed packages; they may differ by version. The current upstream command shape is scan <target> --port <port> --format json.

Flags as needed: --selector, --wait-for "<selector>", --include-aaa, --disable <rules>.

2. Report

Counts by impact, then one entry per violation:

  • where — selector verbatim + file:line (symbol) if source is present — never fabricate. If no violation has source, note "source mapping unavailable — located by selector only".
  • evidence — contrast ratio, missing attribute, empty name
  • fix — mechanical change or NEEDS HUMAN

Return the worklist without editing. Remediation requires a separate authorized task; current upstream names it accesslint:accessibility-fix, which may not be installed in this host.

3. Tear down

Stop only the managed browser session created for this audit, using the installed helper's supported session/port-specific stop operation. If it only supports stop --all, check for other managed sessions first and do not terminate unrelated audits. Skip teardown of an unmanaged browser.

Gotchas

  • ensure always determines the port — never hardcode 9222.
  • CLI exit 2 = bad URL or page never loaded; check the dev server.

Limitations

  • Automated rules cannot certify full WCAG conformance; retain human-required findings and record scan failures separately from zero violations.
  • Upstream CLI shape checked against AccessLint scan source; this AAS skill does not bundle the CLI or install it.
  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Câu hỏi thường gặp

Công cụ có sửa các vấn đề tìm được không?

Không, nó chỉ xác định và mô tả vấn đề cùng cách sửa. Việc sửa cần được thực hiện riêng.

“Selector-grounded fix worklist” là gì?

Đó là danh sách các vấn đề kèm chỉ dẫn chính xác (như mã địa chỉ) về vị trí của chúng trên trang, giúp việc sửa lỗi dễ dàng hơn.

Điều gì xảy ra nếu trang không tải được?

Công cụ sẽ báo lỗi khi truy cập trang hoặc cho biết trang không được tải.

Chi tiết

Mô tả gốc của tác giả

Audit a live page for accessibility issues, locate each WCAG violation precisely, and return a selector-grounded fix worklist without editing.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#3636
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự