Логотип 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, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 4

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Опубликовано на GitHub: ginader. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Born Accessible Ui в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/ginader/born-accessible-ui/tree/main/born-accessible-ui
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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

Включите навык Born Accessible Ui в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Born Accessible Ui, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Born Accessible Ui не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл 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.

Встроенные файлы

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Born Accessible Ui в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Born Accessible Ui — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Born Accessible Ui в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/ginader/born-accessible-ui/tree/main/born-accessible-ui. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Born Accessible Ui?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Born Accessible Ui?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Born Accessible Ui: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Born Accessible Ui?

Да. Навык опубликован на GitHub автором ginader по лицензии Apache-2.0. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