ablevarghese/ios-claude-toolkit/athena-accessibility

Claude Code and agent skill by ablevarghese/ios-claude-toolkit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

VoiceOver, screen reader, accessible, disability, WCAG. iOS accessibility implementation and WCAG 2.1 AA compliance — VoiceOver labels, Dynamic Type, color contrast, touch targets, accessibility auditing. Trigger on: 'make this accessible', 'support assistive technologies', 'screen reader support', 'Dynamic Type', 'color contrast check', 'touch target too small', 'inclusive design', 'ADA compliance', 'can a blind user use this', or when any UI work should be checked for accessibility. For localizing accessibility labels, also see babel-localization.

Install

npx vskill@latest install ablevarghese/ios-claude-toolkit/athena-accessibility

SKILL.md

The same SKILL.md was published earlier as ablevarghese/ios-claude-toolkit/athena-accessibility.

Accessibility & Inclusive Design

Iron Law: "Accessibility is not optional. 1 in 4 adults has a disability -- if your app excludes them, it's broken."
Project Discovery: Before executing, determine project-specific values (project name, scheme, bundle ID, target) from project configuration files (CLAUDE.md, project.yml, .xcodeproj, Package.swift).

Ensure the iOS app meets WCAG 2.1 AA standards and Apple accessibility guidelines. This skill covers VoiceOver, Dynamic Type, color contrast, motor accessibility, custom controls, focus management, and accessibility testing.


Rationalizations (Do Not Skip)

RationalizationWhy It's WrongRequired Action
"Most of our users don't have disabilities"26% of US adults have a disability (CDC). Even "temporary" disabilities count -- a broken arm, bright sunlight, loud environment. Accessibility benefits everyone.Implement accessibility from the start. It's cheaper to build in than retrofit.
"VoiceOver is too complex to support"VoiceOver support is mostly adding labels and traits -- work you should already be doing. SwiftUI provides reasonable defaults. The complex part is fixing the bad code that breaks those defaults.Add .accessibilityLabel() to every interactive element. Test with VoiceOver for 5 minutes per screen.
"We'll add accessibility later""Later" never comes. Every sprint adds more inaccessible UI. The backlog grows exponentially. Teams that defer accessibility ship apps that 25% of the population cannot use.Make accessibility part of your definition of done for every feature. No PR merges without accessibility labels on interactive elements.
"The system handles accessibility automatically"SwiftUI and UIKit provide baseline support, but custom views, complex gestures, decorative images, and grouped elements all need manual intervention. "Automatic" accessibility is often wrong -- unlabeled buttons, nonsensical reading order, missing context.Audit every screen with VoiceOver. Automatic support covers ~60% of cases. You must handle the other 40%.
"Accessibility testing is too time-consuming"A basic VoiceOver walkthrough takes 5-10 minutes per screen. Automated accessibility audits run in seconds. This is less time than debugging a production crash.Add accessibility checks to your PR checklist. Run Accessibility Inspector on every new screen.
"Only blind users need VoiceOver"VoiceOver users include people with low vision, motor disabilities (using Switch Control), cognitive disabilities, and situational disabilities. Voice Control uses the same accessibility tree. If VoiceOver doesn't work, Voice Control doesn't work.Test with VoiceOver AND Voice Control. Both depend on the same accessibility labels.
"Our design doesn't allow for 44x44 touch targets"Then your design is wrong. Apple's HIG mandates 44x44pt minimum. Small targets cause frustration for all users and are impossible for users with motor impairments.Redesign. Use .contentShape(Rectangle()) to expand hit areas beyond visual bounds if needed.
"Dark mode is enough for low vision"Dark mode helps some users but does nothing for contrast ratios, text scaling, color blindness, or screen magnification. Low vision support requires Dynamic Type, sufficient contrast, and scalable layouts.Support Dynamic Type up to accessibility sizes. Verify 4.5:1 contrast ratios. Test with Zoom enabled.

