Communitygithub.com

アクセシビリティ自動化エキスパート

自動テスト、キーボードナビゲーション、スクリーンリーダー対応、フォーカス管理により、WCAG 2.2 AA/AAA準拠を実装・徹底します。

アクセシビリティ自動化エキスパート とは?

このスキルは、WCAG 2.2 AA/AAA準拠を実現するために、自動テスト、キーボードナビゲーション、ARIAパターン、スクリーンリーダー最適化、フォーカス管理を包括的にサポートします。主な使用トリガーは、アクセシビリティ監査の失敗、WCAG要件、キーボード操作の不具合、スクリーンリーダーの未対応、axe-core違反、モーダル/ダイアログのフォーカストラップなどです。対応プラットフォームは、axe-core、Lighthouse、jest-axe、Playwright axeなどの自動テストツールに加え、VoiceOver、NVDA、TalkBackなどのスクリーンリーダー実機テストまでカバーします。CI/CDパイプラインへのゲート統合、ReactやTypeScriptを使ったフォーカス管理やライブリージョンの実装パターンも提供し、開発者がアクセシブルなWebアプリケーションを効率的に構築できるようにします。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/accessibility-automation-expert

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

アクセシビリティ自動化エキスパート は何をしますか?

自動テスト、キーボードナビゲーション、ARIAパターン、スクリーンリーダー最適化、フォーカス管理を通じて、WCAG 2.2 AA/AAA準拠を実装・徹底します。

アクティベーショントリガー

以下の場合にアクティブ化: アクセシビリティ監査での障害、WCAG準拠要件、キーボードナビゲーションの破損、スクリーンリーダーがコンテンツを読み上げない、axe-core違反、モーダル/ダイアログのフォーカストラップ、aria-*属性に関する質問、スキップナビゲーションリンク。

対象外: 設計レベルのアクセシビリティレビュー(色の選択、レイアウトの決定) — その場合はdesign-accessibility-auditorを使用。純粋な色コントラストチェック — その場合はcss-in-js-architect(OKLCHを使用)を使用。

クイックスタート

  1. axe-coreを実行 -- npx @axe-core/cli http://localhost:3000 または @axe-core/react を開発モードで統合し、コンソール警告を表示。
  2. 重大な違反から修正 -- 代替テキストの欠落、フォームラベルの欠落、コントラスト不足、ランドマークの欠落。
  3. キーボードナビゲーションを実装 -- すべてのインタラクティブ要素はTab、Enter、Space、Escape、および矢印キーで到達・操作可能でなければなりません。
  4. フォーカス管理を追加 -- モーダル内でフォーカスをトラップし、閉じる際にフォーカスを復元し、ルート変更時はフォーカスを管理。
  5. スクリーンリーダーでテスト -- VoiceOver(macOS)、NVDA(Windows)、TalkBack(Android)で実際に検証。

コア機能

ドメインテクノロジー主要パターン
自動テストaxe-core, Lighthouse, jest-axe, Playwright axeCI/CDアクセシビリティゲート
キーボードナビゲーションtabindex, onKeyDown, ロービングタブインデックス矢印キーナビゲーション, フォーカスグループ
スクリーンリーダーARIAロール, ライブリージョン, aria-label読み上げ, 状態変更, 説明
フォーカス管理focus-visible, フォーカストラップ, inert属性モーダルフォーカスロック, スキップリンク, ルート変更時のフォーカス
セマンティックHTML<main>, <nav>, <article>, <aside>ランドマーク, 見出し階層, リスト
フォーム<label>, aria-describedby, aria-invalidエラー通知, 必須フィールド, フィールドセット

アーキテクチャパターン

パターン1: CIでの自動axe-core

