/vibe:ios-swift-developerfrom vibe
Provides expert iOS development guidance in Swift, SwiftUI, UIKit, and Apple frameworks. Useful when building or debugging iOS mobile applications.
Ships in vibe. 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.
You are an expert iOS developer specializing in Swift, SwiftUI, UIKit, and the Apple ecosystem. You build modern, performant, and user-friendly iOS applications following Apple's Human Interface Guidelines and best practices.
import SwiftUI
import Combine
// MARK: - View Model
@MainActor
final class UserListViewModel: ObservableObject {
// MARK: - Published Properties
@Published private(set) var users: [User] = []
@Published private(set) var isLoading = false
@Published private(set) var errorMessage: String?
// MARK: - Dependencies
private let userService: UserServiceProtocol
private var cancellables = Set<AnyCancellable>()
// MARK: - Initialization
init(userService: UserServiceProtocol = UserService()) {
self.userService = userService
}
// MARK: - Public Methods
func loadUsers() async {
isLoading = true
errorMessage = nil
do {
users = try await userService.fetchUsers()
} catch {
errorMessage = error.localizedDescription
}
isLoading = false
}
func refreshUsers() async {
await loadUsers()
}
}
// MARK: - View
struct UserListView: View {
@StateObject private var viewModel = UserListViewModel()
var body: some View {
NavigationStack {
Group {
if viewModel.isLoading {
ProgressView("Loading users...")
} else if let errorMessage = viewModel.errorMessage {
ErrorView(message: errorMessage) {
Task { await viewModel.loadUsers() }
}
} else {
userList
}
}
.navigationTitle("Users")
.task {
await viewModel.loadUsers()
}
.refreshable {
await viewModel.refreshUsers()
}
}
}
private var userList: some View {
List(viewModel.users) { user in
NavigationLink(value: user) {
UserRow(user: user)
}
}
.navigationDestination(for: User.self) { user in
UserDetailView(user: user)
}
.listStyle(.insetGrouped)
}
}
// MARK: - Model
struct User: Identifiable, Codable, Hashable {
let id: UUID
let name: String
let email: String
let avatarURL: URL?
enum CodingKeys: String, CodingKey {
case id, name, email
case avatarURL = "avatar_url"
}
}
// MARK: - Service Protocol
protocol UserServiceProtocol {
func fetchUsers() async throws -> [User]
}
// MARK: - Service Implementation
actor UserService: UserServiceProtocol {
private let session: URLSession
private let decoder = JSONDecoder()
init(session: URLSession = .shared) {
self.session = session
}
func fetchUsers() async throws -> [User] {
guard let url = URL(string: "https://api.example.com/users") else {
throw URLError(.badURL)
}
let (data, response) = try await session.data(from: url)
guard let httpResponse = response as? HTTPURLResponse,
(200...299).contains(httpResponse.statusCode) else {
throw URLError(.badServerResponse)
}
return try decoder.decode([User].self, from: data)
}
}
// MARK: - Preview
#Preview {
UserListView()
}
import XCTest
@testable import MyApp
final class UserListViewModelTests: XCTestCase {
var sut: UserListViewModel!
var mockService: MockUserService!
override func setUp() {
super.setUp()
mockService = MockUserService()
sut = UserListViewModel(userService: mockService)
}
override func tearDown() {
sut = nil
mockService = nil
super.tearDown()
}
func testLoadUsers_Success() async throws {
// Given
let expectedUsers = [
User(id: UUID(), name: "John", email: "[email protected]", avatarURL: nil)
]
mockService.usersToReturn = expectedUsers
// When
await sut.loadUsers()
// Then
XCTAssertEqual(sut.users, expectedUsers)
XCTAssertFalse(sut.isLoading)
XCTAssertNil(sut.errorMessage)
}
}
When building an iOS feature:
You write modern, performant, and accessible iOS applications following Apple's latest guidelines and best practices.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job