ios-dev — скилл для Claude Code: что делает и как установить
Точка входа для разработки под iOS и SwiftUI в ИИ-агентах. Координирует руководства по паттернам, чек-лист корректности и справочники по API Apple.
npx skills add Prisma-Labs-Dev/apple-skills --skill ios-dev -a claude-codeЧто делает ios-dev
Скилл работает как диспетчер для набора Apple-навыков. Он подсказывает агенту, какой гайд или справочник загрузить при создании экранов или аудите производительности. Скилл одинаково поддерживает SwiftUI и UIKit, не навязывая конкретную архитектуру вроде MVVM или TCA.
Внутри заложены три рабочих процесса: ревью кода, улучшение существующих компонентов и создание новой функциональности. Проверка опирается на строгий чек-лист: запрет бизнес-логики в body, приватность @State и обязательный @MainActor для @Observable из-за требований многопоточности Swift 6.
Свойства @AppStorage или @Query внутри наблюдаемых классов требуют аннотации @ObservationIgnored, иначе возникнут ошибки компилятора макросов. Этот чек-лист сразу отсекает скрытые сбои синхронизации состояния.
Какие задачи решает
- координировать выбор руководств и API Apple для задач по iOS
- проверять SwiftUI-код по строгому чек-листу типовых ошибок
- находить нужные гайды по навигации, анимациям и многопоточности
- выстраивать поток данных перед написанием новой функциональности
Примеры запросов агенту
- Проведи ревью этого SwiftUI-экрана по чек-листу ios-dev
- Помоги спланировать архитектуру данных и написать форму ввода на SwiftUI
- Найди руководство по оптимизации производительности списков и ScrollView
Как установить ios-dev
1Через Skills CLI (Vercel)
npx skills add Prisma-Labs-Dev/apple-skills --skill ios-dev -a claude-code2Вручную: положить файлы
~/.claude/skills/ios-dev/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ios-dev/
1Через Skills CLI (Vercel)
npx skills add Prisma-Labs-Dev/apple-skills --skill ios-dev -a codex2Вручную: положить файлы
.agents/skills/ios-dev/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Prisma-Labs-Dev/apple-skills --skill ios-dev -a cursor2Вручную: положить файлы
.cursor/skills/ios-dev/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Prisma-Labs-Dev/apple-skills ios-dev2Вручную: положить файлы
.github/skills/ios-dev/SKILL.md1Через Skills CLI (Vercel)
npx skills add Prisma-Labs-Dev/apple-skills --skill ios-dev -a gemini-cli2Командой платформы
gemini skills install https://github.com/Prisma-Labs-Dev/apple-skills --path skills/ios-devВручную: положить файлы
.devin/skills/ios-dev/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Prisma-Labs-Dev/apple-skills --skill ios-dev -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора21
Похожие
Рядом в теме «Мобильная разработка»
Всё по теме «Мобильная разработка» →Вопросы о ios-dev
Как установить ios-dev в Claude Code?
Выполните команду npx skills add Prisma-Labs-Dev/apple-skills --skill ios-dev -a claude-code. Файл навыка будет сохранён по пути ~/.claude/skills/ios-dev/SKILL.md.
Что делает скилл ios-dev?
Он служит стартовой точкой для задач по iOS: определяет подходящие руководства по фреймворкам, запускает чек-лист корректности кода и помогает агенту обращаться к документации Apple.
Навязывает ли скилл конкретную архитектуру приложения?
Нет, скилл не требует обязательного использования MVVM, VIPER или TCA. Главное правило — отделять бизнес-логику от представлений и изолировать состояние.
Исходный текст
SKILL.md · MIT
--- name: ios-dev user-invocable: true description: "Start here for any iOS or SwiftUI task. Coordinates best-practice guides, correctness checks, and full Apple API references. Use before navigating to other Apple skills — for building, reviewing, refactoring, or debugging iOS apps." --- # iOS Development Start here. This skill coordinates the Apple skills collection — it tells you *which* skill to use and *when*, so you get opinionated guidance and full API references together. ## Operating Rules - SwiftUI and UIKit are both first-class — pick whichever fits the task. UIKit is a valid choice whenever it gives more control or flexibility; when bridging the two, watch state sync, lifecycle, and animation/environment boundaries. - Do not enforce specific architectures (MVVM, VIPER, MV, TCA, etc.) — encourage separating business logic from views without mandating how - Hold a high bar for UI craft: apps should feel current-generation — fluid, design-forward, alive. Sweat the tiny details. Custom components, novel interactions, and custom Metal shaders are all in-bounds when they serve the experience; system defaults are a floor, not a ceiling. - Do not prescribe how that craft is delivered — no house style, no "Apple-approved" gatekeeping, no aesthetic checklists. Design direction is your own judgment call, made per app. The `hig` and `ios-liquid-glass` skills document what the system provides; they are references, not style mandates. **When the task is designing a screen or making it look good, there is no doc to route to** — design from your own taste; grep references only when you need API mechanics or a factual minimum (e.g. hit-target sizes). - Present performance optimizations as suggestions backed by reasoning, not blanket requirements - When you need exact API details, grep the framework reference skills — they contain full Apple documentation ## Task Workflows ### Review existing code 1. Read the code and identify which topics apply 2. Run the **Correctness Checklist** below — violations are bugs 3. Use the **Topic Router** to load the relevant guide for each topic 4. For API correctness, grep the matching framework reference skill ### Improve existing code 1. Run the correctness checklist first 2. For performance issues: use `guide-swiftui-performance-audit` 3. For navigation, state, or pattern questions: use Apple's `swiftui-specialist` (shipped with Xcode 27; exported to the user skills dir), then the `swiftui` API reference 4. For API details: grep the matching framework reference skill ### Build a new feature 1. Design data flow first — identify owned vs. injected state 2. For UI patterns and app wiring: use Apple's `swiftui-specialist`, then the `swiftui` API reference 3. For API details: grep the matching framework reference skill 4. Structure views for optimal diffing — extract subviews early 5. Run the correctness checklist before finishing ## Topic Router The **Guide** column has opinionated, short pattern guides. The **API Reference** column has full Apple documentation as grepable Markdown — use `apple-docs-index` to find which framework has what. | Topic | Guide | API Reference | |-------|-------|---------------| | State management | `swiftui-specialist` (Apple, Xcode 27) | `swiftui` (state.md, binding.md, observation.md, environment.md) | | View composition | — | `swiftui` (view-protocol.md) | | Performance | `guide-swiftui-performance-audit` | — | | Navigation | `swiftui-specialist` (Apple, Xcode 27) | `swiftui` (navigationstack.md, navigationsplitview.md, navigationlink.md) | | Sheets & modals | `swiftui-specialist` (Apple, Xcode 27) | `swiftui` (sheet.md, inspector.md, alert.md, confirmationdialog.md) | | Lists & ForEach | `swiftui-specialist` (Apple, Xcode 27) | `swiftui` (list.md) | | ScrollView | `swiftui-specialist` (Apple, Xcode 27) | `swiftui` (scrollview.md) | | Forms & input | — | `swiftui` (form.md, textfield.md, picker.md, toggle.md, slider.md) | | Charts | `guide-swiftui-charts` | `swiftui` (chart.md, charts-overview.md) | | Animations | `swiftui-specialist` (Apple, Xcode 27) | `swiftui` (swiftui-overview.md) | | Layout | `swiftui-specialist` (Apple, Xcode 27) | `swiftui` (geometryreader.md, grid.md, hstack.md, vstack.md, zstack.md, spacer.md) | | TabView | `swiftui-specialist` (Apple, Xcode 27) | `swiftui` (tabview.md) | | Liquid Glass | — | `ios-liquid-glass` | | Accessibility | `swiftui-specialist` (Apple, Xcode 27) | `hig` (a11y/ergonomic facts) | | macOS apps | `guide-macos-spm-packaging` | `swiftui`, `uikit` | | Data persistence | `guide-swiftdata` | `swiftdata` | | Testing | `guide-swift-testing` | `swift-testing`, `xcuitest` | | Concurrency | `guide-swift-concurrency` | `swift-concurrency` | | In-app purchases | — | `storekit` | | Maps | — | `mapkit` | | Health data | — | `healthkit` | | Notifications | — | `usernotifications` | | App Intents / Siri | `app-intents-specialist`, `app-intents-whats-new-27` (Apple, Xcode 27) | — | | Widgets | — | `widgetkit` | | App Store metadata | `apple-aso` | — | | Finding docs | `apple-docs-index` | — | ## Correctness Checklist These are hard rules — violations are always bugs: - [ ] `@State` properties are `private` - [ ] `@Binding` only where a child needs to mutate parent state - [ ] Values passed in are never declared as `@State` — they silently ignore updates - [ ] Use `@State` with `@Observable` classes — not `@StateObject` or `ObservableObject` - [ ] Use `@Bindable` for injected observables that need bindings - [ ] `ForEach` uses stable identity — never `.indices` on dynamic content - [ ] Each `ForEach` element produces a constant number of views - [ ] `.animation(_:value:)` always includes the `value:` parameter - [ ] `@FocusState` properties are `private` - [ ] `@Observable` classes are `@MainActor` — Swift 6 strict concurrency requires it - [ ] Property wrappers (`@AppStorage`, `@SceneStorage`, `@Query`) inside `@Observable` classes are marked `@ObservationIgnored` — they conflict with the macro and cause compiler errors - [ ] No business logic in `body` — use `.task`, `.onChange`, or methods - [ ] No `AnyView` unless truly unavoidable — fix with better composition ## Related Skills **System API reference:** - `/ios-liquid-glass` — Liquid Glass API reference **Workflow guides:** - `/swiftui-specialist` — Apple's SwiftUI best practices (Xcode 27): structure, data flow, environment, ForEach identity, localization, soft deprecations - `/swiftui-whats-new-27` — iOS 27 SwiftUI changes (@State macro, @ContentBuilder, reorderable, toolbar overflow) - `/guide-swiftui-charts` — Marks, axes, selection, styling, accessibility - `/guide-swiftui-performance-audit` — Diagnose and fix performance issues - `/guide-swift-testing` — Swift Testing patterns, async tests, common agent mistakes - `/guide-swift-concurrency` — Concurrency patterns, actors, diagnostics, bug patterns - `/guide-swiftdata` — SwiftData patterns, predicates, CloudKit constraints - `/guide-macos-spm-packaging` — Build macOS apps with SwiftPM **Utilities:** - `/apple-docs-index` — Find the right Apple documentation - `/apple-aso` — App Store Optimization
© Prisma-Labs-Dev · MIT · Prisma-Labs-Dev/apple-skills