Skip to main content
Back to registry

codable-patterns

dpearson2699/swift-ios-skills

Encode and decode Swift types using Codable ( Encodable & Decodable ) with JSONEncoder , JSONDecoder , and related APIs. Targets Swift 6.2 / iOS 26+.

Installs148
Install command
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill codable-patterns
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Encode and decode Swift types using Codable ( Encodable & Decodable ) with JSONEncoder , JSONDecoder , and related APIs. Targets Swift 6.2 / iOS 26+. When all stored properties are themselves Codable , the compiler synthesizes conformance automatically: Prefer Decodable for read-only API responses and Encodable for write-only. Use Codable only when both directions are required. Rename JSON keys without writing a custom decoder by declaring a CodingKeys enum: Every stored property must appear in the enum. Omitting a property from CodingKeys excludes it from encoding/decoding -- provide a default value or compute it separately. Override init(from:) and encode(to:) for transformations the synthesized conformance cannot handle: Use nestedContainer(keyedBy:forKey:) to navigate and flatten nested JSON: Chain multiple nestedContainer calls to flatten deeply nested structures. Also use nestedUnkeyedContainer(forKey:) for nested arrays.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does codable-patterns do?

Encode and decode Swift types using Codable ( Encodable & Decodable ) with JSONEncoder , JSONDecoder , and related APIs. Targets Swift 6.2 / iOS 26+.

Is codable-patterns good?

codable-patterns does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does codable-patterns work with?

codable-patterns currently lists compatibility with codex, gemini-cli, opencode, amp, cline, github-copilot.

What are alternatives to codable-patterns?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install codable-patterns?

npx skills add https://github.com/dpearson2699/swift-ios-skills --skill codable-patterns

Related skills

More from dpearson2699/swift-ios-skills

Related skills

Alternatives in Software Engineering