Agent skills for iOS, iPadOS, Swift, SwiftUI, and modern Apple framework development.
80
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Advisory
Suggest reviewing before use
Load this reference after the main skill selects a pattern. Keep feature behavior and dependency contracts stable while adopting these structures.
Use a view model only when it owns presentation behavior rather than forwarding a model:
@MainActor @Observable
final class CheckoutViewModel {
private let pricing: PricingService
var items: [LineItem] = []
var promoCode = ""
var total: Decimal { pricing.total(for: items, promoCode: promoCode) }
init(pricing: PricingService) { self.pricing = pricing }
}Inject the service, test transformations and error states directly, and keep view-only focus/layout state in the view.
Define explicit state, user intents, and one transition/effect boundary:
struct SearchState: Equatable {
var query = ""
var results: [Result] = []
var isLoading = false
}
enum SearchIntent { case queryChanged(String), submitted, response([Result]) }
@MainActor @Observable
final class SearchStore {
private(set) var state = SearchState()
func send(_ intent: SearchIntent) { /* reduce and launch bounded effects */ }
}Test every state/intent pair, effect cancellation, and stale-response handling.
Model each feature with state, actions, a reducer body, and injected dependencies. Compose child reducers at feature boundaries and test with TestStore. Keep navigation state in the feature only when the route belongs to that feature. Check the current Composable Architecture documentation before copying macro or testing syntax because package APIs evolve independently of Apple SDKs.
Dependency direction points inward:
UI / presenters -> use cases -> domain entities
data adapters -> repository protocols <- use casesKeep domain types independent of SwiftUI, persistence, and networking. Introduce mapping only where it protects a real boundary; avoid one protocol per concrete type without a substitution need.
Use a coordinator as the route and child-flow owner in UIKit or hybrid apps:
@MainActor
protocol Coordinator: AnyObject {
var children: [Coordinator] { get set }
func start()
}Retain child coordinators for the flow lifetime, remove them on completion, and keep business state in the feature model rather than the coordinator.
Preserve existing responsibilities during maintenance:
When migrating away, replace one module boundary at a time and keep adapters until upstream callers use the new feature interface.
.tessl-plugin
skills
accessorysetupkit
references
activitykit
references
adattributionkit
references
alarmkit
references
app-clips
app-intents
app-store-optimization
app-store-review
apple-on-device-ai
appmigrationkit
references
audioaccessorykit
references
authentication
references
avkit
references
background-processing
references
browserenginekit
references
callkit
references
carplay
references
cloudkit
references
contacts-framework
references
core-bluetooth
references
core-data
core-motion
references
core-nfc
references
coreml
references
cryptokit
references
cryptotokenkit
references
debugging-instruments
device-integrity
references
dockkit
references
energykit
references
eventkit
references
financekit
references
focus-engine
gamekit
references
healthkit
references
homekit
references
ios-accessibility
ios-ettrace-performance
ios-localization
ios-memgraph-analysis
ios-networking
ios-simulator
references
mapkit
metrickit
references
musickit
references
natural-language
references
paperkit
references
passkit
references
pdfkit
references
pencilkit
references
permissionkit
references
photokit
push-notifications
realitykit
references
relevancekit
references
scenekit
references
sensorkit
references
speech-recognition
references
spritekit
references
storekit
swift-api-design-guidelines
swift-architecture
references
swift-charts
references
swift-codable
references
swift-concurrency
swift-formatstyle
references
swift-language
swift-security
references
swift-testing
swiftdata
swiftlint
swiftui-animation
swiftui-gestures
references
swiftui-layout-components
swiftui-liquid-glass
references
swiftui-patterns
swiftui-performance
swiftui-uikit-interop
swiftui-webkit
tabletopkit
references
tipkit
references
vision-framework
weatherkit
references
widgetkit
references