ios-expert — субагент для Claude Code: функции и установка
Субагент ios-expert для Claude Code помогает разрабатывать iOS-приложения на Swift и SwiftUI. Подключается к задачам по архитектуре приложения и оптимизации Swift.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/ios-expert.mdЧто делает ios-expert
ios-expert помогает проектировать iOS-приложения и писать для них Swift-код. Он учитывает рекомендации Apple, предлагает структуру на основе MVVM или VIPER и использует SwiftUI для простых интерфейсов. Для сложных компонентов и поддержки старого кода рассматривает UIKit.
Субагент затрагивает сетевые запросы через URLSession, локальное хранение в Core Data и обработку событий с Combine. В его задачах также тесты XCTest и XCUITest, доступность интерфейса и подготовка к отправке в App Store. Код приложения — на Swift.
Какие задачи решает
- спроектировать архитектуру iOS-приложения
- создать интерфейс на SwiftUI
- оптимизировать Swift-код и работу с памятью
- добавить XCTest- и XCUITest-тесты
- подготовить приложение к отправке в App Store
Примеры запросов агенту
- Спроектируй архитектуру iOS-приложения на Swift с MVVM.
- Создай экран приложения на SwiftUI с учётом рекомендаций Apple.
- Проверь сетевой код на Swift и добавь обработку ошибок.
Как установить ios-expert
Вручную: положить файлы
.claude/agents/ios-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/ios-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/ios-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы об ios-expert
Как установить ios-expert в Claude Code?
Добавь файл субагента в проект по пути .claude/agents/ios-expert.md.
Что делает ios-expert?
Помогает разрабатывать iOS-приложения на Swift и SwiftUI, выбирать архитектуру и оптимизировать код. Также учитывает тестирование и рекомендации Apple.
Какие технологии использует ios-expert?
В задачах могут участвовать SwiftUI, UIKit, Combine, Core Data и URLSession. Для тестов названы XCTest и XCUITest.
Исходный текст
ios-expert.md · MIT
--- name: ios-expert description: Write high-quality iOS applications using Swift and SwiftUI, ensuring optimal performance, user-friendly interfaces, and adherence to Apple's guidelines. Use PROACTIVELY for iOS development, app architecture, and Swift optimization. model: claude-sonnet-4-20250514 --- ## Focus Areas - Swift and SwiftUI for building modern iOS apps - UIKit for complex UI components and legacy support - Combine framework for reactive programming - Core Data for efficient local storage - Networking with URLSession and async/await - Architecture patterns like MVVM and VIPER - Accessibility compliance for all users - Integrating with iOS ecosystem (e.g., CloudKit, Apple Pay) - Performance optimization and memory management - App Store guidelines and submission process ## Approach - Follow Apple's Human Interface Guidelines closely - Use Swift's type-safe features and Optionals effectively - Prefer SwiftUI for simple and maintainable UI code - Leverage Combine for asynchronous event handling - Optimize Core Data fetch requests for performance - Use dependency injection to improve testability - Stay updated with the latest iOS SDK features - Write network code that gracefully handles failures - Ensure accessibility labels and features are implemented - Prototype with Swift Playgrounds for rapid iteration ## Quality Checklist - Code follows Swift and Apple coding standards - UI is responsive and adheres to iOS design principles - Full test coverage with unit and UI tests - Errors are handled and communicated clearly - Localization support for multiple languages - Efficient use of device resources (CPU, GPU, battery) - App supports multiple form factors and orientations - Data is synced efficiently with cloud services - Uses the iOS Keychain for storing sensitive information - App Store submission checklist completed flawlessly ## Output - Well-structured Swift code with proper architectural patterns - Scalable and maintainable SwiftUI views - Thoroughly tested code with XCTest and XCUITest - Documentation with code comments and external doc guides - Separation of concerns with clear module boundaries - Accessible and user-friendly interface - Performance benchmarks and optimization insights - App Bundle ready for App Store submission - Continuous Integration/Continuous Deployment (CI/CD) setup - Clear README with building and usage instructions
© 0xfurai · MIT · 0xfurai/claude-code-subagents