Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问许可证需确认审计通过

gsp-accessibility普惠制无障碍

Agent Skill

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

总安装

343

周安装

14

GitHub Stars

29

下载量

110
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:gsp-accessibility(普惠制无障碍)
来源仓库:https://github.com/jubscodes/get-shit-pretty
仓库路径:skills/gsp-accessibility
安装命令:
npx skills add https://github.com/jubscodes/get-shit-pretty --skill gsp-accessibility
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jubscodes/get-shit-pretty --skill gsp-accessibility

简介

该技能用于网页与前端应用的无障碍访问检查与改进。

  • 适用于语义标签、键盘导航与对比度合规性审计。
  • 可在多种宿主环境中调用,输出可操作的修复建议。
  • 安装方式:npx skills add https://github.com/jubscodes/get-shit-pretty --skill gsp-accessibility。
  • 需结合浏览器实际渲染效果验证,避免仅依赖文本分析。

SKILL.md

Follows the composable pattern: deterministic modes, predictable output paths, filesystem as integration layer.

For full design audits, code audits, or statement generation, use /gsp-accessibility-audit.

Input: Mode flag + optional arguments Output: Display output (check mode) or audit chunk (token mode) Agent: None — this skill runs entirely inline

Read $ARGUMENTS to determine the mode:

InputModeOutput
--check #FG #BGQuick contrast checkDisplay only
--tokensToken-only: contrast pairs, sizing, spacingcritique/accessibility-token-audit.md
(no args)Mode pickerPrompt user

Additional flag: --level AAA overrides conformance level (default: AA).

Step 2: Route by mode

No args → mode picker

If no arguments provided, use AskUserQuestion:

"What would you like to do?"

  • Quick contrast check — "check specific color pairs for WCAG contrast compliance"
  • Token audit — "audit brand .yml tokens for WCAG compliance"
  • Full design/code audit — "run /gsp-accessibility-audit for full WCAG audits, code audits, or statement generation"

If user picks "Full design/code audit", tell them to run /gsp-accessibility-audit and stop.

Quick check mode (--check)

If args contain --check, extract the two hex color values and skip to Step 3.

Token audit mode (--tokens)

Skip to Step 4.

Step 3: Quick check mode (--check #FG #BG)

Calculate WCAG 2.x contrast ratio between the two hex colors.

Contrast ratio formula

Convert hex to relative luminance (sRGB linearization), then: ratio = (L_lighter + 0.05) / (L_darker + 0.05)

Display results

  /gsp-accessibility — contrast check
  ═══════════════════════════════════════

  Foreground: {FG_HEX}   Background: {BG_HEX}

  WCAG 2.x Contrast Ratio: {ratio}:1

  │ Use Case           │ Required │ Result │
  │─────────────────────│──────────│────────│
  │ Normal text (AA)    │ 4.5:1    │ PASS/FAIL │
  │ Normal text (AAA)   │ 7:1      │ PASS/FAIL │
  │ Large text (AA)     │ 3:1      │ PASS/FAIL │
  │ Large text (AAA)    │ 4.5:1    │ PASS/FAIL │
  │ UI components (AA)  │ 3:1      │ PASS/FAIL │

  ─────────────────────────────────────

Stop here. No files written. No AskUserQuestion routing.

Step 4: Token audit mode (--tokens)

Resolve context

Resolve project from .design/projects/ (one → use it, multiple → ask). Set PROJECT_PATH.

Read {PROJECT_PATH}/config.json to get:

  • accessibility_level — override conformance level (if not set via --level flag)

Read {PROJECT_PATH}/brand.ref to resolve brand path:

  • Set BRAND_PATH = .design/branding/{brand}

Determine final conformance level:

  1. --level flag (highest priority)
  2. accessibility_level from config.json
  3. Default: "WCAG 2.2 AA"

Read token and palette files

Read from the brand/project:

  • {BRAND_PATH}/identity/palettes.json
  • {BRAND_PATH}/identity/color-system.md
  • {BRAND_PATH}/patterns/*.yml (brand style preset)
  • {BRAND_PATH}/identity/typography.md

If files don't exist, report which are missing and stop.

Token checks

4.1 Contrast Pairs:

  • Extract every semantic foreground/background pair from the brand .yml preset
  • Calculate WCAG 2.x contrast ratio for each pair
  • Flag failures: normal text < 4.5:1, large text < 3:1, non-text < 3:1

4.2 Interactive States:

  • Check hover, active, focus, disabled state color pairs
  • Verify disabled states still meet 3:1 non-text contrast

4.3 Focus Ring:

  • Find focus ring token — check >= 3:1 contrast against adjacent backgrounds
  • Verify ring width >= 2px

4.4 Dark Mode:

  • If dark mode tokens exist, re-verify all contrast pairs
  • Dark mode is a separate verification pass, not assumed from light mode

4.5 Touch Targets:

  • Check button/link sizing tokens >= 44px for primary actions, >= 24px minimum
  • Check spacing tokens between adjacent interactive elements

4.6 Typography Minimums:

  • Body text >= 16px (1rem)
  • Caption/small text >= 12px
  • Line-height >= 1.5 for body text

Write output

Write {PROJECT_PATH}/critique/accessibility-token-audit.md as a foundation chunk:

# Accessibility Token Audit

> Phase: critique | Project: {name} | Generated: {DATE}

---

## Summary

{pass_count} pass | {fail_count} fail | {warn_count} warnings

Conformance target: {level}

## Contrast Pairs

| Pair | Foreground | Background | Ratio | Required | Result |
|------|-----------|------------|-------|----------|--------|
| {semantic name} | {fg hex} | {bg hex} | {ratio}:1 | {threshold}:1 | PASS/FAIL |

## Focus Ring
...

## Dark Mode
...

## Touch Targets
...

## Typography
...

## Recommendations

{Prioritized list of fixes}

Completion

Display result and use AskUserQuestion:

  • Run full design audit — "run /gsp-accessibility-audit for full WCAG design audit"
  • Run code audit — "run /gsp-accessibility-audit --code to check the codebase"
  • Done — "that's all for now"

Step 5: Update STATE.md

If within a project and files were written:

  • Read {PROJECT_PATH}/STATE.md
  • Note accessibility audit completion in the relevant phase section
  • Do not change phase status — accessibility is a supplementary check

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.86%
按下载量换算42

Claude

30.05%
按下载量换算33

Cursor

17.95%
按下载量换算20

Gemini CLI

9.84%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills