Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

cognitive-accessibility认知可达性

Agent Skill

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

总安装

2,964

周安装

126

GitHub Stars

256

下载量

1,038
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

cognitive-accessibility 提供认知无障碍评估框架,覆盖 WCAG 2.2 AA 关键标准。

  • 适用于在 Codex、Claude、Cursor、Gemini CLI 中进行学习障碍与神经多样性友好设计审查。
  • 包含阅读水平计算、认证模式分析与 COGA W3C 指导映射。
  • 支持表单、导航与多媒体组件的可达性检查与改进建议。
  • 需结合真实页面交互验证,避免仅依赖静态文本判断。

SKILL.md

Skill: Cognitive Accessibility

Domain: Cognitive, learning, and neurological accessibility WCAG scope: WCAG 2.2 AA + key AAA, COGA W3C guidance Agents that use this skill: cognitive-accessibility, web-accessibility-wizard, accessibility-lead, forms-specialist


Purpose

This skill provides reference tables, scoring formulas, and evaluation patterns for cognitive accessibility review. It covers:

  • WCAG 2.2 success criteria with cognitive accessibility relevance
  • COGA (Cognitive Accessibility) W3C guidance mapping
  • Plain language analysis techniques
  • Reading level computation
  • Authentication pattern analysis (3.3.8 / 3.3.9)
  • Redundant entry detection (3.3.7)
  • Timeout and session management analysis

WCAG 2.2 Cognitive Accessibility Criteria Reference

Level A

SCNameWhat to CheckCommon Failures
2.2.1Timing AdjustableSession timeouts warn >=20s before expiry; user can extend >=10x or disableRedirect without warning; extension UI exists but does nothing
2.2.2Pause, Stop, HideAuto-moving/blinking content >5s has pause/stop controlBlinking backgrounds, marquee text, auto-scrolling feeds
2.3.1Three FlashesNo content flashes >3 Hz (absolute)Transition animations that strobe
3.3.1Error IdentificationError identified in text, not just colorRed border with no error message
3.3.2Labels or InstructionsFormat requirements shown *before* error, required fields identified upfrontFormat hint only in error state; asterisks with no legend
3.3.7Redundant Entry *(2.2 new)*Previously-entered info not re-requested in same session unless security-essential or staleEmail re-entered on step 3; billing address not pre-filled from shipping

Level AA

SCNameWhat to CheckCommon Failures
2.4.6Headings and LabelsHeadings describe content; labels describe input purpose"Section 1", "Info", "Details" as heading text
3.2.3Consistent NavigationNav appears in same relative order across pagesFooter nav changes order on mobile vs desktop
3.2.4Consistent IdentificationSame-function components have same accessible name across pages"Search" button on one page, "Find" on another
3.3.3Error SuggestionFor detected errors, suggest correction when possible/safe"Invalid email" with no example or format hint
3.3.4Error Prevention (Legal, Financial)Review step before irreversible submission; allow reversal or confirmationOne-click purchase with no review screen; no undo for account deletion
3.3.8Accessible Authentication Min. *(2.2 new)*Authentication must not require cognitive function test unless an alternative existsautocomplete="off" on login forms; paste disabled in password fields; transcription-only CAPTCHA

Level AAA (Advisory - Review and Report)

SCNameWhat to Check
2.2.6TimeoutsWarn about data loss from inactivity at start of session
3.1.3Unusual WordsJargon/idiom defined on first use
3.1.4AbbreviationsAbbreviations expanded on first use
3.1.5Reading LevelGeneral content <= Grade 8; see formula below
3.3.9Accessible Authentication Enhanced *(2.2 new)*No cognitive function test *at all* (removes the object-recognition exception)

Authentication Pattern Analysis (3.3.8 / 3.3.9)

Failing Patterns

PatternFailureSC
autocomplete="off" on type="password"Blocks password manager paste3.3.8
JavaScript onpaste="return false" on password inputBlocks manual paste3.3.8
CAPTCHA with only distorted text optionNo cognitive-free alternative3.3.8
Security question requiring exact recallPure memory test3.3.8
Re-entering full card number on the same session order flowRedundant cognitive work3.3.7

