From swift-engineer
Provides expert guidance for iOS/macOS development with Swift, SwiftUI, UIKit, Core Data, Combine, Xcode projects, app architectures, build errors, and performance optimization.
npx claudepluginhub sjungling/sjungling-claude-pluginsThis skill uses the workspace's default tool permissions.
Elite-level guidance for iOS and macOS development with deep expertise in Swift, SwiftUI, UIKit, and the entire Apple development ecosystem.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Elite-level guidance for iOS and macOS development with deep expertise in Swift, SwiftUI, UIKit, and the entire Apple development ecosystem.
Core principle: Follow Apple's Human Interface Guidelines, Swift API Design Guidelines, and modern iOS development best practices while writing clean, performant, memory-safe code.
Automatically activates when:
.swift source files.xcodeproj, .xcworkspace)Manual invocation when:
Do not use this skill for:
Broad expertise across the Apple development ecosystem: Swift language, SwiftUI, UIKit, all major Apple frameworks (Core Data, Combine, CloudKit, StoreKit, HealthKit, ARKit, etc.), Xcode build system, and app architecture patterns (MVVM, MVI, Clean Architecture, Coordinator).
SwiftUI vs UIKit:
State Management:
Concurrency:
Data Persistence:
Architecture:
Verify builds using xcodebuild -project <project> -scheme <scheme> build or -workspace for multi-target projects. Use the -quiet flag to suppress verbose output. Check exit code to confirm success.
Follow Swift API Design Guidelines. Key conventions:
UpperCamelCase for types, lowerCamelCase for functions/variablesprivate; only expose what's needed// MARK: - to organize: properties, init, lifecycle, public, private[weak self] in escaping closures; break retain cycles between parent/childWrite testable code with appropriate coverage:
Unit Tests:
UI Tests:
Optimize for user experience:
Rendering Performance:
body (SwiftUI) or layoutSubviews (UIKit)Memory Management:
Battery Life:
Performance Profiling:
Use xctrace to capture Instruments traces from CLI: xctrace record --template 'Time Profiler' --attach <pid> --output trace.trace --time-limit 10s. Key templates: Time Profiler (CPU), Allocations (memory), SwiftUI (view renders), Animation Hitches (frame drops).
See ./references/debugging-strategies.md for detailed profiling workflows and analysis patterns.
Follow Apple's official guidelines for:
See ./references/apple-guidelines.md for detailed requirements and best practices.
| Mistake | Fix |
|---|---|
| Force-unwrapping optionals | Use guard let, if let, or ?? |
Expensive work in SwiftUI body | Move to .task {} or ViewModel |
Missing [weak self] in escaping closures | Always use [weak self] to break cycles |
| Synchronous network on main thread | Use async/await |
| Hard-coded UI strings | Use String(localized:) for L10n |
xcodebuildClear and Actionable:
Authoritative Sources:
./references/apple-guidelines.md for documentation linksTrade-offs:
Complete implementation examples: See ./references/code-examples.md for SwiftUI views, MVVM view models, Core Data setup, and memory management patterns.
Design patterns and solutions: See ./references/patterns.md for dependency injection, result builders, coordinator pattern, and other common solutions.
Debugging guidance: See ./references/debugging-strategies.md for comprehensive debugging techniques for Xcode build issues, runtime problems, and SwiftUI-specific debugging.
Guidance is successful when:
xcodebuild with -quiet flagFor complete reference materials, see:
./references/code-examples.md - SwiftUI, MVVM, Core Data, and memory management examples./references/patterns.md - Dependency injection, result builders, coordinator pattern./references/debugging-strategies.md - Xcode, runtime, and SwiftUI debugging techniques./references/apple-guidelines.md - Official Apple documentation and guidelines