ios-accessibility
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.
What this skill does
# 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 proRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.