# mgifford/accessibility-skills architecture

> Architecture diagram of the GitHub repository mgifford/accessibility-skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mgifford/accessibility-skills
- Repository: https://github.com/mgifford/accessibility-skills

## Overview

This repository packages accessibility guidance for AI agents, with topic-specific skills as its primary user-facing product. Engineers and content teams install or reference a skill, apply its rules to accessibility work, and can consult role, perspective, and workflow material for context. Separate supporting capabilities include ARRM-derived role indexes, deterministic evaluation of saved responses, and a browser-based CLI audit. The README documents the skill and synchronization model; sampled scripts clarify role generation, evaluation inputs/outputs, and browser-audit behavior, but other content relationships are not inferred.

Main entry points: [`scripts/run-evals.mjs`](https://github.com/mgifford/accessibility-skills/blob/main/scripts/run-evals.mjs) (Response Evaluator), [`skills/cli-audit/scripts/cli-inspect.mjs`](https://github.com/mgifford/accessibility-skills/blob/main/skills/cli-audit/scripts/cli-inspect.mjs) (CLI Audit Inspector), [`skills`](https://github.com/mgifford/accessibility-skills/tree/main/skills) (Topic Skills), [`scripts/generate-role-indexes.js`](https://github.com/mgifford/accessibility-skills/blob/main/scripts/generate-role-indexes.js) (Role Index Generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guidance["Accessibility Guidance"]
  node_skills["Topic Skills"]
  node_general["General Guidance<br/>[SKILL.md]"]
  node_aiworkflows["AI Workflows"]
end

subgraph group_practice["Practice Context"]
  node_perspectives["User Perspectives"]
  node_workflows["Audit Workflows"]
  node_resources["Topic Resources"]
  node_roleguides["Role Guides"]
  node_arrm["ARRM Task Data<br/>[arrm-all-tasks.csv]"]
  node_roleindex["Role Index Generator"]
  node_roleoutput["Generated Role Indexes"]
end

subgraph group_evaluation["Evaluation"]
  node_evalmanifests["Evaluation Manifests"]
  node_responses["Saved Responses"]
  node_evalrunner["Response Evaluator<br/>[run-evals.mjs]"]
  node_evalreports["Evaluation Reports"]
end

subgraph group_audit["Browser Audit"]
  node_cli["CLI Audit Inspector<br/>[cli-inspect.mjs]"]
  node_browser["Playwright Browser"]
  node_axe["axe Accessibility Analyzer"]
  node_auditresult["Audit Results"]
end

node_agent(("AI Agent"))
node_team(("Accessibility Team"))
node_website["Target Website"]

node_agent -->|"uses guidance"| node_skills
node_agent -->|"references guidance"| node_general
node_skills -.->|"pairs with"| node_aiworkflows
node_team -->|"consults roles"| node_roleguides
node_team -.->|"consults perspectives"| node_perspectives
node_team -.->|"follows workflows"| node_workflows
node_team -.->|"consults topics"| node_resources
node_arrm -->|"provides task data"| node_roleindex
node_roleindex -->|"generates indexes"| node_roleoutput
node_team -->|"runs evaluations"| node_evalrunner
node_evalrunner -->|"reads manifests"| node_evalmanifests
node_evalrunner -->|"reads responses"| node_responses
node_evalrunner -->|"writes reports"| node_evalreports
node_team -->|"audits URL"| node_cli
node_cli -->|"launches browser"| node_browser
node_browser -->|"loads page"| node_website
node_cli -->|"runs analysis"| node_axe
node_cli -->|"prints report"| node_auditresult

click node_skills "https://github.com/mgifford/accessibility-skills/tree/main/skills"
click node_general "https://github.com/mgifford/accessibility-skills/blob/main/skills/ACCESSIBILITY-general/SKILL.md"
click node_aiworkflows "https://github.com/mgifford/accessibility-skills/tree/main/ai-workflows"
click node_perspectives "https://github.com/mgifford/accessibility-skills/tree/main/perspectives"
click node_workflows "https://github.com/mgifford/accessibility-skills/tree/main/workflows"
click node_resources "https://github.com/mgifford/accessibility-skills/tree/main/resources/by-topic"
click node_roleguides "https://github.com/mgifford/accessibility-skills/tree/main/roles"
click node_arrm "https://github.com/mgifford/accessibility-skills/blob/main/data/arrm/arrm-all-tasks.csv"
click node_roleindex "https://github.com/mgifford/accessibility-skills/blob/main/scripts/generate-role-indexes.js"
click node_roleoutput "https://github.com/mgifford/accessibility-skills/tree/main/roles"
click node_evalmanifests "https://github.com/mgifford/accessibility-skills/tree/main/evals"
click node_responses "https://github.com/mgifford/accessibility-skills/tree/main/responses"
click node_evalrunner "https://github.com/mgifford/accessibility-skills/blob/main/scripts/run-evals.mjs"
click node_evalreports "https://github.com/mgifford/accessibility-skills/tree/main/reports"
click node_cli "https://github.com/mgifford/accessibility-skills/blob/main/skills/cli-audit/scripts/cli-inspect.mjs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skills,node_general,node_aiworkflows toneBlue
class node_perspectives,node_workflows,node_resources,node_roleguides,node_arrm,node_roleindex,node_roleoutput toneAmber
class node_evalmanifests,node_responses,node_evalrunner,node_evalreports toneMint
class node_cli,node_browser,node_axe,node_auditresult toneRose
class node_agent,node_team,node_website toneIndigo
```

## Components

### Accessibility Guidance

- [Topic Skills](https://github.com/mgifford/accessibility-skills/tree/main/skills): `skills`
- [General Guidance](https://github.com/mgifford/accessibility-skills/blob/main/skills/ACCESSIBILITY-general/SKILL.md): `skills/ACCESSIBILITY-general/SKILL.md`
- [AI Workflows](https://github.com/mgifford/accessibility-skills/tree/main/ai-workflows): `ai-workflows`

### Practice Context

- [User Perspectives](https://github.com/mgifford/accessibility-skills/tree/main/perspectives): `perspectives`
- [Audit Workflows](https://github.com/mgifford/accessibility-skills/tree/main/workflows): `workflows`
- [Topic Resources](https://github.com/mgifford/accessibility-skills/tree/main/resources/by-topic): `resources/by-topic`
- [Role Guides](https://github.com/mgifford/accessibility-skills/tree/main/roles): `roles`
- [ARRM Task Data](https://github.com/mgifford/accessibility-skills/blob/main/data/arrm/arrm-all-tasks.csv): `data/arrm/arrm-all-tasks.csv`
- [Role Index Generator](https://github.com/mgifford/accessibility-skills/blob/main/scripts/generate-role-indexes.js): `scripts/generate-role-indexes.js`
- [Generated Role Indexes](https://github.com/mgifford/accessibility-skills/tree/main/roles): `roles`

### Evaluation

- [Evaluation Manifests](https://github.com/mgifford/accessibility-skills/tree/main/evals): `evals`
- [Saved Responses](https://github.com/mgifford/accessibility-skills/tree/main/responses): `responses`
- [Response Evaluator](https://github.com/mgifford/accessibility-skills/blob/main/scripts/run-evals.mjs): `scripts/run-evals.mjs`
- [Evaluation Reports](https://github.com/mgifford/accessibility-skills/tree/main/reports): `reports`

### Browser Audit

- [CLI Audit Inspector](https://github.com/mgifford/accessibility-skills/blob/main/skills/cli-audit/scripts/cli-inspect.mjs): `skills/cli-audit/scripts/cli-inspect.mjs`
- **Playwright Browser**
- **axe Accessibility Analyzer**
- **Audit Results**

### Other components

- **AI Agent**
- **Accessibility Team**
- **Target Website**

## Connections

- AI Agent → Topic Skills: uses guidance (evidence: `README.md`)
- AI Agent → General Guidance: references guidance (evidence: `README.md`)
- Topic Skills → AI Workflows: pairs with
- Accessibility Team → Role Guides: consults roles (evidence: `README.md`)
- Accessibility Team → User Perspectives: consults perspectives
- Accessibility Team → Audit Workflows: follows workflows
- Accessibility Team → Topic Resources: consults topics
- ARRM Task Data → Role Index Generator: provides task data (evidence: `scripts/generate-role-indexes.js`)
- Role Index Generator → Generated Role Indexes: generates indexes (evidence: `scripts/generate-role-indexes.js`)
- Accessibility Team → Response Evaluator: runs evaluations (evidence: `README.md`)
- Response Evaluator → Evaluation Manifests: reads manifests (evidence: `scripts/run-evals.mjs`)
- Response Evaluator → Saved Responses: reads responses (evidence: `scripts/run-evals.mjs`)
- Response Evaluator → Evaluation Reports: writes reports (evidence: `scripts/run-evals.mjs`)
- Accessibility Team → CLI Audit Inspector: audits URL (evidence: `skills/cli-audit/scripts/cli-inspect.mjs`)
- CLI Audit Inspector → Playwright Browser: launches browser (evidence: `skills/cli-audit/scripts/cli-inspect.mjs`)
- Playwright Browser → Target Website: loads page
- CLI Audit Inspector → axe Accessibility Analyzer: runs analysis (evidence: `skills/cli-audit/scripts/cli-inspect.mjs`)
- CLI Audit Inspector → Audit Results: prints report (evidence: `skills/cli-audit/scripts/cli-inspect.mjs`)
