Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dpearson2699/swift-codable
Implement Swift Codable models for JSON and property-list encoding and decoding with JSONDecoder, JSONEncoder, CodingKeys, and custom init(from:) or encode(to:).
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
1 fixed20 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
In Swift JSON decoding, when is it appropriate to catch decoding errors per item and skip bad elements in an array, rather than failing the entire decoding operation?
| Checked | Without skill | With skill |
|---|---|---|
| States that lossy decoding should only be used when partial array success is an explicit contract requirement. | Missed | Passed |
The instructions your model reads when the skill loads.
Encode and decode Swift types using Codable (Encodable & Decodable) with
JSONEncoder, JSONDecoder, and related APIs. Targets Swift 6.3 / iOS 26+.
DecodingError, its codingPath, and the raw payload.When all stored properties are themselves Codable, the compiler synthesizes
conformance automatically:
test cases passed, vs 20 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.