Born Accessible Uiのロゴ

Born Accessible Ui

コミュニティ
ginader
born-accessible-ui

Use for ANY task that creates, edits, styles, refactors or reviews web UI: HTML, CSS, design tokens, Tailwind, JavaScript or TypeScript components, React, Next.js, Vue, Svelte, Angular, Astro, Lit, pages, dashboards, forms and prototypes. Enforces the three Born-Accessible protocols (plan semantics first, mathematically verified color contrast, native HTML before ARIA) and runs a Playwright + axe-core verification loop until zero automated accessibility violations remain.

概要

公開者ginader
リポジトリborn-accessible-ui
スキル名born-accessible-ui
スター
11
フォーク
1
同梱ファイル
4
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    ginaderがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルBorn Accessible UiをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ginader/born-accessible-ui/tree/main/born-accessible-ui
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ginader/born-accessible-ui.git /tmp/born-accessible-ui
mkdir -p .claude/skills
cp -r /tmp/born-accessible-ui/born-accessible-ui .claude/skills/born-accessible-ui
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBorn Accessible Uiを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にBorn Accessible Uiを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Born Accessible Uiは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Born-Accessible UI

Build visually rich UI that is accessible on the first pass. Run this loop for every UI change:

Plan → Build → Verify → Fix → Report

1. Plan (Protocol 1: Silent Reasoning)

Before writing markup, write an A11Y-PLAN that covers:

  1. Landmarks: what goes into <header>, <nav aria-label>, <main>, <aside aria-label> and <footer>.
  2. Headings: one <h1> per page, then h2 and h3 without skipping levels.
  3. Controls: every interactive element, its native HTML element, its accessible name and its keyboard behavior.
  4. Contrast pairs: every text/background and UI/background color pair with its computed ratio.

Put the plan where it can't break the build: an HTML comment after <!DOCTYPE html> in a standalone page, a {/* A11Y-PLAN ... */} block in JSX/TSX, an HTML comment in Vue/Svelte/Angular templates, or your reply when you change several files.

When you build a single component, plan only its own semantics. Landmarks and the <h1> belong to the page layout, not to every component.

2. Build (Protocols 2 and 3)

  • Color tokens: define colors as custom properties and annotate every foreground token with its computed contrast ratio, rounded down: --text-muted: #cbd5e1; /* Contrast: 11.9:1 vs #111827 (AAA) */. Minimums: 4.5:1 for normal text, 3:1 for large text and for UI parts such as input borders, focus rings and icons.
  • Native HTML first: <button> for actions, <a href> for navigation, <dialog> with showModal() for modals, <details>/<summary> for disclosures, <input type="checkbox" role="switch"> for toggles, <label for> for every form control. Never put click handlers on <div> or <span>.
  • Layout: content reflows at 320 CSS px without horizontal scrolling, targets are at least 24×24 px, :focus-visible is clearly visible, and motion respects prefers-reduced-motion.

3. Verify (never skip, never estimate)

Run both checks after every UI change:

bash
# Static: recomputes every "Contrast:" comment, flags clickable <div>s and removed outlines
node <skill>/scripts/lint.mjs <changed files or src folder>

# Runtime: Playwright + axe-core (WCAG 2.2 A/AA + best practices) on the initial view and on
# hidden states (dialogs, popovers, details, tabs, menus), plus a 320px reflow check
node <skill>/scripts/audit.mjs <url-or-html-path> [more targets]
  • Audit every page or route you changed. For apps, start the dev server in the background first and pass its URLs (for example http://localhost:5173/settings). For static HTML, pass the files or a folder.
  • UI that only exists after a click, such as a conditionally rendered modal: add --click "<CSS selector of the trigger>".
  • Exit codes: 0 = no automated violations, 1 = violations (details in a11y-report/), 2 = setup or page-load problem (is the dev server running?).
  • Missing dependencies: run npm install --save-dev playwright @axe-core/playwright in the project. Only if Google Chrome isn't installed, also run npx playwright install chromium.
  • Keep a11y-report/ out of version control (add it to .gitignore).

4. Fix

  1. Read a11y-report/fix-prompt.md (or a11y-report/report.json for full details) and the lint output. Fix lint errors too: axe can't see clickable <div>s or wrong Contrast: comments. To compare against the starting point later, run the first audit with --out a11y-report/before.
  2. Fix at the source (tokens, shared components, layout rules) following references/remediation.md. Keep the visual design: change lightness rather than going monochrome, and never hide content from assistive technology to silence a rule.
  3. Run lint and audit again. Do at most 3 fix rounds (a round = fixing violations, then re-running both checks). If violations remain, stop and report them with your best explanation.
  4. Check every "needs review" item (the review lines in the audit output, also listed in fix-prompt.md and report.json). They are not failures; axe-core couldn't decide. These checks don't count toward the 3 rounds.
    • Text on gradients, images or translucent ("glass") surfaces: check the worst spot by eye, or put a solid backdrop behind the text so axe can compute it.
    • "Partially overlaps other elements", common for text inside a modal <dialog> or near positioned elements: don't change code for this. Verify the real colors in DevTools or a screenshot and record the result.

5. Report

  • Say "0 automated axe-core violations". Never claim "WCAG compliant" or "accessibility verified": automated tools catch only part of all barriers.
  • List each "needs review" item you checked by hand as manually verified, with the colors and ratio you measured.
  • List what still needs a human: a keyboard walk-through (Tab, Shift+Tab, Enter, Space, Esc, arrow keys in composite widgets), visible focus everywhere, a screen reader spot check of names, roles and states, 200% zoom, and meaningful alt text, link text and error messages.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Born Accessible Ui」では何ができますか?

Use for ANY task that creates, edits, styles, refactors or reviews web UI: HTML, CSS, design tokens, Tailwind, JavaScript or TypeScript components, React, Next.js, Vue, Svelte, Angular, Astro, Lit, pages, dashboards, forms and prototypes. Enforces the three Born-Accessible protocols (plan semantics first, mathematically verified color contrast, native HTML before ARIA) and runs a Playwright + axe-core verification loop until zero automated accessibility violations remain.

TypingMindでBorn Accessible Uiを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Born Accessible Uiはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBorn Accessible Uiをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ginader/born-accessible-ui/tree/main/born-accessible-uiを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Born Accessible Uiを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Born Accessible Uiは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBorn Accessible Uiを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Born Accessible Ui」は無料ですか?

はい。ginaderがGitHubでApache-2.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