Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

igraphics-accessibility

БесплатноЗапускает вложенные скриптыНе проверен

Add or audit accessibility (screen reader and keyboard navigation) support for IGraphics UIs and IControls in iPlug2, using the AccessKit-based layer…

iPlug2от iPlug2★ 2 458 звёзд на GitHub

Об этом скилле

IGraphics accessibility

IGraphics exposes controls to assistive technology (VoiceOver on macOS; Narrator, NVDA, JAWS on Windows) through AccessKit, and adds keyboard navigation (Tab/arrows/space). It is opt-in (IGRAPHICS_ACCESSKIT) and only works on macOS and Windows. The user-facing docs are in Documentation/accessibility.md.

The model is simple: every frame where controls are dirty, IGraphics asks each visible control for a list of IAccessibleNodes via IControl::GetAccessibleNodes(). It sends only the nodes that changed to the platform. Actions from the screen reader or keyboard come back on the UI thread as IControl::OnAccessibleAction(). So making a UI accessible comes down to making sure each meaningful control describes itself correctly and responds to actions.

Workflow

Depending on the request, do some or all of these steps:

  1. Enable it in the build (if not already) — see "Enabling" below.
  2. Audit the layout — run the audit script on the plugin's source to find controls that are hidden, mislabelled or wrongly classified:
    python3 .claude/skills/igraphics-accessibility/scripts/audit_a11y.py Examples/MyPlugin/MyPlugin.cpp [more .h/.cpp files]
    
    It knows the default role of every built-in control and flags custom IControl subclasses that don't describe themselves. It reads source text, so treat its output as a checklist to confirm, not as the final word.
  3. Fix built-in controls with SetAccessibleRole() / SetAccessibleLabel() at the attach site (see "Quick fixes").
  4. Fix custom controls by setting a role in the constructor, or by overriding GetAccessibleNodes() / OnAccessibleAction() (see "Custom controls").
  5. Check keyboard navigation: focus order, controls that swallow keys, focus ring colour.
  6. Verify with the platform tools (see "Verifying"). Build the standalone app target first, because it is quickest to test.

Keep changes in the plugin's own code unless the user asks to improve the framework's built-in controls. When the fix belongs in a built-in control (e.g. IVKeyboardControl should be exposed), say so, and only edit IGraphics/ if asked.

Enabling

./Dependencies/IGraphics/download-accesskit.sh   # once; fetches prebuilt static libs to Dependencies/Build/accesskit
Build system What to change
CMake Configure with -DIGRAPHICS_ACCESSKIT=ON (fails with a clear message if the libs weren't downloaded)
Xcode In config/MyPlugin-mac.xcconfig: add IGRAPHICS_ACCESSKIT to EXTRA_ALL_DEFS and $(ACCESSKIT_LNK_FLAGS) to EXTRA_LNK_FLAGS
Visual Studio In config/MyPlugin-win.props: add IGRAPHICS_ACCESSKIT to EXTRA_ALL_DEFS (the lib is linked automatically via common-win.props)

No source files need adding: IGraphicsAccessibility.cpp is included from IGraphics.cpp when the macro is defined. iOS, Linux and Web are not supported, so leave the define out of those configs. The static library adds several MB per binary, which is a reasonable thing to mention to the user.

Keyboard navigation doesn't need AccessKit. It's on by default only when IGRAPHICS_ACCESSKIT is defined. Call pGraphics->EnableKeyboardNavigation(true/false) in the layout function to override that.

What the base classes already do

Most stock controls need nothing. In summary:

Base class / control Role Notes
IKnobControlBase, ISliderControlBase (IV/ISVG/IB knobs & sliders, IWheelControl) Slider value/min/max/step and display text come from the param
IButtonControlBase Button Click synthesises a mouse down/up at the centre
ISwitchControlBase Toggle if 2 states, else ComboBox arrows step through states
IVTabSwitchControl, IVRadioButtonControl RadioGroup with RadioButton children set TabList role to get Tab children
IVMenuButtonControl ComboBox Click opens the menu
IVRangeSliderControl, IVMultiSliderControl, IVXYPadControl Group with one Slider child per value
IVNumberBoxControl Slider inner label and +/- buttons hidden
IVMeterControl family Meter no value exposed
ITextControl, IVLabelControl Label label is the displayed text
IVGroupControl Group children nest under it
Anything deriving straight from IControl None (hidden) includes all custom controls

references/control-coverage.md has the full per-control list, including the controls that are exposed wrongly (ICaptionControl, ITextToggleControl, IURLControl, IEditableTextControl) and the ones that are hidden.

Label resolution order: SetAccessibleLabel() → IVControl label (IVectorBase::GetLabelStr()) → linked param's name → (buttons only) IVControl value string → tooltip. The tooltip becomes the node's description when it isn't already the label. So a knob linked to a param named "Gain" reads "Gain, -6.0 dB, slider" with no extra code. A knob with an empty label and no

Полный SKILL.md на GitHub

Установить igraphics-accessibility в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/control-coverage.mdreferences/custom-controls.mdscripts/audit_a11y.py

FAQ

Что делает скилл igraphics-accessibility?

Add or audit accessibility (screen reader and keyboard navigation) support for IGraphics UIs and IControls in iPlug2, using the AccessKit-based layer (IGRAPHICS_ACCESSKIT, GetAccessibleNodes, OnAccessibleAction, SetAccessibleRole, SetAccessibleLabel, EAccessibleRole, IAccessibleNode, EnableKeyboardNavigation, SetKeyboardFocus). Use this skill whenever the user mentions accessibility, a11y, VoiceOver, Narrator, NVDA, JAWS, screen readers, blind or low-vision users, keyboard navigation, tab focus, focus rings, or AccessKit in an iPlug2 / IGraphics context — including making a plugin UI or a custom control "accessible", checking which controls a screen reader can see, enabling IGRAPHICS_ACCESSKIT in a CMake/Xcode/Visual Studio build, or fixing a control that VoiceOver reads wrongly or skips.

Как установить скилл igraphics-accessibility?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл igraphics-accessibility запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить igraphics-accessibility с