Passing Patterns

PatternWhy It Passes
<input type="password" autocomplete="current-password">Allows password manager autofill
Passkey/biometric as login alternativeNo cognitive function test
"Same as shipping address" checkbox on billing formEliminates redundant entry
CAPTCHA with audio alternativeProvides non-visual option
Email magic link with no password requiredRemoves cognitive test entirely

Redundant Entry Patterns (3.3.7)

Detection Checklist

In multi-step forms or wizards:

  1. Map all input fields across all steps
  2. Flag any field that requests information already collected in an earlier step
  3. Exception: security confirmation (password confirm) and data that can become stale (current vs. new address)

Common Violations

Step 1 CollectsStep 3 Also AsksViolation?
Email addressEmail for confirmationYes - unless security-essential
Full nameBilling nameYes - should pre-fill
Shipping addressBilling addressYes - should offer "same as shipping"
Date of birthDOB for age verificationYes - same session, same data
PasswordPassword confirmNo - security essential
Current addressNew address (for change)No - intentionally different

Plain Language Analysis

Sentence Analysis

Evaluate all instructional text, error messages, button labels, and tooltip copy.

MetricTargetHow to Measure
Sentence length<= 25 words; aim for 15-20Count words between periods/question marks
VoiceActive preferredFlag: "was submitted", "is required to be", "will be shown"
Double negativesZero toleranceFlag: "not unable", "not required to not", "not without"
JargonFlag or defineUnexpanded acronyms, technical terms, domain-specific language
Consistent terminologySame term for same conceptFlag: "sign in" + "log in" on same page/flow

Error Message Quality Rubric

Score each error message 0-3 on each dimension:

Dimension0123
IdentificationNo messageGeneric ("Error occurred")Names the fieldNames the field and exact problem
CauseAbsentVaguePartialFull explanation
SolutionAbsentVague hintGeneral guidanceSpecific example or format
ToneBlame ("You entered...wrong")NeutralNeutral + helpfulSupportive and constructive

Minimum score to pass: 2 on Identification, 1 on Solution.

Error Message Examples

RatingError Text
Fail"Invalid input."
Fail"You entered the wrong password."
Marginal"Password is incorrect."
Pass"The password doesn't match. Passwords are case-sensitive - check Caps Lock and try again."
Pass"Email must include @ - for example, name@company.com"

Reading Level Computation

Flesch-Kincaid Grade Level Formula

$$GL = 0.39 \times \frac{W}{S} + 11.8 \times \frac{Sy}{W} - 15.59$$

Where:

  • $W$ = total words
  • $S$ = total sentences
  • $Sy$ = total syllables

Syllable counting rules:

  • Count each vowel cluster (a, e, i, o, u) as one syllable
  • Subtract one syllable for silent trailing *e* ("made" = 1, "make" = 1)
  • Each word has at least 1 syllable

Grade Level Targets

Content TypeTarget GLRationale
Consumer web app (general)<= 8~50% of US adults read at Grade 8 or below
Government / public services<= 6Plain language mandate standard
Healthcare patient-facing<= 6Low health literacy is common
Legal terms of service<= 10 with plain-language summaryComplex by nature, but summary required
Technical developer docs<= 12Expert audience acceptable

Quick-Estimate Method (when full computation is impractical)

Flag content for reading level review when:

  • Any single sentence exceeds 35 words
  • More than 30% of words exceed 3 syllables in a paragraph
  • 3 or more Latin abbreviations in a single page ("i.e.", "e.g.", "et al.", "viz.")

Timeout Warning Requirements (2.2.1)

Detection Pattern

  1. Identify any page or application state with session persistence (authenticated areas, multi-step forms with temporary state)
  2. Check for: activity monitoring, session expiry timers, auto-logout functionality
  3. Verify warning mechanism exists when found

