Community-maintained Agent Skills for complete Swift and Apple-platform app delivery.
72
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Medium
Suggest reviewing before use
Apply modern Swift 6.3 syntax and idioms without altering behavior or evaluation order. Route concurrency to swift-concurrency, deep serialization to swift-codable, formatting to swift-formatstyle, naming to swift-api-design-guidelines, and SwiftUI state to swiftui-patterns.
Use value-producing if and switch expressions for direct assignment, initialization, and single-expression returns:
// Direct variable initialization from expression
let statusColor = switch order.status {
case .pending: Color.orange
case .completed: Color.green
case .failed: Color.red
}
let badge = if isFeatured { "star.fill" } else { "circle" }Every branch must produce identical value types without multi-statement bodies.
Specify concrete error types when callers benefit from exhaustive compile-time error handling:
enum PaymentError: Error {
case cardExpired, insufficientFunds
}
func processPayment() throws(PaymentError) {
guard hasFunds else { throw .insufficientFunds }
}
// Caller error handling is exhaustive without casting
do {
try processPayment()
} catch {
switch error {
case .cardExpired: promptNewCard()
case .insufficientFunds: promptDeposit()
}
}Use throws(Never) for non-throwing conformance in generic protocols. For mixed or open error sources, retain untyped throws.
some Protocol (Opaque): Preferred for return and parameter types. Preserves underlying static type information, enables compiler optimizations, and avoids existential container allocation overhead.any Protocol (Existential): Use only when dynamic heterogeneous collections or runtime polymorphism is explicitly required (e.g. [any Plugin]).// Parameter pack / opaque parameter
func render(item: some Displayable) { ... }
// Heterogeneous collection requires existential boxing
let plugins: [any Plugin] = [AudioPlugin(), VisualPlugin()]@resultBuilder: Construct declarative DSLs by implementing buildBlock, buildOptional, and buildEither.@propertyWrapper: Encapsulate reusable property storage or validation via wrappedValue and projected projectedValue ($).@propertyWrapper
struct Clamped<T: Comparable> {
var value: T
let range: ClosedRange<T>
var wrappedValue: T {
get { value }
set { value = min(max(newValue, range.lowerBound), range.upperBound) }
}
}#/pattern/# with typed capture groups and RegexBuilder.contains(where:), allSatisfy, min(by:), and non-mutating transformations.any instead of some: Using any Protocol incurs existential boxing costs and suppresses type relationship inference. Prefer some Protocol.throws(MyError) on functions that wrap URLSession or system APIs requires fragile error translation. Use untyped throws for mixed errors.if/switch expressions only evaluate single-expression branches. Multi-line logic requires traditional statements.if/switch used for concise variable initializationthrows(SpecificError) used only where callers genuinely need exhaustive handlingsome Protocol chosen over any Protocol unless heterogeneous storage is requiredRegexBuilder.tessl-plugin
skills
accessorysetupkit
references
activitykit
adattributionkit
references
alarmkit
references
app-clips
app-intents
app-store-optimization
app-store-review
apple-on-device-ai
appmigrationkit
audioaccessorykit
references
authentication
references
avfoundation-audio
references
avkit
background-processing
references
browserenginekit
callkit
references
carplay
cloudkit
contacts-framework
references
core-bluetooth
references
core-data
core-haptics
references
core-motion
references
core-nfc
references
coreml
references
cryptokit
cryptotokenkit
debugging-instruments
device-integrity
references
energykit
references
eventkit
family-controls
references
financekit
focus-engine
gamekit
git-branching-workflow
references
healthkit
references
homekit
references
ios-accessibility
ios-app-workflow
references
ios-ettrace-performance
ios-localization
ios-memgraph-analysis
ios-networking
ios-simulator
references
metrickit
references
musickit
references
natural-language
paperkit
references
passkit
references
pdfkit
pencilkit
references
permissionkit
references
photokit
push-notifications
quicklook
references
realitykit
references
relevancekit
references
scenekit
sensorkit
shazamkit
references
speech-recognition
references
spritekit
storekit
swift-api-design-guidelines
swift-architecture
references
swift-charts
swift-codable
references
swift-code-review
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-responsive-layout
swiftui-uikit-interop
swiftui-webkit
tabletopkit
tipkit
vision-framework
weatherkit
references