Red Flags -- STOP

  • Images without accessibility labels: Every Image that conveys information needs .accessibilityLabel(). Decorative images need .accessibilityHidden(true).
  • Interactive elements smaller than 44x44pt: Buttons, links, toggles, and any tappable element must meet minimum touch target size. No exceptions.
  • Color as the only differentiator: "Red means error, green means success" fails for 8% of men with color vision deficiency. Always use icons, text, or patterns in addition to color.
  • Missing Dynamic Type support: If text doesn't scale with the system text size setting, users with low vision cannot use your app. Every Text must use dynamic type styles.
  • Form fields without labels: Text fields, toggles, pickers, and other form elements must have associated labels that VoiceOver reads. Placeholder text is NOT a label -- it disappears on input.
  • Custom gestures without alternatives: If a feature requires a complex gesture (pinch, rotate, multi-finger swipe), provide an accessible alternative via .accessibilityAction() or a button.

When NOT to Use This Skill

  • Designing the visual UI: This skill covers accessibility implementation, not visual design. For HIG-compliant visual design, see cupertino-apple.
  • Server-side accessibility: WCAG for web APIs (screen reader-compatible error messages, semantic HTML) belongs in web development, not iOS.
  • Automated test infrastructure setup: For setting up XCTest and test infrastructure, see forge-development. This skill covers what to test for accessibility, not how to configure test runners.
  • Localization of accessibility labels: If you need to localize VoiceOver labels into multiple languages, see babel-localization for string externalization.

Decision Framework

What aspect of accessibility am I addressing?
VISUAL
|-- Can the user see the content?
| NO --> Add VoiceOver labels (.accessibilityLabel)
| YES but low vision --> Support Dynamic Type + verify contrast ratios
|
|-- Is color the only indicator?
YES --> Add icon, text, or pattern as secondary indicator
NO --> Verify 4.5:1 contrast ratio for text, 3:1 for large text
MOTOR
|-- Is the touch target >= 44x44pt?
| NO --> Expand with .contentShape() or redesign
|
|-- Does it require complex gestures?
YES --> Add .accessibilityAction() alternatives
NO --> Verify works with Switch Control
COGNITIVE
|-- Is the navigation predictable?
| NO --> Use standard navigation patterns (NavigationStack, TabView)
|
|-- Are instructions clear?
NO --> Add .accessibilityHint() to explain non-obvious interactions
DYNAMIC CONTENT
|-- Does content update without user action?
YES --> Post accessibility notification:
UIAccessibility.post(notification: .announcement, argument: message)
NO --> Standard labels are sufficient

Accessibility Requirements Summary

FeatureRequirementWCAG CriterionPriority
VoiceOver labelsAll interactive elements labeled1.1.1 Non-text ContentRequired
Dynamic TypeAll text scales to accessibility sizes1.4.4 Resize TextRequired
Color contrast4.5:1 text, 3:1 large text/UI1.4.3 ContrastRequired
Touch targets44x44 pt minimum2.5.8 Target SizeRequired
Focus orderLogical reading/navigation order2.4.3 Focus OrderRequired
Reduce MotionHonor UIAccessibility.isReduceMotionEnabled2.3.1 Three FlashesRequired
Error identificationErrors identified by more than color3.3.1 Error IdentificationRequired
Haptic feedbackMeaningful, not decorativeBest PracticeRecommended
Reduce TransparencyHonor transparency preferencesBest PracticeRecommended

VoiceOver Implementation

Labels, Hints, and Values
swift
// Label: WHAT the element is (read first)
Button(action: sendMoney) {
Image(systemName: "arrow.up.circle.fill")
}
.accessibilityLabel("Send money")
// Hint: WHAT HAPPENS when activated (read after a pause)
.accessibilityHint("Opens the send money screen")
// Value: CURRENT STATE for stateful elements
Slider(value: $amount, in: 0...1000)
.accessibilityValue("\(Int(amount)) dollars")
Traits

