跳到正文
cccskills
免费在 GitHub 公开

accessibility

Load for Blazor/MudBlazor UI changes involving forms, dialogs, focus, keyboard navigation, landmarks, ARIA, color contrast, RTL-safe styling, or WCAG 2.2 AA tests; not for backend-only changes.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(6)

  • SKILL.md4.1 KB
  • resources/blazor-mudblazor.md6.2 KB
  • resources/index.md1.0 KB
  • resources/research-sources.md3.5 KB
  • resources/verification.md3.7 KB
  • resources/web-app-checklist.md5.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

<!-- ABOUTME: Accessibility guardrail for project Blazor and MudBlazor UI changes. --> <!-- ABOUTME: Routes agents to local WCAG 2.2 AA rules, implementation patterns, and verification evidence. -->

Must-Read Docs

Top 5 Invariants

  1. Prefer native semantic HTML and MudBlazor's native control output; add ARIA only when semantics are missing, and keep each control's accessible name, role, state, value, and visible-label text accurate.
  2. Every routable page has a descriptive PageTitle, exactly one project-required h1, sequential headings, and logical DOM order while relying on MainLayout for skip navigation, landmarks, live regions, direction, and navigation focus.
  3. Every action is keyboard operable with its native or WAI-ARIA pattern, uses no positive tabindex, keeps focus visible and unobscured, and restores focus after dialogs or drawers through IAccessibilityFocusService.
  4. Every form control has a programmatic label and connected help/error text, while dynamic status is announced once with polite or assertive urgency only when focus does not already convey the change.
  5. Images, color, contrast, motion, pointer targets, dragging alternatives, reflow, zoom, forced colors, and RTL logical properties satisfy docs/internal/ACCESSIBILITY.md and receive risk-proportionate rendered and manual verification.

Top 5 Anti-Patterns

  1. Simulated native control: A clickable div, span, or card recreates button or link semantics and leaves keyboard behavior incomplete.
  2. ARIA guesswork: Redundant, unsupported, or stale roles and aria-* values misrepresent the rendered interface to assistive technology.
  3. Component-name trust: Assuming MudBlazor is accessible without inspecting its rendered DOM misses missing names, descriptions, states, or version-specific behavior.
  4. Focus and announcement noise: Moving focus and announcing the same update, or using assertive live regions for routine status, creates duplicate or disruptive output.
  5. Automation-as-certification: Treating architecture tests, bUnit assertions, or an automated scanner as WCAG proof leaves keyboard, zoom, visual, and assistive-technology failures undiscovered.

Minimal Examples

<PageTitle>Event details</PageTitle>
<MudText Typo="Typo.h4" HtmlTag="h1">Event details</MudText>

<MudIconButton Icon="@Icons.Material.Filled.Delete"
               aria-label="Delete event"
               OnClick="DeleteAsync" />
await Focus.SaveFocusAsync();
try
{
    var options = new DialogOptions { CloseOnEscapeKey = true };
    var dialog = await Dialogs.ShowAsync<DeleteDialog>("Delete event", options);
    await dialog.Result;
}
finally
{
    await Focus.RestoreFocusAsync("#delete-event-trigger");
}

Verification Hooks

  • dotnet test --project tests/Event.Architecture.Tests/Event.Architecture.Tests.csproj --configuration Release --verbosity quiet -- --treenode-filter "/*/*/AccessibilityConventionTests/*" --minimum-expected-tests 1 --no-progress --maximum-parallel-tests 1
  • dotnet test --project tests/Explore.Blazor.Client.Tests/Explore.Blazor.Client.Tests.csproj --configuration Release --verbosity quiet
  • dotnet build --configuration Release --verbosity quiet
  • git diff --check -- .agents/skills/accessibility
  • Manual: complete the risk-based keyboard, zoom/reflow, theme, RTL, motion, browser accessibility-tree, and screen-reader checks in verification.md.

Related Skills

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Load when a task asks to research, verify, compare, or look up framework/package behavior, release notes, standards, RFCs, CVEs, or unfamiliar APIs; use repository evidence first, then official docs, and not for codebase navigation alone.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月19日 更新

aspire

免费

Load for Aspire AppHost work: start/stop/wait resources, inspect dashboard/logs/traces, add integrations/resources, rebuild a service, run isolated worktrees, or diagnose Aspire orchestration; not for plain dotnet apps, container-only deployments, or cloud deployment.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月19日 更新

Load for authentication or authorization changes involving BFF cookies/tokens, JWT validation, claims/user ID extraction, policies, handler access checks, impersonation, or 401/403 bugs; not for UI affordance gating alone.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月19日 更新

Load for Blazor BFF server work involving YARP proxy routes, cookie sessions, access-token forwarding/refresh, downstream API calls, BFF handlers, or browser-to-API auth failures; not for client component rendering or API JWT validation alone.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月19日 更新

Load when editing Blazor `.razor.css`, scoped selectors, `::deep`, BEM class names, RTL/logical CSS properties, or styling nested MudBlazor components; not for global design tokens or non-Blazor CSS.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月19日 更新

Load for Blazor/MudBlazor component or page changes involving render modes, dialogs, parameters/events, HAL-gated actions, generated API clients or generated record consumption, theming, or component tests; add accessibility or CSS-isolation only when touched.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月19日 更新

查看 islamu-ngo 的全部技能

报告此技能的问题