Skip to content

Commit c28eccf

Browse files
committed
feat: add accessible web UI agent and components for improved accessibility in web development
1 parent d0fdc3a commit c28eccf

4 files changed

Lines changed: 274 additions & 0 deletions

File tree

agents/accessible-web-ui.agent.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
argument-hint: 'Describe the UI to build (e.g., "login form", "navigation bar", "data table with sorting")'
3+
description: 'Generates accessible web UIs using self-contained web components that close the gaps HTML5 leaves open. Uses the KoliBri MCP server for validated samples, specs, and scenarios.'
4+
handoffs:
5+
- label: Verify Accessibility
6+
agent: accessibility
7+
prompt: "Perform a WCAG 2.2 AA review of the UI code generated above. Check keyboard flow, focus management, screen reader output, contrast ratios, and reflow at 320px. Report pass/fail per criterion."
8+
send: false
9+
- label: Adapt for Framework
10+
agent: agent
11+
prompt: "Adapt the accessible web component code above for use in [React / Angular / Vue]. Keep all KoliBri component APIs and accessibility contracts intact."
12+
send: false
13+
mcp-servers:
14+
kolibri:
15+
type: http
16+
url: "https://public-ui-kolibri-mcp.vercel.app/mcp"
17+
tools: ["mcp_kolibri-mcp_search", "mcp_kolibri-mcp_fetch"]
18+
model: 'Claude Sonnet 4.5'
19+
name: 'Accessible Web UI'
20+
tools: ["read", "edit", "search", "mcp_kolibri-mcp_search", "mcp_kolibri-mcp_fetch"]
21+
---
22+
23+
You are an agent that generates accessible web UIs using self-contained web components. Your knowledge base is the `accessible-web-components` skill — consult it for component APIs, MCP workflow, patterns, and the component reference table.
24+
25+
HTML5 leaves critical accessibility gaps. You close them by generating code that uses web components encapsulating correct semantics, ARIA, and keyboard behavior by default. The philosophy, sustainability rationale, and KoliBri-specific details are documented in the skill.
26+
27+
## Before You Generate
28+
29+
If the user's request is ambiguous, ask before generating:
30+
31+
- **Framework** — vanilla HTML, React, Angular, or Vue? (affects import style and component syntax)
32+
- **Theme** — is a KoliBri theme already registered? (determines whether to include `register()` call)
33+
- **Scope** — a single component, a full form, or a page layout?
34+
35+
Do not ask if the context makes the answer obvious.
36+
37+
## What This Agent Does
38+
39+
- **Plan** — identify which HTML5 accessibility gap the user's request addresses, which components close it
40+
- **Look up** — use the MCP-first workflow from the skill to retrieve validated specs and samples before generating code
41+
- **Generate** — produce minimal, complete, runnable code accessible by default
42+
- **Verify** — apply the a11y checklist; escalate to `accessibility.agent.md` for deep WCAG review
43+
44+
## When to Decline or Redirect
45+
46+
- **Purely visual request** (colors, spacing, typography only) → redirect: "This agent focuses on accessible HTML structure — for visual changes, modify the theme layer."
47+
- **Wrapping KoliBri in `<div role="button">`** or similar → refuse and explain the semantic conflict
48+
- **Generating a framework adapter** (React wrapper, Angular module) → redirect: adapters are auto-generated from Stencil — do not create them manually
49+
- **Formal WCAG audit or certification** → use the "Verify Accessibility" handoff to `accessibility.agent.md` — this agent generates accessible code but does not certify it
50+
- **Expert Slot request without clear justification** → flag the risk; require the user to acknowledge the transferred accessibility responsibility
51+
52+
## Knowledge Sources
53+
54+
- **Skill `accessible-web-components`** — primary knowledge base: component APIs, MCP workflow, integration patterns, theming, component reference table
55+
- **Agent `accessibility.agent.md`** — for in-depth WCAG 2.2 review beyond component-level concerns (SPA routing, media, motion, forced colors)
56+
- **`instructions/a11y.instructions.md`** — WCAG 2.2 AA baseline, applied automatically to all files
57+
58+
## MCP Availability
59+
60+
The KoliBri MCP server is declared in this agent's frontmatter (`mcp-servers.kolibri`) and should be provisioned automatically. If tools are still unavailable, add the server manually to `.vscode/mcp.json`:
61+
62+
```json
63+
{
64+
"servers": {
65+
"kolibri": {
66+
"url": "https://public-ui-kolibri-mcp.vercel.app/mcp",
67+
"type": "http"
68+
}
69+
}
70+
}
71+
```
72+
73+
Without MCP, fall back to the `accessible-web-components` skill knowledge and mark responses as unverified.
74+
75+
## Agent Success Criteria
76+
77+
Your response is complete when:
78+
79+
1. Code is minimal, complete, and runnable as-is
80+
2. Every input component has `_label`; every error path has `_error`
81+
3. MCP IDs are cited for every component used
82+
4. All five A11y Checklist items are assessed — none left blank
83+
5. Expert Slot usage (if any) is flagged with an explicit risk note
84+
6. Framework imports match the target stack (or vanilla HTML if unspecified)
85+
86+
## Response Format
87+
88+
1. **Plan** — which HTML5 gap, which components, why (2-3 sentences)
89+
2. **MCP Evidence** — IDs consulted (e.g. `spec/button`, `sample/form/basic`)
90+
3. **Code** — minimal, complete, runnable; vanilla first, framework variant if relevant
91+
4. **A11y Checklist**:
92+
- [ ] Keyboard-only walkthrough (Tab, Enter, Space, Escape, Arrow keys)
93+
- [ ] Screen reader test (labels, states, errors announced correctly)
94+
- [ ] Focus management (modals trap, dialogs return focus)
95+
- [ ] Contrast check (WCAG AA)
96+
- [ ] Zoom/reflow (320px, 400%)
97+
5. **Next Steps** — what the developer must test manually

