Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dpearson2699/swift-language
Apply modern Swift language patterns and idioms for non-concurrency, non-SwiftUI code. Covers if/switch expressions (Swift 5.9+), typed throws (Swift 6+), result builders, property wrappers, opaque and existential types (some vs any), guard patterns, Never type, Regex builders (Swift 5.7+), basic Codable shaping (CodingKeys, custom decoding, nested containers), modern collection APIs (count(where:), contains(where:), replacing()), basic FormatStyle usage, and string interpolation patterns. Use w
Passed 22 of 22 test cases with the skill, and 16 of 22 without it.
and 8 more in the full report
6 fixed16 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need to implement a complex Swift Decodable model for a web payload where key names are dynamically mapped and nested JSON containers must be decoded manually into strongly typed structs. Please provide the complete custom decoding implementation and CodingKeys setup.
| Checked | Without skill | With skill |
|---|---|---|
| The response routes the task to the swift-codable skill. | Missed | Passed |
| The response refrains from writing a full custom Decodable implementation. | Missed | Passed |
The instructions your model reads when the skill loads.
Apply current Swift language syntax without changing behavior or evaluation order.
Route deep decoding to swift-codable, formatting to swift-formatstyle, naming
to swift-api-design-guidelines, concurrency to swift-concurrency, and SwiftUI
state/view work to swiftui-patterns.
For modernization, pin current behavior and evaluation order, make one semantic rewrite, compile the affected module, and run focused fixtures/tests. Fix any change before continuing; repeat until behavior is preserved.
Swift 5.9+ allows if and switch as expressions that return values. Use them
to assign, return, or initialize directly.
// Assign from if expression
let icon = if isComplete { "checkmark.circle.fill" } else { "circle" }
// Assign from switch expression
let label = switch status {
test cases passed, vs 16 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.