// e2e/accessibility.spec.ts (Playwright + axe-core)
import { test, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';

const pages = ['/', '/products', '/checkout', '/account'];

for (const path of pages) {
  test(`${path} has no accessibility violations`, async ({ page }) => {
    await page.goto(path);
    await page.waitForLoadState('networkidle');

    const results = await new AxeBuilder({ page })
      .withTags(['wcag2a', 'wcag2aa', 'wcag22aa'])  // WCAG 2.2 AA
      .analyze();

    expect(results.violations).toEqual([]);
  });
}
// Dev mode: axe-core in React (shows violations in console)
// app/layout.tsx
if (process.env.NODE_ENV === 'development') {
  import('@axe-core/react').then((axe) => {
    axe.default(React, ReactDOM, 1000);
  });
}

パターン2: モーダルのフォーカス管理

import { useEffect, useRef, useCallback } from 'react';

function useFocusTrap(isOpen: boolean) {
  const containerRef = useRef<HTMLDivElement>(null);
  const previousFocusRef = useRef<HTMLElement | null>(null);

  useEffect(() => {
    if (!isOpen) return;

    // 現在のフォーカスを保存して後で復元
    previousFocusRef.current = document.activeElement as HTMLElement;

    // 最初のフォーカス可能要素にフォーカス
    const container = containerRef.current;
    if (!container) return;

    const focusable = container.querySelectorAll<HTMLElement>(
      'a[href], button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])'
    );
    focusable[0]?.focus();

    // コンテナ内でフォーカスをトラップ
    const handleKeyDown = (e: KeyboardEvent) => {
      if (e.key !== 'Tab') return;
      const first = focusable[0];
      const last = focusable[focusable.length - 1];

      if (e.shiftKey && document.activeElement === first) {
        e.preventDefault();
        last?.focus();
      } else if (!e.shiftKey && document.activeElement === last) {
        e.preventDefault();
        first?.focus();
      }
    };

    container.addEventListener('keydown', handleKeyDown);

    // 背景コンテンツをinertに
    const mainContent = document.querySelector('main');
    mainContent?.setAttribute('inert', '');

    return () => {
      container.removeEventListener('keydown', handleKeyDown);
      mainContent?.removeAttribute('inert');
      previousFocusRef.current?.focus(); // フォーカスを復元
    };
  }, [isOpen]);

  return containerRef;
}

パターン3: 動的コンテンツ用のARIAライブリージョン

// フォームエラー、ローディング状態、更新をスクリーンリーダーに通知
function useAnnounce() {
  const announce = useCallback((message: string, priority: 'polite' | 'assertive' = 'polite') => {
    const el = document.getElementById(`aria-live-${priority}`);
    if (el) {
      el.textContent = '';  // 再読み上げをトリガーするために一度クリア
      requestAnimationFrame(() => { el.textContent = message; });
    }
  }, []);

  return announce;
}

// レイアウトに一度マウント:
function AriaLiveRegions() {
  return (
    <>
      <div id="aria-live-polite" aria-live="polite" aria-atomic="true" className="sr-only" />
      <div id="aria-live-assertive" aria-live="assertive" aria-atomic="true" className="sr-only" />
    </>
  );
}
  ┌─ アクセシビリティテストのピラミッド ──────────────┐
  │                                                     │
  │          ▲  手動スクリーンリーダーテスト            │
  │         ╱ ╲  (VoiceOver, NVDA — 四半期ごと)       │
  │        ╱───╲                                        │
  │       ╱     ╲  Playwright + axe-core E2E           │
  │      ╱  E2E  ╲  (全ページ, CIゲート)               │
  │     ╱─────────╲                                     │
  │    ╱           ╲  jest-axe コンポーネントテスト     │
  │   ╱  コンポー  ╲  (インタラクティブコンポーネントごと)│
  │  ╱───────────────╲                                  │
  │ ╱                 ╲  ESLint jsx-a11y                │
  │╱   静的リント     ╲  (すべてのコミットで)           │
  │╲___________________╱                                │
  └─────────────────────────────────────────────────────┘

アンチパターン

  1. buttonの代わりにonClick付きのdiv -- divにはキーボードインタラクション、ロール、フォーカスがありません。セマンティックな<button>または<a>要素を使用してください。どうしてもdivを使用する必要がある場合は、role="button"、tabindex="0"、Enter/Space用のonKeyDownを追加してください。
  2. あらゆる要素にaria-label -- 過剰なラベリングはスクリーンリーダーユーザーにノイズをもたらします。可能な限り表示テキストラベルを優先し、aria-labelは表示テキストが不可能な場合にのみ使用してください。
  3. フォーカスアウトラインの非表示 -- 代替なしのoutline: noneはキーボードナビゲーションを見えなくします。キーボード専用(マウスクリック時には表示されない)のフォーカスインジケーターには:focus-visibleを使用してください。
  4. スキップナビゲーションリンクの欠落 -- キーボードユーザーはすべてのページでナビゲーション全体をタブ移動する必要があります。最初のフォーカス可能要素として<a href="#main" class="sr-only focus:not-sr-only">メインコンテンツへスキップ</a>を追加してください。
  5. ライブリージョンなしのトースト通知 -- スクリーンリーダーは動的に追加されたトーストを検出できません。それらを通知するにはaria-live="polite"リージョンを使用してください。

品質チェックリスト

  • axe-core CIゲートが全ページで障害ゼロで合格
  • eslint-plugin-jsx-a11yが有効で警告なし
  • すべての画像に説明的なaltテキストがある(または装飾画像の場合はalt="")
  • すべてのフォーム入力に関連付けられた<label>要素がある(プレースホルダーテキストのみではない)
  • 見出し階層が順序正しい(h1 > h2 > h3、飛ばしなし)
  • ページランドマークが存在する: <main>, <nav>, <header>, <footer>
  • スキップナビゲーションリンクが最初のフォーカス可能要素である
  • すべてのインタラクティブ要素にフォーカスが表示される(:focus-visibleスタイルが定義されている)
  • モーダルがフォーカスをトラップし、閉じる際にフォーカスを復元する
  • 動的コンテンツの変更がaria-liveリージョンを介して通知される
  • 色のコントラスト比がWCAG AAに適合(標準テキスト4.5:1、大テキスト3:1)
  • すべての機能がキーボードのみで操作可能(Tab、Enter、Space、Escape、矢印キー)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

curiositech/windags-skills

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

curiositech/windags-skills

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

curiositech/windags-skills

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

curiositech/windags-skills

Time-blind friendly planning, executive function support, and daily structure for ADHD brains. Specializes in realistic time estimation, dopamine-aware task design, and building systems that actually work for neurodivergent minds.

curiositech/windags-skills

Designs digital experiences for ADHD brains using neuroscience research and UX principles. Expert in reducing cognitive load, time blindness solutions, dopamine-driven engagement, and compassionate design patterns. Activate on 'ADHD design', 'cognitive load', 'accessibility', 'neurodivergent UX', 'time blindness', 'dopamine-driven', 'executive function'. NOT for general accessibility (WCAG only), neurotypical UX design, or simple UI styling without ADHD context.

curiositech/windags-skills

>- Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

curiositech/windags-skills

Extend and modify the admin dashboard, developer portal, and operations console. Use when adding new admin tabs, metrics, monitoring features, or internal tools. Activates for dashboard development, analytics, user management, and internal tooling.

curiositech/windags-skills

Conversation patterns and interaction protocols for multi-agent systems. Covers request/response, pub/sub, blackboard, delegation chains, debate, critique, consensus, fan-out/fan-in, supervisor-worker, and peer negotiation. Deep analysis of AutoGen conversation patterns, CrewAI delegation, LangGraph state passing, and FIPA-ACL performatives. Teaches how to design what agents say to each other and in what order. Activate on: "agent conversation", "agent protocol", "multi-agent debate", "agent delegation", "supervisor worker pattern", "agent voting", "consensus protocol", "fan-out fan-in", "agent negotiation", "blackboard pattern", "agent dialogue", "conversation topology", "agent handoff". NOT for: wire format or serialization (use agent-interchange-formats), orchestration infrastructure (use agentic-infrastructure-2026), single agent behavior (use agentic-patterns).

curiositech/windags-skills

Meta-agent for creating new custom agents, skills, and MCP integrations. Expert in agent design, MCP development, skill architecture, and rapid prototyping. Activate on 'create agent', 'new skill', 'MCP server', 'custom tool', 'agent design'. NOT for using existing agents (invoke them directly), general coding (use language-specific skills), or infrastructure setup (use deployment-engineer).

curiositech/windags-skills

AI-powered calendar management and agent-based scheduling coordination. Covers calendar APIs (Google Calendar, CalDAV/iCal), AI scheduling assistants (Reclaim, Clockwise, Motion, Cal.com), building custom calendar agents with MCP, multi-calendar merging, timezone management, focus block protection, meeting fatigue detection, and agent-to-agent meeting negotiation protocols. Activate on: "calendar agent", "AI scheduling", "calendar coordination", "meeting scheduling", "calendar API", "focus time protection", "calendar optimization", "Google Calendar MCP", "Reclaim", "Clockwise", "Motion", "Cal.com", "smart scheduling", "calendar-aware agent", "timezone scheduling", "agent negotiation meetings". NOT for: manual calendar UI component design (use form-validation-architect), project management scheduling or Gantt charts (use project-management-guru-adhd), general time-tracking or pomodoro apps (use adhd-daily-planner for time-awareness), building the agent itself from scratch (use agent-creator).

curiositech/windags-skills

Build and adopt production AI agent infrastructure in 2026. Covers framework selection (LangGraph, CrewAI, AutoGen, MCP), orchestration patterns, evaluation, observability, memory systems, and tool use. Also covers the SOCIAL dimension: how to sell agent infrastructure internally, change management, measuring ROI, building trust in autonomous systems, and scaling adoption across teams. Activate on: "agent infrastructure", "agent framework comparison", "which agent framework", "sell AI tools internally", "agent adoption", "agent observability", "agent evaluation", "MCP architecture", "agentic mesh", "enterprise AI agents", "AI change management", "agent ROI". NOT for: building specific agents (use ai-engineer), designing agent behavior patterns (use agentic-patterns), prompt tuning (use prompt-engineer).

curiositech/windags-skills

Fundamental patterns for effective agentic behavior. Teaches decomposition, tool orchestration, error recovery, context management, quality self-assessment, and knowing when to stop. Model-agnostic principles that make any agent more effective regardless of domain. Activate on: "how should I structure this agent", "agentic workflow", "agent patterns", "multi-step task", "tool orchestration", "/agentic-patterns", "decompose this", "agent best practices", "chain of actions", "when should the agent stop", "agent loop design". NOT for: creating agent infrastructure (use agent-creator), building DAGs (use windags-architect), specific tool implementation.

curiositech/windags-skills

Automated discovery and matching of agent skills for dynamic task routing and capability assessment

curiositech/windags-skills

Cryptographic security for agentic systems — zero-trust agent networking, signed message envelopes (JWS/JWE), capability-based security (ocaps), Merkle tree audit trails, WASM sandboxing, and formal verification. Covers CLI dev tool security, mTLS between agents, permission boundaries (least privilege for AI agents), and supply chain security for skills/plugins. Activate on: "agent security", "zero trust agents", "secure agent communication", "capability-based security", "ocap", "signed messages between agents", "agent audit trail", "sandbox agent execution", "agent permissions", "mTLS agents", "cryptographic verification", "agent supply chain", "OWASP agentic", "prove agent did X", "tamper-proof agent logs". NOT for: application-level SAST scanning (use security-auditor), network firewall rules (use infrastructure), SOC2/HIPAA compliance (organizational), or prompt injection defense (use prompt-engineer).

curiositech/windags-skills

Data structures and serialization formats for agent-to-agent communication. Covers message envelopes, structured output schemas, capability declarations, task handoff payloads, error/retry signaling, and context windows as data structures. Deep comparison of A2A protocol, MCP, OpenAI function calling, and LangChain message types. Teaches when to use rigid schemas vs free-form with validation, typed vs untyped, streaming vs batch. Activate on: "agent message format", "agent communication schema", "agent-to-agent protocol", "A2A protocol", "MCP message format", "structured output for agents", "agent interop", "interchange format", "agent serialization", "task handoff format", "capability declaration". NOT for: what agents say to each other (use agent-conversation-protocols), orchestration topology (use multi-agent-coordination), building agent infrastructure (use agentic-infrastructure-2026).

curiositech/windags-skills

Logic-based agent programming language implementing BDI architecture for practical autonomous agent development

curiositech/windags-skills

>- Design AgentSpeak(L)-style BDI agents with context-guarded plans, selection functions, and intention stacks. Use for interruptible autonomy, agent policy, and multi-agent orchestration in dynamic environments. NOT for simple rule engines, static planners, or centralized workflows.

curiositech/windags-skills

Foundational concurrent computation model where actors communicate exclusively through asynchronous message passing

curiositech/windags-skills

Build production-ready LLM applications, advanced RAG systems, and intelligent agents. Implements vector search, multimodal AI, agent orchestration, and enterprise AI integrations. Use PROACTIVELY for LLM features, chatbots, AI agents, or AI-powered applications.

curiositech/windags-skills

license: Apache-2.0 NOT for unrelated tasks outside this domain.

関連スキル