Traits tell VoiceOver what kind of element this is, which changes how it announces and interacts:

swift
// Add traits for semantic meaning
Text("Recent Transfers")
.accessibilityAddTraits(.isHeader)
// VoiceOver announces: "Recent Transfers, heading"
Image("promo_banner")
.accessibilityAddTraits(.isImage)
.accessibilityLabel("Spring promotion: 50% off transfer fees")
Link("Terms of Service", destination: termsURL)
.accessibilityAddTraits(.isLink)
// VoiceOver announces: "Terms of Service, link"
// Remove incorrect default traits
Button(action: {}) {
Text("Status: Active")
}
.accessibilityRemoveTraits(.isButton)
// If this "button" is actually just styled text, remove the button trait

Available traits: .isButton, .isLink, .isHeader, .isImage, .isSearchField, .isKeyboardKey, .isStaticText, .playsSound, .startsMediaSession, .isModal, .isSelected, .isSummaryElement, .updatesFrequently, .allowsDirectInteraction, .causesPageTurn, .isToggle, .tabBar

Custom Actions

Custom actions appear when the user swipes up/down on an element, providing additional operations:

swift
// A transfer row with multiple actions
TransferRow(transfer: transfer)
.accessibilityElement(children: .combine)
.accessibilityLabel("\(transfer.recipientName), \(transfer.amount.formatted(currency: .usd)), \(transfer.status)")
.accessibilityAction(named: "View details") {
showDetail(transfer)
}
.accessibilityAction(named: "Repeat transfer") {
repeatTransfer(transfer)
}
.accessibilityAction(named: "Cancel transfer") {
cancelTransfer(transfer)
}
Magic Tap and Escape
swift
// Magic Tap: two-finger double-tap, for the most important action
ContentView()
.accessibilityAction(.magicTap) {
togglePlayPause()
}
// Escape: two-finger scrub (Z gesture), for dismissing
ModalView()
.accessibilityAction(.escape) {
dismiss()
}

Element Grouping and Children

Combining Children

When a card has multiple text elements that should be read as one unit:

swift
// WRONG: VoiceOver focuses each element separately
VStack {
Text("Jane Smith") // Focus 1: "Jane Smith"
Text("$500.00") // Focus 2: "$500.00"
Text("Completed") // Focus 3: "Completed"
}
// CORRECT: Combined into single focus point
VStack {
Text("Jane Smith")
Text("$500.00")
Text("Completed")
}
.accessibilityElement(children: .combine)
// VoiceOver reads: "Jane Smith, $500.00, Completed"
Containing Children

When you want VoiceOver to recognize a group but still focus individual children:

swift
VStack {
Text("Transfer Details").accessibilityAddTraits(.isHeader)
Text("Amount: $500")
Text("Fee: $5")
}
.accessibilityElement(children: .contain)
// VoiceOver can focus each child, but knows they're grouped
Ignoring Children

When the children's default accessibility is wrong and you want full manual control:

swift
// Custom chart where default accessibility is meaningless
ChartView(data: chartData)
.accessibilityElement(children: .ignore)
.accessibilityLabel("Transfer volume chart")
.accessibilityValue("Showing 30 days. Peak: March 10 with 45 transfers. Average: 28 transfers per day.")
Custom Representation

For complex controls, provide a simpler accessible representation:

swift
// A custom circular slider
CircularSlider(value: $percentage)
.accessibilityRepresentation {
Slider(value: $percentage, in: 0...100) {
Text("Transfer progress")
}
}

Focus Management

Controlling VoiceOver Focus
swift
struct TransferConfirmation: View {
@AccessibilityFocusState private var focusedElement: FocusableElement?
enum FocusableElement: Hashable {
case confirmationMessage
case doneButton
}

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ablevarghese/ios-claude-toolkit/athena-accessibility/badge)](https://verified-skill.com/skills/ablevarghese/ios-claude-toolkit/athena-accessibility)

Something wrong with this skill or its page? Tell us.