Compliant Implementation Pattern

// PASS: Session warning with extension option
const SESSION_TIMEOUT_MS = 15 * 60 * 1000; // 15 minutes
const WARNING_BEFORE_MS = 2 * 60 * 1000;   // Warn 2 minutes before

let warningShown = false;

sessionTimer = setTimeout(() => {
  if (!warningShown) {
    warningShown = true;
    showSessionWarning({
      message: "Your session will expire in 2 minutes due to inactivity.",
      extendLabel: "Stay signed in",
      logoutLabel: "Sign out now",
      onExtend: () => { resetTimer(); warningShown = false; },
      onLogout: () => endSession()
    });
  }
}, SESSION_TIMEOUT_MS - WARNING_BEFORE_MS);

ARIA for Session Warning

<div role="alertdialog" aria-modal="true" aria-labelledby="session-title" aria-describedby="session-desc">
  <h2 id="session-title">Session expiring</h2>
  <p id="session-desc">Your session will expire in <span id="session-countdown">2:00</span> minutes.</p>
  <button type="button" id="extend-btn" autofocus>Stay signed in</button>
  <button type="button">Sign out</button>
</div>

COGA Guidance Mapping

Making Content Usable - Key Objectives

From the W3C COGA "Making Content Usable for People with Cognitive and Learning Disabilities" guidance:

ObjectiveWhat to CheckSeverity
Use a clear and understandable writing styleReading level, plain language, sentence structureHigh
Avoid creating excessive cognitive loadStep count in forms, memory demands, auto-advancing contentHigh
Provide reminders and feedbackConfirmation messages, progress indicators ("Step 2 of 4"), success confirmationMedium
Help users avoid mistakes and recover from themValidation before submit, undo capability, confirm destructive actionsHigh
Make forms easy to fill outPre-populate known data, stepwise format, visible format hintsHigh
Use a consistent and predictable layoutNavigation location, interactive element behavior, icon consistencyMedium
Use familiar icons and symbolsStandard iconography, labeled icons, no icon-only navigationMedium
Avoid distorting a person's view of realityNo fake urgency timers, no dark patternsHigh

Severity Assessment for COGA Findings

Finding TypeSeverityRationale
3.3.8 violation (paste disabled / CAPTCHA only)CriticalCompletely blocks authentication for many users
3.3.7 violation (required re-entry of existing data)HighSignificant burden; causes abandonment
2.2.1 violation (no timeout warning)HighData loss and user confusion
Reading level > Grade 10 (non-technical)HighExcludes ~20% of adults
Error message with no correction guidanceHighUsers cannot self-recover
Poor error message tone (blame language)MediumAnxiety increase; may cause abandonment
Inconsistent terminology across same flowMediumConfusion; increased cognitive load
Missing progress indicator in multi-stepMediumUser cannot gauge effort remaining
Reading level Grade 9-10 (general content)MediumPartial barrier
Jargon without definitionLow-MediumDepends on density
Missing confirmation of successLowUncertainty about whether action completed

Integration Notes

When Used by web-accessibility-wizard

The wizard invokes cognitive-accessibility as part of Phase 3 (Forms and Input) and Phase 5 (Dynamic Content). Specifically:

  • Phase 3: delegates 3.3.7 and 3.3.8 detection + error message quality to this skill
  • Phase 5: delegates timeout warning detection to this skill

When Used Standalone

cognitive-accessibility agent loads this skill and applies the full Phase 2 + Phase 3 assessment independently. It accepts page URLs, component files, or plain text content blocks.

Handoffs from this Skill

  • Form validation specifics -> forms-specialist
  • ARIA state for error announcements -> aria-specialist
  • Live region for timeout warnings -> live-region-controller
  • WCAG criterion explanations -> wcag-guide

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.75%
按下载量换算392

Claude

31.51%
按下载量换算327

Cursor

18.48%
按下载量换算192

Gemini CLI

9.91%
按下载量换算103

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills