К основному содержанию
скилл CX Codex

ios-accessibility · dadederk — скилл для Claude Code: доступность iOS-приложений

Скилл для ИИ-агента, который подсказывает, как делать iOS-приложения доступными: VoiceOver, Dynamic Type, Switch Control и тестирование.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add dadederk/iOS-Accessibility-Agent-Skill --skill ios-accessibility -a claude-code
Открыть на GitHub

Что делает ios-accessibility

Скилл даёт агенту экспертизу по доступности iOS. Он разбирает VoiceOver, Dynamic Type, Switch Control, Voice Control и Full Keyboard Access, а также подсказывает, как это выглядит в UIKit и SwiftUI. Пригодится, когда вы правите метки, трейты и подсказки доступности или разбираетесь, почему элемент не читается голосом.

Внутри — набор справочников, которые агент читает по ситуации: отдельные файлы по VoiceOver для UIKit и SwiftUI, по Dynamic Type и другим темам. Перед советом агент выясняет, на чём написан проект и какая минимальная версия iOS, потому что часть API привязана к версиям: Large Content Viewer с iOS 13, AccessibilityFocusState с iOS 15, .accessibilityRepresentation с iOS 16. Если это неясно из проекта, он спросит.

Отдельно прописан список антипаттернов: не добавлять слово «button» в метку, не прятать интерактивные элементы через .accessibilityHidden(true), не использовать фиксированные размеры шрифта и жёсткие цвета вместо семантических. Скилл советует проверять доступность руками, а не только автотестами, и предлагает правки в дизайн-системе, чтобы улучшение расходилось по всему приложению.

Какие задачи решает

  • разобрать, почему элемент не читается VoiceOver
  • подобрать метку, трейт и значение для кастомного контрола
  • перевести интерфейс на Dynamic Type без фиксированных размеров шрифта
  • проверить доступность экрана вручную и автотестами
  • добавить альтернативу для кастомного жеста

Примеры запросов агенту

  • Проверь доступность этого экрана на SwiftUI и предложи правки для VoiceOver
  • У кнопки закрытия метка «Закрыть», но VoiceOver читает её странно — что не так?
  • Собери чек-лист ручного тестирования доступности для формы входа

Как установить ios-accessibility

1Через Skills CLI (Vercel)

npx skills add dadederk/iOS-Accessibility-Agent-Skill --skill ios-accessibility -a claude-code

2Вручную: положить файлы

~/.claude/skills/ios-accessibility/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/ios-accessibility/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о ios-accessibility

Как установить ios-accessibility в Claude?

Выполните npx skills add dadederk/iOS-Accessibility-Agent-Skill --skill ios-accessibility -a claude-code. Скилл появится в ~/.claude/skills/ios-accessibility/SKILL.md.

Что делает ios-accessibility?

Подсказывает агенту, как чинить и проверять доступность iOS-приложений: VoiceOver, Dynamic Type, Switch Control, Voice Control, Full Keyboard Access. Работает и с UIKit, и со SwiftUI.

Нужно ли что-то указывать перед началом работы?

Скилл сам выясняет, SwiftUI у вас или UIKit и какая минимальная версия iOS, потому что часть API доступности появилась в конкретных версиях. Если из проекта это не видно, он спросит.

Исходный текст

SKILL.md · MIT
---
name: ios-accessibility
description: 'Expert guidance on iOS accessibility best practices, patterns, and implementation. Use when developers mention: (1) iOS accessibility, VoiceOver, Dynamic Type, or assistive technologies, (2) accessibility labels, traits, hints, or values, (3) automated accessibility testing, auditing, or manual testing, (4) Switch Control, Voice Control, or Full Keyboard Access, (5) inclusive design or accessibility culture, (6) making apps work for users with disabilities.'
---

# iOS Accessibility

## Overview

This skill provides expert guidance on iOS accessibility, covering VoiceOver, Dynamic Type, assistive technologies, inclusive design practices, and both UIKit and SwiftUI implementations. Use this skill to help developers build apps that work for everyone.

## The Approach

- **Shift-left** — Accessibility is part of the process. It needs to be considered even in prototypes or MVPs.
- **User-centric** — Accessibility is about people. Checklists help, but the goal is not checklist compliance. The goal is to offer a great experience for users with disabilities.
- **Progress over perfection** — Anytime is a good time to start. Focus on iterative and incremental improvements as you go. It goes a long way.
- **Test as you go** — Manual testing is part of development.

## Agent Behavior Contract

1. **Accessibility is non-deterministic.** Propose potential solutions in order of confidence and present with clear pros, cons, and trade-offs.
2. Before proposing fixes, identify the platform (UIKit vs SwiftUI) and the assistive technology, accessibility feature, or design consideration in context.
3. Do not recommend accessibility fixes without considering the user experience impact.
4. Prefer manual testing guidance alongside code changes, together with any automated or semi-automated solutions.
5. Cross-reference multiple assistive technologies when relevant (VoiceOver, Voice Control, Switch Control, Full Keyboard Access).

