/ios:mobiai-ios-architecturefrom ios
Helps navigate, understand, and contribute to iOS codebases by detecting architecture patterns (MVVM, TCA, UIKit vs SwiftUI) and showing where to make changes.
Ships in ios. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Community contribution welcome! Help improve this skill with your architecture insights, patterns, and real-world examples.
Common architecture patterns in iOS apps.
# Check for SwiftUI vs UIKit
grep -r "import SwiftUI" --include="*.swift" -l | wc -l
grep -r "import UIKit" --include="*.swift" -l | wc -l
# Check for architecture indicators
grep -r "ViewModel\|UseCase\|Repository\|Interactor\|Presenter\|Store\|Reducer" --include="*.swift" -l | head -20
# Check for Combine usage
grep -r "import Combine\|@Published\|AnyPublisher" --include="*.swift" -l | wc -l
# Check for TCA (The Composable Architecture)
grep -r "import ComposableArchitecture\|ReducerOf\|Store<" --include="*.swift" -l | head -10
Feature/
Views/
MyView.swift # SwiftUI View
MyDetailView.swift
ViewModels/
MyViewModel.swift # ObservableObject with @Published
Models/
MyModel.swift # Data models
Services/
MyService.swift # API/data access
// ViewModel
@MainActor
class MyViewModel: ObservableObject {
@Published var items: [Item] = []
@Published var isLoading = false
@Published var error: Error?
private let repository: ItemRepository
init(repository: ItemRepository) {
self.repository = repository
}
func loadItems() async {
isLoading = true
defer { isLoading = false }
do {
items = try await repository.fetchItems()
} catch {
self.error = error
}
}
}
// View
struct MyView: View {
@StateObject private var viewModel = MyViewModel(repository: .live)
var body: some View {
List(viewModel.items) { item in
Text(item.name)
}
.task { await viewModel.loadItems() }
}
}
Feature/
MyViewController.swift # UIViewController
MyViewModel.swift # ViewModel with Combine publishers
MyCoordinator.swift # Navigation coordinator (optional)
class MyViewModel {
@Published var items: [Item] = []
private let repository: ItemRepository
private var cancellables = Set<AnyCancellable>()
func loadItems() {
repository.fetchItems()
.receive(on: DispatchQueue.main)
.sink(
receiveCompletion: { _ in },
receiveValue: { [weak self] items in
self?.items = items
}
)
.store(in: &cancellables)
}
}
Feature/
MyFeature.swift # Reducer + State + Action
MyView.swift # View with Store
@Reducer
struct MyFeature {
@ObservableState
struct State: Equatable {
var items: [Item] = []
var isLoading = false
}
enum Action {
case loadItems
case itemsLoaded([Item])
}
@Dependency(\.itemClient) var itemClient
var body: some ReducerOf<Self> {
Reduce { state, action in
switch action {
case .loadItems:
state.isLoading = true
return .run { send in
let items = try await itemClient.fetch()
await send(.itemsLoaded(items))
}
case .itemsLoaded(let items):
state.isLoading = false
state.items = items
return .none
}
}
}
}
Domain/
Entities/Item.swift # Business models
UseCases/GetItemsUseCase.swift
Repositories/ItemRepository.swift # Protocol
Data/
Repositories/ItemRepositoryImpl.swift
Network/ItemAPI.swift
Persistence/ItemStore.swift
Presentation/
Scenes/ItemList/
ItemListView.swift
ItemListViewModel.swift
grep -r "NavigationStack\|NavigationLink\|navigationDestination" --include="*.swift" -l | head -10
grep -r "Coordinator\|protocol.*Coordinator" --include="*.swift" -l | head -10
grep -r "Router\|protocol.*Router" --include="*.swift" -l | head -10
# Find all ViewModels
grep -r "class.*ViewModel\|struct.*ViewModel" --include="*.swift" -l
# Find all Views/ViewControllers
grep -r "struct.*View.*:.*View\|class.*ViewController" --include="*.swift" -l
# Find dependency injection setup
grep -r "@Environment\|@EnvironmentObject\|container.register" --include="*.swift" -l
Want to improve this skill? Share your architecture patterns, navigation strategies, and real-world iOS expertise via a PR.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arisguimera/mobiai-core --plugin ios4 skills in this plugin
/mobiai-ios-buildUse when building an iOS project, configuring schemes, troubleshooting build failures, or managing dependencies with CocoaPods or SPM./mobiai-ios-deviceUse when interacting with an iOS Simulator — run simctl commands, capture screenshots, read device logs, manage simulators./mobiai-ios-testingUse when writing or running tests in an iOS project — unit tests, UI tests, snapshot tests, choosing the right framework.2 plugins ship this exact skill · first indexed Jul 20, 2026
Other plugins' skills for the same job