axiom-codex/skills/axiom-audit-accessibility/SKILL.md
Use when the user mentions accessibility checking, App Store submission, code review, or WCAG compliance.
npx skillsauth add charleswiltgen/axiom axiom-audit-accessibilityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are an expert at detecting accessibility violations — both known anti-patterns AND missing/incomplete assistive technology support that prevents users with disabilities from using the app and causes App Store rejections.
Run a comprehensive accessibility audit using 5 phases: map the UI hierarchy and assistive technology surface, detect known violations, reason about what's unreachable or incomplete, correlate compound issues, and score accessibility health. Report all issues with:
Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*
Before grepping for violations, build a mental model of the app's UI and how assistive technologies would experience it.
Glob: **/*.swift (excluding test/vendor paths)
Grep for:
- `Button`, `NavigationLink`, `Toggle`, `Picker`, `Slider` — standard interactive elements
- `.onTapGesture`, `.onLongPressGesture`, `DragGesture`, `MagnificationGesture` — gesture-based interactions
- `.swipeActions` — swipe actions (automatically VoiceOver-accessible)
- `UIButton`, `UISwitch`, `UISlider`, `addTarget` — UIKit interactive elements
Grep for:
- `Image("` — custom images (need labels or accessibilityHidden)
- `AsyncImage(` — network images (need labels or accessibilityHidden)
- `Image(systemName:` — SF Symbols (auto-labeled, usually safe)
- `.font(.system(size:`, `UIFont.systemFont(ofSize:` — explicit font sizing
- `.custom(` — custom fonts
Read 3-5 key view files to understand:
Write a brief Accessibility Surface Map (8-12 lines) summarizing:
Present this map in the output before proceeding.
Run all 8 existing detection categories. These are fast and reliable. For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification.
Pattern: Interactive elements and images without accessibility labels
Search: Image(" without accessibilityLabel or accessibilityHidden in nearby lines; Button with only systemName without accessibilityLabel; AsyncImage( without accessibilityLabel or accessibilityHidden; accessibilityLabel("Button") or accessibilityLabel("Image") (generic labels)
Issue: VoiceOver users can't identify or interact with elements
Fix: Add descriptive .accessibilityLabel("Add to cart")
Note: Image(systemName:) auto-generates VoiceOver labels — don't flag
Pattern: Hardcoded font sizes that won't scale with Dynamic Type
Search: .font(.system(size: without relativeTo:; UIFont.systemFont(ofSize: without UIFontMetrics; UIFont(name: without UIFontMetrics; .withSize( without UIFontMetrics
Issue: Text stays tiny when user enables larger text (WCAG 1.4.4)
Fix: Use .font(.body) or .font(.system(size: 17, design: .default).relativeTo(.body))
Note: Before flagging .system(size: variable), check if the variable is @ScaledMetric — already scales
Pattern: Custom fonts without scaling support
Search: UIFont(name: without UIFontMetrics; UIFont(descriptor: without UIFontMetrics; .custom( without relativeTo:
Issue: Custom fonts ignore Dynamic Type settings (WCAG 1.4.4)
Fix: UIKit: UIFontMetrics(forTextStyle: .body).scaledFont(for: customFont). SwiftUI: .custom("FontName", size: X, relativeTo: .body)
Pattern: Fixed padding/spacing that doesn't scale with Dynamic Type
Search: Check for @ScaledMetric usage, scaledValue usage. Absence of both with fixed padding constants indicates issue.
Issue: Layout doesn't adapt to larger text sizes (WCAG 1.4.4)
Fix: SwiftUI: @ScaledMetric(relativeTo: .body) var spacing: CGFloat = 20. UIKit: UIFontMetrics(forTextStyle: .body).scaledValue(for: 20.0)
Pattern: Low contrast text/background combinations
Search: .foregroundColor(.gray), .foregroundStyle(.secondary) on small text; custom color definitions with low contrast pairs; missing accessibilityDifferentiateWithoutColor
Issue: Text unreadable for low vision users (WCAG 1.4.3 — 4.5:1 for text, 3:1 for large text)
Fix: Use semantic colors, verify contrast ratios, add differentiation without color
Pattern: Interactive elements smaller than 44x44pt
Search: .frame( with width or height under 44 on buttons/tappable elements
Issue: Hard to tap for users with motor impairments (WCAG 2.5.5)
Fix: Use .frame(minWidth: 44, minHeight: 44) or increase contentShape
Pattern: Animations without Reduce Motion check
Search: withAnimation without isReduceMotionEnabled check; .animation( without motion check
Issue: Causes discomfort for users with vestibular disorders (WCAG 2.3.3)
Fix: Check UIAccessibility.isReduceMotionEnabled or use .animation(.default, value:) which respects Reduce Motion
Pattern: Missing keyboard shortcuts and focus management
Search: Missing .keyboardShortcut on primary actions; non-focusable interactive elements; missing .focusable() on custom controls
Issue: Keyboard-only users can't navigate (iPadOS with external keyboard, macOS)
Fix: Add keyboard shortcuts for primary actions, ensure focus traversal
Using the Accessibility Surface Map from Phase 1 and your domain knowledge, check for what's missing — not just what's wrong.
| Question | What it detects | Why it matters | |----------|----------------|----------------| | Are there flows that are completely inaccessible via VoiceOver? (gesture-only interactions without accessibility equivalents) | Inaccessible critical paths | VoiceOver users can't complete core tasks — App Store rejection risk | | Are there screens where the only way to perform an action is via a gesture (drag, long press, pinch) with no button alternative? | Gesture-only paths | Users who can't perform gestures (motor impairments, Switch Control) are blocked | | Do custom-drawn views (Canvas, UIView with drawRect) expose their content to assistive technologies? | Hidden custom content | Custom rendering is invisible to VoiceOver unless manually exposed | | Is there a consistent accessibility pattern across the app, or do some views have labels while others don't? | Inconsistent coverage | Partial accessibility is worse than none — users start trusting VoiceOver then hit a wall | | Do modal flows (sheets, alerts, full-screen covers) properly manage VoiceOver focus? | Focus management gaps | VoiceOver focus stays on the background view instead of the presented modal | | Are there information-conveying images that are marked as decorative (accessibilityHidden)? | Over-hidden content | Meaningful images hidden from VoiceOver users lose information | | Does the app support the full range of Dynamic Type sizes (up to AX5) without layout breakage? | Partial Dynamic Type support | Users at accessibility text sizes get clipped/overlapping content |
For each finding, explain what's missing and why it matters. Require evidence from the Phase 1 map — don't speculate without reading the code.
When findings from different phases compound, the combined risk is higher than either alone. Bump the severity when you find these combinations:
| Finding A | + Finding B | = Compound | Severity | |-----------|------------|-----------|----------| | Gesture-only interaction | No accessibilityAction | Feature completely inaccessible | CRITICAL | | Missing labels on buttons | In critical flow (purchase, auth) | Core transaction inaccessible | CRITICAL | | Fixed font sizes | No @ScaledMetric for spacing | Completely ignores Dynamic Type | CRITICAL | | Custom font without scaling | In main content area | Primary text doesn't scale | HIGH | | Missing Reduce Motion | Looping/auto-play animation | Persistent discomfort trigger | HIGH | | Small touch targets | In frequently used controls | Repeated frustration for motor-impaired users | HIGH | | Missing labels | In list cells (repeated N times) | Entire list unusable for VoiceOver | HIGH | | Inconsistent labeling | Some views labeled, others not | Users can't predict what's accessible | MEDIUM |
Also note overlaps with other auditors:
Calculate and present a health score:
## Accessibility Health Score
| Metric | Value |
|--------|-------|
| VoiceOver label coverage | N interactive elements, M with labels (Z%) |
| Dynamic Type support | Semantic fonts: N, Fixed fonts: M, Scaling coverage: Z% |
| Gesture accessibility | N gesture-based interactions, M with accessibilityAction equivalents (Z%) |
| WCAG Level A | N violations |
| WCAG Level AA | N violations |
| WCAG Level AAA | N violations |
| **Health** | **COMPLIANT / GAPS / NON-COMPLIANT** |
Scoring:
# Accessibility Audit Results
## Accessibility Surface Map
[8-12 line summary from Phase 1]
## Summary
- CRITICAL: [N] issues (App Store rejection risk)
- HIGH: [N] issues (Major usability impact)
- MEDIUM: [N] issues (Moderate usability impact)
- LOW: [N] issues (Best practices)
- Phase 2 (anti-pattern detection): [N] issues
- Phase 3 (completeness reasoning): [N] issues
- Phase 4 (compound findings): [N] issues
## Accessibility Health Score
[Phase 5 table]
## Issues by Severity
### [SEVERITY/CONFIDENCE] [Category]: [Description]
**File**: path/to/file.swift:line
**Phase**: [2: Detection | 3: Completeness | 4: Compound]
**WCAG**: [guideline number and level]
**Issue**: What's wrong or missing
**Impact**: What users with disabilities experience
**Fix**: Code example showing the fix
**Cross-Auditor Notes**: [if overlapping with another auditor]
## Recommendations
1. [Immediate actions — CRITICAL fixes (App Store rejection risk)]
2. [Short-term — HIGH fixes (WCAG Level A/AA compliance)]
3. [Long-term — accessibility improvements from Phase 3 findings]
## Testing Checklist
- [ ] Test with VoiceOver (Cmd+F5 on simulator)
- [ ] Test with Dynamic Type at AX5 (Settings → Accessibility → Display & Text Size → Larger Text)
- [ ] Test with Reduce Motion (Settings → Accessibility → Motion → Reduce Motion)
- [ ] Test with external keyboard on iPad (Tab, arrow keys, Enter)
If >50 issues in one category: Show top 10, provide total count, list top 3 files If >100 total issues: Summarize by category, show only CRITICAL/HIGH details
.accessibilityHidden(true).swipeActions on List rows — automatically exposed via VoiceOver Actions rotor.font(.system(size: variable)) where the variable is @ScaledMetricImage(systemName:) — auto-generates VoiceOver labels.animation(.default, value:) — already respects Reduce Motion system settingFor comprehensive accessibility debugging: axiom-accessibility (accessibility-diag reference)
For Dynamic Type and typography: axiom-design (skills/typography-ref.md) skill
For UX flow accessibility: axiom-accessibility (ux-flow-audit reference)
development
Use when building ANY watchOS app — app structure, independent apps, Watch Connectivity, Smart Stack widgets, complications, controls, RelevanceKit, background tasks, ClockKit migration.
development
Use when working with HealthKit, WorkoutKit, health data, workouts, or fitness features on iOS or watchOS. Covers permissions, queries, background delivery, custom workouts, multidevice coordination.
development
Use when building, fixing, or improving ANY SwiftUI UI — views, navigation, layout, animations, performance, architecture, gestures, debugging, iOS 26 features.
content-media
Use when working with camera, photos, audio, haptics, ShazamKit, or Now Playing. Covers AVCaptureSession, PHPicker, PhotosPicker, AVFoundation, Core Haptics, audio recognition, MediaPlayer, CarPlay, MusicKit.