### Anti-Patterns to Avoid

- **Do not add trait names to labels** — Say "Close", not "Close button" (VoiceOver adds "button" automatically, when using the button trait)
- **Do not use `.accessibilityHidden(true)` on interactive elements** — Users won't be able to access them
- **Do not use fixed font sizes** — Always use text styles for Dynamic Type support
- **Do not use hardcoded colors for text** — Use semantic colors (`.label`, `.secondaryLabel`) for contrast and Dark Mode
- **Do not group UIKit elements without a clear combined label** — If `isAccessibilityElement = true`, set `accessibilityLabel` (and value/traits as needed).
- **Do not group SwiftUI elements without a clear combined label** — If `.accessibilityElement(children: .ignore)` is used, provide label/value/traits manually.
- **Do not add hints unless needed** — It should be clear what a component expresses, and does, by its label/value/traits. Only configure for adding extra clarity or context.
- **Do not rely on `onTapGesture` alone** — Prefer semantic controls like `Button`. If gesture handling is unavoidable, add button traits and clear labels.
- **Do not scale chrome controls with Dynamic Type** — For navigation bars, toolbars, and tab bars, prefer Large Content Viewer (iOS 13+) using [`.accessibilityShowsLargeContentViewer`](https://developer.apple.com/documentation/swiftui/view/accessibilityshowslargecontentviewer(content:)) / [`UILargeContentViewerItem`](https://developer.apple.com/documentation/uikit/uilargecontentvieweritem).

### General Guidance

**Prefer native components:** Whenever possible, use Apple's native components and customize them to your needs instead of building custom components from scratch.

**Design system first:** Whenever the project uses a design system of its own (colors, text styles, component catalog), propose changes in the design system itself so the improvement snowballs everywhere in the app using an improved component.

**Platform parity:** The same accessibility principles apply to both UIKit and SwiftUI, but APIs and implementation details differ.

## Project Settings Intake (Evaluate Before Advising)

Before providing accessibility guidance, determine:

### Project Capabilities
- **Is the project using SwiftUI, UIKit, or a mix of both?**
- **iOS deployment target** — Some APIs require specific versions:
  - iOS 13+: [Large Content Viewer (`UILargeContentViewerInteraction`)](https://developer.apple.com/documentation/uikit/uilargecontentviewerinteraction), [SF Symbols](https://developer.apple.com/sf-symbols/)
  - iOS 14+: [Switch Control action images (`UIAccessibilityCustomAction.init(name:image:actionHandler:)`)](https://developer.apple.com/documentation/uikit/uiaccessibilitycustomaction/init(name:image:actionhandler:))
  - iOS 15+: [`AccessibilityFocusState`](https://developer.apple.com/documentation/swiftui/accessibilityfocusstate), [`.accessibilityRotor`](https://developer.apple.com/documentation/swiftui/view/accessibilityrotor(_:entries:entryid:entrylabel:))
  - iOS 16+: [`.accessibilityRepresentation`](https://developer.apple.com/documentation/swiftui/view/accessibilityrepresentation(representation:)), [`.accessibilityActions { }` syntax](https://developer.apple.com/documentation/swiftui/view/accessibilityactions(content:))
  - iOS 17+: [`.sensoryFeedback`](https://developer.apple.com/documentation/swiftui/view/sensoryfeedback(_:trigger:))
- **Check minimum OS** — Look for `#available` checks and deployment target in project settings

### Project Conventions
- **Design system** — Does the project define its own design system (colors, text styles, UI component catalogue)? Propose changes in the design system when appropriate, not only per-feature.
- **Semantic colors and text styles** — Does the project use semantic colors (`.label`, `.systemBackground`) and text styles (`.preferredFont(forTextStyle:)` in UIKit, `.font(.body)` in SwiftUI) vs hardcoded values?
- **Existing accessibility patterns** — Search for `.accessibilityLabel`, `.accessibilityTraits`, etc. to match project style.
- **Localization** — Accessibility labels, values, and hints should be localized. Match the project's localization conventions.
- **UI construction** — Interface Builder (XIB/Storyboard) or code-only?
- **Custom gestures** — Identify if custom gestures need accessible alternatives.
- **Accessibility test coverage** — Existing UI tests auditing for accessibility?

### When Settings Are Unknown
If you can't determine the above, ask the developer to confirm before giving version-specific or framework-specific guidance.

## Quick Decision Tree

When a developer needs accessibility guidance, follow this decision tree:

1. **VoiceOver issues?**
   - Core concepts: Read `references/voiceover.md`
   - UIKit implementation: Read `references/voiceover-uikit.md`
   - SwiftUI implementation: Read `references/voiceover-swiftui.md`

2. **Dynamic Type, text scaling, or adaptive layout?**
   - Core concepts: Read `references/dynamic-type.md`
   - UIKit implementation: Read `references/dynamic-type-uikit.md`
   - SwiftUI implementation: Read `references/dynamic-type-swiftui.md`

3. **Other assistive technologies?**
   - Voice Control: Read `references/voice-control.md`
   - Switch Control: Read `references/switch-control.md`
   - Full Keyboard Access: Read `references/full-keyboard-access.md`

4. **Testing accessibility?**
   - Manual testing: Read `references/testing-manual.md`
   - Automated testing: Read `references/testing-automated.md`

5. **Cross-cutting concerns?**
   - Contrast, targets, motion, haptics: Read `references/good-practices.md`
   - Culture and mindset: Read `references/concepts-and-culture.md`

6. **Quick reference needed?**
   - Common mistakes, patterns, checklists: Read `references/playbook.md`

7. **Need definitions or sources?**
   - Glossary: Read `references/glossary.md`
   - Sources and further reading: Read `references/resources.md`

## Quick Playbook (Start Here)

1. Confirm **framework** (UIKit vs SwiftUI) and **iOS target**.
2. Identify **assistive technology** and **user-experience issue**.
3. Use the **Decision Tree** and jump into the relevant reference file.
4. Whenever it makes sense, provide **2-3 options** with trade-offs and expected UX impact.
5. Always include **testing guidance** alongside any code changes.

For common mistakes, inspector warnings, code patterns, version-specific APIs, and checklists, use `references/playbook.md`.

## Example Prompts and Expected Shape

**Example prompt:** “VoiceOver reads ‘button’ for my close button.”
**Expected response:**
- Confirm framework and iOS target if unknown.
- Provide options when there are multiple viable approaches (for example, add an accessibility label vs a labeled button using icon-only style), with trade-offs.
- Include a framework-appropriate snippet.
- Add testing steps (VoiceOver, Voice Control...).

**Example prompt:** “Dynamic Type breaks my header layout in UIKit.”
**Expected response:**
- Confirm `preferredContentSizeCategory` handling and iOS target.
- Suggest layout adaptation strategies (stack axis change vs constraints).
- Include a UIKit snippet and testing steps at Large Accessibility Sizes.

## Edge Cases and Gotchas

- Mixed UIKit/SwiftUI screens: use correct API set per view layer.
- Custom controls or gestures: always provide a VoiceOver/Voice Control alternative.
- Unknown iOS target: ask before suggesting version-specific APIs.
- No code context: ask for relevant view code or a screenshot of the Accessibility Inspector.
- Localization: all labels, values, and hints (and any other string parameter like custom content, or accessibility announcements, etc.) must be localized.

© dadederk · MIT · dadederk/iOS-Accessibility-Agent-Skill

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

Всё по теме «Мобильная разработка» →

Сначала — ios-accessibility от других авторов.

ios-accessibility dpearson2699 Помогает настраивать доступность в приложениях под iOS и macOS, проверяя разметку для экранных дикторов и системные параметры интерфейса. Пригодится при подготовке релиза и аудите компонентов. CX Codex +1 4 900установок ios-design-guidelines platform-design-skills Проверяет интерфейсы iPhone по правилам Apple HIG при создании и рефакторинге SwiftUI или UIKit. Нужен для навигации, доступности и адаптивной вёрстки. CX Codex +1 1 900установок axiom-accessibility CharlesWiltgen Скилл для разбора проблем доступности в приложениях Apple: VoiceOver, Dynamic Type, контраст, размеры целей нажатия, WCAG. CX Codex +1 1 200установок ios-hig-design wondelai Скилл помогает проектировать нативные iOS-интерфейсы в соответствии с Human Interface Guidelines Apple. Пригодится, когда вы делаете приложение для iPhone или iPad и хотите, чтобы оно выглядело как родное для платформы. CX Codex +1 8 200установок ios-application-dev MiniMax-OpenSource Скилл-справочник по iOS-интерфейсам: UIKit, SnapKit и SwiftUI, чек-листы по вёрстке, Dynamic Type, тёмной теме и доступности. CX Codex +1 2 100установок ios-dev Prisma-Labs-Dev Точка входа для разработки под iOS и SwiftUI в ИИ-агентах. Координирует руководства по паттернам, чек-лист корректности и справочники по API Apple. CX Codex +1 697установок ios-developer Seth Hobson Проектирует нативные iOS-приложения на Swift 6 и SwiftUI под iOS 18, настраивает работу с Core Data и готовит сборки к App Store. CX Codex 2 684установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой