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

testing-strategy测试策略

Agent Skill

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

总安装

3,060

周安装

125

GitHub Stars

256

下载量

980
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/community-access/accessibility-agents --skill testing-strategy

简介

制定无障碍测试策略,明确何时使用自动化工具与手动测试的最佳实践。

  • 划分约 30-40% 的自动化覆盖范围与 60-70% 需人工验证的内容领域。
  • 提供屏幕阅读器组合建议与验收准则编写方法,提升测试有效性。
  • 强调 context-aware 的检测方式,例如颜色对比需在最终样式层级下测量。
  • 输出为决策框架而非绝对规则,实际执行应根据项目阶段与资源灵活调整。

SKILL.md

Testing Strategy Skill

Decision frameworks for accessibility testing — when to use automated tools vs. manual testing, which screen reader + browser combinations to test, and how to write accessibility acceptance criteria.


Automated vs. Manual Testing Coverage

What Automated Tools Catch (~30-40%)What Requires Manual Testing (~60-70%)
Missing alt text on imagesAlt text quality and accuracy
Missing form labelsLabel clarity and helpfulness
Color contrast ratios (computed)Color contrast in context (gradients, images)
Missing lang attributeCorrect language identification
Duplicate IDsLogical reading order
Missing ARIA roles on custom widgetsCorrect ARIA role for the interaction pattern
Heading hierarchy violationsHeading text meaningfulness
Empty links and buttonsLink/button text descriptiveness
Missing table headersTable caption and header association quality
Syntax errors in ARIAScreen reader announcement correctness

Browser + Screen Reader Compatibility Matrix

Primary Test Combinations (Required)

Screen ReaderBrowserOSPriority
NVDAFirefoxWindowsMust test
NVDAChromeWindowsMust test
JAWSChromeWindowsMust test
VoiceOverSafarimacOSMust test
VoiceOverSafariiOSMust test
TalkBackChromeAndroidShould test

Secondary (Nice to Have)

Screen ReaderBrowserOS
NarratorEdgeWindows
JAWSEdgeWindows

Testing Decision Tree

Is it a new component or page?
├── Yes → Full test coverage (automated + manual)
│   ├── Run axe-core / Lighthouse scan
│   ├── Keyboard-only navigation test
│   ├── Screen reader announcement test (NVDA + VoiceOver minimum)
│   └── Visual check at 200% zoom
└── No → What changed?
    ├── Colors/styling → Contrast check + visual review
    ├── Interactive behavior → Keyboard + screen reader test
    ├── Content/text → Screen reader announcement check
    ├── Layout/order → Reading order + focus order test
    └── Dependencies updated → Regression scan (axe-core)

Regression Testing Patterns

CI Pipeline Accessibility Gates

  1. axe-core scan: Run on every PR. Fail on new critical/serious violations.
  2. Baseline management: Store known issues in .a11y-baseline.json. Only fail on new issues.
  3. Lighthouse score threshold: Set minimum accessibility score (e.g., 90). Fail on regression.
  4. Visual regression: Capture screenshots at 200% zoom. Compare for focus indicator and layout changes.

Preventing Regressions

  • Add accessibility assertions to existing component tests (see testing-accessibility.instructions.md)
  • Include keyboard navigation in E2E test suites
  • Track accessibility score trends over time (not just pass/fail)

Acceptance Criteria Template

For User Stories

Given [context],
When [action by keyboard/mouse/screen reader],
Then [accessible outcome]:

- [ ] Component has an accessible name (via label, aria-label, or aria-labelledby)
- [ ] Component has the correct ARIA role
- [ ] Component is reachable and operable by keyboard (Tab, Enter, Space, Escape, Arrows as appropriate)
- [ ] Focus is visible when the component receives focus
- [ ] State changes are announced to screen readers (aria-expanded, aria-selected, aria-checked, etc.)
- [ ] Error messages are associated with their inputs (aria-describedby or aria-errormessage)
- [ ] Content is readable at 200% zoom without horizontal scrolling
- [ ] Color is not the only means of conveying information

Common Testing Tools

ToolTypeBest For
axe-core / @axe-core/cliAutomatedCI/CD integration, broad violation scan
LighthouseAutomatedPerformance + accessibility combined score
WAVESemi-automatedVisual overlay of accessibility features/issues
Accessibility InsightsSemi-automatedFastPass (automated) + Assessment (guided manual)
pa11yAutomatedCI/CD, HTML CodeSniffer rules
jest-axeUnit testComponent-level axe scans in jest
cypress-axeE2E testPage-level axe scans in Cypress
playwright + @axe-core/playwrightE2E testPage-level axe scans in Playwright

Screen Reader Testing Quick Reference

NVDA (Windows)

KeyAction
Insert + SpaceToggle focus/browse mode
TabMove to next focusable element
HNext heading
DNext landmark
FNext form field
TNext table
Insert + F7Elements list (links, headings, landmarks)

VoiceOver (macOS)

KeyAction
VO (Ctrl+Option) + RightMove to next element
VO + SpaceActivate current element
VO + UOpen rotor (navigate by type)
VO + Cmd + HNext heading

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.08%
按下载量换算334

Claude

34%
按下载量换算333

Cursor

18.35%
按下载量换算180

Gemini CLI

10.57%
按下载量换算104

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills