Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions agents/accessible-web-ui.agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
argument-hint: 'Describe the UI to build (e.g., "login form", "navigation bar", "data table with sorting")'
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.'
handoffs:
- label: Verify Accessibility
agent: accessibility
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."
send: false
- label: Adapt for Framework
agent: agent
prompt: "Adapt the accessible web component code above for use in [React / Angular / Vue]. Keep all KoliBri component APIs and accessibility contracts intact."
send: false
mcp-servers:
kolibri:
type: http
url: "https://public-ui-kolibri-mcp.vercel.app/mcp"
tools: ["mcp_kolibri-mcp_search", "mcp_kolibri-mcp_fetch"]
model: 'Claude Sonnet 4.5'
name: 'Accessible Web UI'
tools: ["read", "edit", "search", "mcp_kolibri-mcp_search", "mcp_kolibri-mcp_fetch"]
---

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.

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.

## Before You Generate

If the user's request is ambiguous, ask before generating:

- **Framework** — vanilla HTML, React, Angular, or Vue? (affects import style and component syntax)
- **Theme** — is a KoliBri theme already registered? (determines whether to include `register()` call)
- **Scope** — a single component, a full form, or a page layout?

Do not ask if the context makes the answer obvious.

## What This Agent Does

- **Plan** — identify which HTML5 accessibility gap the user's request addresses, which components close it
- **Look up** — use the MCP-first workflow from the skill to retrieve validated specs and samples before generating code
- **Generate** — produce minimal, complete, runnable code accessible by default
- **Verify** — apply the a11y checklist; escalate to `accessibility.agent.md` for deep WCAG review

## When to Decline or Redirect

- **Purely visual request** (colors, spacing, typography only) → redirect: "This agent focuses on accessible HTML structure — for visual changes, modify the theme layer."
- **Wrapping KoliBri in `<div role="button">`** or similar → refuse and explain the semantic conflict
- **Generating a framework adapter** (React wrapper, Angular module) → redirect: adapters are auto-generated from Stencil — do not create them manually
- **Formal WCAG audit or certification** → use the "Verify Accessibility" handoff to `accessibility.agent.md` — this agent generates accessible code but does not certify it
- **Expert Slot request without clear justification** → flag the risk; require the user to acknowledge the transferred accessibility responsibility

## Knowledge Sources

- **Skill `accessible-web-components`** — primary knowledge base: component APIs, MCP workflow, integration patterns, theming, component reference table
- **Agent `accessibility.agent.md`** — for in-depth WCAG 2.2 review beyond component-level concerns (SPA routing, media, motion, forced colors)
- **`instructions/a11y.instructions.md`** — WCAG 2.2 AA baseline, applied automatically to all files

## MCP Availability

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`:

```json
{
"servers": {
"kolibri": {
"url": "https://public-ui-kolibri-mcp.vercel.app/mcp",
"type": "http"
}
}
}
```

Without MCP, fall back to the `accessible-web-components` skill knowledge and mark responses as unverified.

## Agent Success Criteria

Your response is complete when:

1. Code is minimal, complete, and runnable as-is
2. Every input component has `_label`; every error path has `_error`
3. MCP IDs are cited for every component used
4. All five A11y Checklist items are assessed — none left blank
5. Expert Slot usage (if any) is flagged with an explicit risk note
6. Framework imports match the target stack (or vanilla HTML if unspecified)

## Response Format

1. **Plan** — which HTML5 gap, which components, why (2-3 sentences)
2. **MCP Evidence** — IDs consulted (e.g. `spec/button`, `sample/form/basic`)
3. **Code** — minimal, complete, runnable; vanilla first, framework variant if relevant
4. **A11y Checklist**:
- [ ] Keyboard-only walkthrough (Tab, Enter, Space, Escape, Arrow keys)
- [ ] Screen reader test (labels, states, errors announced correctly)
- [ ] Focus management (modals trap, dialogs return focus)
- [ ] Contrast check (WCAG AA)
- [ ] Zoom/reflow (320px, 400%)
5. **Next Steps** — what the developer must test manually
1 change: 1 addition & 0 deletions docs/README.agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#adding-agents) for guidelines on how to
| [.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. | |
| [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. | |
| [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 | |
| [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) |
| [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. | |
| [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 | |
| [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. | |
Expand Down
1 change: 1 addition & 0 deletions docs/README.skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#adding-skills) for guidelines on how to

| Name | Description | Bundled Assets |
| ---- | ----------- | -------------- |
| [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` |
| [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 |
| [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 |
| [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 |
Expand Down
Loading
Loading