Skip to content

Commit d8f6cb4

Browse files
committed
feat: add AI-assisted development section with agents, prompts, and instructions for AODA WCAG 2.2 compliance
1 parent 1516fed commit d8f6cb4

1 file changed

Lines changed: 42 additions & 4 deletions

File tree

README.md

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,33 @@ Scores are calculated using weighted impact severity:
443443
Site-wide scores aggregate per-page results with overall, lowest, highest, and
444444
median page scores.
445445

446+
## AI-Assisted Development
447+
448+
The repository includes Copilot agent customizations under `.github/` that encode AODA
449+
WCAG 2.2 domain knowledge for AI-assisted accessibility work.
450+
451+
### Agents
452+
453+
| File | Description |
454+
| --- | --- |
455+
| `.github/agents/a11y-detector.agent.md` | Detects AODA WCAG 2.2 violations through static code analysis and runtime scanning. Covers the top 10 React/Next.js violations, produces structured findings, and hands off to the Resolver agent. |
456+
| `.github/agents/a11y-resolver.agent.md` | Resolves AODA WCAG 2.2 violations with standards-compliant code fixes. Applies fixes in priority order (critical → serious → moderate → minor) and can hand back to the Detector for re-scanning. |
457+
458+
### Prompts
459+
460+
| File | Description |
461+
| --- | --- |
462+
| `.github/prompts/a11y-scan.prompt.md` | Runs an AODA WCAG 2.2 accessibility scan on a target URL or the full project via the Detector agent. Accepts URL and scope (page or site) as inputs. |
463+
| `.github/prompts/a11y-fix.prompt.md` | Fixes accessibility violations in the current file or project via the Resolver agent. Accepts file path and specific violation IDs as inputs. |
464+
465+
### Instructions
466+
467+
| File | Applies To | Description |
468+
| --- | --- | --- |
469+
| `.github/instructions/wcag22-rules.instructions.md` | `*.tsx, *.jsx, *.ts, *.html, *.css` | WCAG 2.2 Level AA compliance rules organized by POUR principles (Perceivable, Operable, Understandable, Robust) with React/Next.js-specific guidance. |
470+
| `.github/instructions/a11y-remediation.instructions.md` | `*.tsx, *.jsx, *.ts, *.html, *.css` | Remediation lookup table mapping violation IDs to WCAG success criteria and code fix patterns, including React hooks and Next.js component recipes. |
471+
| `.github/instructions/ado-workflow.instructions.md` | `**` | Required workflow for Azure DevOps work item tracking, Git branching (`feature/{id}-description`), commit message linking (`AB#{id}`), pull request creation, and post-merge branch cleanup. |
472+
446473
## Project Structure
447474

448475
```text
@@ -469,10 +496,21 @@ src/
469496
e2e/ # Playwright self-scan accessibility tests
470497
infra/ # Azure Bicep infrastructure
471498
action/ # GitHub Action definition
472-
.github/workflows/
473-
├── ci.yml # Lint, test, build on push/PR
474-
├── deploy.yml # Docker build + Azure deploy
475-
└── a11y-scan.yml # Scheduled SARIF accessibility scan
499+
.github/
500+
├── agents/
501+
│ ├── a11y-detector.agent.md # WCAG violation detection agent
502+
│ └── a11y-resolver.agent.md # WCAG violation fix agent
503+
├── prompts/
504+
│ ├── a11y-scan.prompt.md # Accessibility scan prompt
505+
│ └── a11y-fix.prompt.md # Accessibility fix prompt
506+
├── instructions/
507+
│ ├── wcag22-rules.instructions.md # WCAG 2.2 AA compliance rules
508+
│ ├── a11y-remediation.instructions.md # Remediation patterns and recipes
509+
│ └── ado-workflow.instructions.md # ADO work item and branching workflow
510+
└── workflows/
511+
├── ci.yml # Lint, test, build on push/PR
512+
├── deploy.yml # Docker build + Azure deploy
513+
└── a11y-scan.yml # Scheduled SARIF accessibility scan
476514
```
477515

478516
## License

0 commit comments

Comments
 (0)