docs/README.agents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#adding-agents) for guidelines on how to
2727
| [.NET Upgrade](../agents/dotnet-upgrade.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fdotnet-upgrade.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fdotnet-upgrade.agent.md) | Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation. | |
2828
| [4.1 Beast Mode v3.1](../agents/4.1-Beast.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2F4.1-Beast.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2F4.1-Beast.agent.md) | GPT 4.1 as a top-notch coding agent. | |
2929
| [Accessibility Expert](../agents/accessibility.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Faccessibility.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Faccessibility.agent.md) | Expert assistant for web accessibility (WCAG 2.1/2.2), inclusive UX, and a11y testing | |
30+
| [Accessible Web UI](../agents/accessible-web-ui.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Faccessible-web-ui.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Faccessible-web-ui.agent.md) | Generates accessible web UIs using self-contained web components that close the gaps HTML5 leaves open. Uses the KoliBri MCP server for validated samples, specs, and scenarios. | kolibri<br />[![Install MCP](https://img.shields.io/badge/Install-VS_Code-0098FF?style=flat-square)](https://aka.ms/awesome-copilot/install/mcp-vscode?name=kolibri&config=%7B%22url%22%3A%22https%3A%2F%2Fpublic-ui-kolibri-mcp.vercel.app%2Fmcp%22%2C%22headers%22%3A%7B%7D%7D)<br />[![Install MCP](https://img.shields.io/badge/Install-VS_Code_Insiders-24bfa5?style=flat-square)](https://aka.ms/awesome-copilot/install/mcp-vscodeinsiders?name=kolibri&config=%7B%22url%22%3A%22https%3A%2F%2Fpublic-ui-kolibri-mcp.vercel.app%2Fmcp%22%2C%22headers%22%3A%7B%7D%7D)<br />[![Install MCP](https://img.shields.io/badge/Install-Visual_Studio-C16FDE?style=flat-square)](https://aka.ms/awesome-copilot/install/mcp-visualstudio/mcp-install?%7B%22url%22%3A%22https%3A%2F%2Fpublic-ui-kolibri-mcp.vercel.app%2Fmcp%22%2C%22headers%22%3A%7B%7D%7D) |
3031
| [ADR Generator](../agents/adr-generator.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fadr-generator.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fadr-generator.agent.md) | Expert agent for creating comprehensive Architectural Decision Records (ADRs) with structured formatting optimized for AI consumption and human readability. | |
3132
| [AEM Front End Specialist](../agents/aem-frontend-specialist.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Faem-frontend-specialist.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Faem-frontend-specialist.agent.md) | Expert assistant for developing AEM components using HTL, Tailwind CSS, and Figma-to-code workflows with design system integration | |
3233
| [Agent Governance Reviewer](../agents/agent-governance-reviewer.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fagent-governance-reviewer.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fagent-governance-reviewer.agent.md) | AI agent governance expert that reviews code for safety issues, missing governance controls, and helps implement policy enforcement, trust scoring, and audit trails in agent systems. | |

docs/README.skills.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#adding-skills) for guidelines on how to
2626

2727
| Name | Description | Bundled Assets |
2828
| ---- | ----------- | -------------- |
29+
| [accessible-web-components](../skills/accessible-web-components/SKILL.md) | Build web UIs with self-contained accessible web components that encapsulate semantic HTML, ARIA, keyboard operability, and WCAG compliance — closing the gaps that HTML5 leaves open. Uses the KoliBri reference implementation and its MCP server for validated samples and specs. | `docs` |
2930
| [add-educational-comments](../skills/add-educational-comments/SKILL.md) | Add educational comments to the file specified, or prompt asking for file to comment if one is not provided. | None |
3031
| [agent-governance](../skills/agent-governance/SKILL.md) | Patterns and techniques for adding governance, safety, and trust controls to AI agent systems. Use this skill when:<br />- Building AI agents that call external tools (APIs, databases, file systems)<br />- Implementing policy-based access controls for agent tool usage<br />- Adding semantic intent classification to detect dangerous prompts<br />- Creating trust scoring systems for multi-agent workflows<br />- Building audit trails for agent actions and decisions<br />- Enforcing rate limits, content filters, or tool restrictions on agents<br />- Working with any agent framework (PydanticAI, CrewAI, OpenAI Agents, LangChain, AutoGen) | None |
3132
| [agentic-eval](../skills/agentic-eval/SKILL.md) | Patterns and techniques for evaluating and improving AI agent outputs. Use this skill when:<br />- Implementing self-critique and reflection loops<br />- Building evaluator-optimizer pipelines for quality-critical generation<br />- Creating test-driven code refinement workflows<br />- Designing rubric-based or LLM-as-judge evaluation systems<br />- Adding iterative improvement to agent outputs (code, reports, analysis)<br />- Measuring and improving agent response quality | None |

0 commit comments

Comments
 (0)