Home / community-access / accessibility-agents · skills/kb-design-system/SKILL.md · GitHub

kb-design-system skillA

kb-design-system is agent-read markdown (skill) from community-access/accessibility-agents: Reference data, not a reviewer. Validate design system tokens for WCAG AA/AAA contrast. Compute color token contrast, focus ring validation (WCAG 2.4.13), motion tokens, and spacing for touch targets across frameworks..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

## Design System Accessibility Skill

This skill provides reference data for design token contrast validation, focus ring compliance, and spacing audits. Used by `design-system-auditor.agent.md`.

---

## WCAG Contrast Ratio - Computation Reference

### Step 1: Linearize sRGB Channel

For each channel `C` in `[0, 255]`:

```text
c = C / 255
c_lin = c / 12.92              if c <= 0.04045
c_lin = ((c + 0.055) / 1.055)^2.4   otherwise
```

### Step 2: Relative Luminance

```text
L = 0.2126 * R_lin + 0.7152 * G_lin + 0.0722 * B_lin
```

### Step 3: Contrast Ratio

```text
ratio = (L_lighter + 0.05) / (L_darker + 0.05)
```

### Quick JavaScript Implementation

```js
function relativeLuminance(hex) {
  const c = hex.replace('#', '').match(/.{2}/g)
    .map(h => parseInt(h, 16) / 255)
    .map(c => c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4));
  return 0.2126 * c[0] + 0.7152 * c[1] + 0.0722 * c[2];
}

function contrastRatio(hex1, hex2) {
  const L1 = relativeLuminance(hex1);
  const L2 = relativeLuminance(hex2);
  const lighter = Math.max(L1, L2);
  const darker = Math.min(L1, L2);
  return (lighter + 0.05) / (darker + 0.05);
}

// Example
…

Read the whole file at its exact version.

How to install

Latest version
mdr add community-access/accessibility-agents/kb-design-system@git:20260922.cd88753
Exact content
mdr add community-access/accessibility-agents/kb-design-system@sha256:47fc05a6d93ed5e9

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ytuqzkowaqgtkysb.svg)](https://markdownregistry.com/a/art_ytuqzkowaqgtkysb)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260922.cd88753 latest2026-09-22 cd88753 16,349 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (16349 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

community-access/accessibility-agents · 414 stars · license MIT · pushed 2026-09-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ytuqzkowaqgtkysb
GET https://markdownregistry.com/api/v1/resolve?ref=community-access/accessibility-agents/kb-design-system
GET https://markdownregistry.com/api/v1/blob/47fc05a6d93ed5e930cc9128d31b214bd45f6fe3c4425a88524f9bb16b74413f

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from community-access/accessibility-agents

AGENTS.md agents
community-access/accessibility-agents · AGENTS.md
git:20260922.cd88753 · audit A · 414 stars
CLAUDE.md claude
community-access/accessibility-agents · CLAUDE.md
git:20260922.cd88753 · audit B · 414 stars
a11y-core skill
community-access/accessibility-agents · skills/a11y-core/SKILL.md · Shared contract for the Accessibility Agents skills - dispatch, findings schema, report rules. Read by skills, never…
git:20260922.cd88753 · audit A · 414 stars
a11y-tool-builder skill
community-access/accessibility-agents · skills/a11y-tool-builder/SKILL.md · Build accessibility scanners, rule engines, parsers and report generators.
git:20260922.cd88753 · audit A · 414 stars
accessibility-lead skill
community-access/accessibility-agents · skills/accessibility-lead/SKILL.md · Web UI accessibility lead. Use before writing or changing HTML, JSX, TSX, Vue, Svelte, CSS or templates. Picks…
git:20260922.cd88753 · audit A · 414 stars
accessibility-regression-detector skill
community-access/accessibility-agents · skills/accessibility-regression-detector/SKILL.md · Compare audits across commits to find new, fixed and regressed issues.
git:20260922.cd88753 · audit A · 414 stars
accessibility-statement skill
community-access/accessibility-agents · skills/accessibility-statement/SKILL.md · Generate a W3C or EU model accessibility statement from audit results.
git:20260922.cd88753 · audit A · 414 stars
actions-manager skill
community-access/accessibility-agents · skills/actions-manager/SKILL.md · GitHub Actions: workflow runs, logs, re-runs and CI failure triage.
git:20260922.cd88753 · audit A · 414 stars
alt-text-headings skill
community-access/accessibility-agents · skills/alt-text-headings/SKILL.md · Alt text, SVGs, figures, charts, heading order, page titles and landmarks.
git:20260922.cd88753 · audit A · 414 stars
analytics skill
community-access/accessibility-agents · skills/analytics/SKILL.md · GitHub metrics: velocity, review turnaround, churn and bottlenecks.
git:20260922.cd88753 · audit A · 414 stars
aria-specialist skill
community-access/accessibility-agents · skills/aria-specialist/SKILL.md · ARIA roles, states and properties for custom widgets and dynamic content.
git:20260922.cd88753 · audit A · 414 stars
ci-accessibility skill
community-access/accessibility-agents · skills/ci-accessibility/SKILL.md · Set up and debug accessibility CI: baselines, SARIF and PR gating.
git:20260922.cd88753 · audit A · 414 stars

Every file in community-access/accessibility-agents

Browse by kind, by grade A, or by owner.