axiom-codable
CommunityMaster Swift Codable for robust data handling.
Authortuliopc23
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the complexities of Swift's Codable protocol, helping developers efficiently encode and decode data, customize serialization, and resolve common errors like "Type does not conform to Decodable/Encodable".
Core Features & Use Cases
- Automatic Synthesis: Leverage Swift's built-in Codable conformance for simple types.
- CodingKeys Customization: Rename keys, exclude properties, and handle snake_case conversions.
- Manual Implementation: Implement custom decoding/encoding logic for complex JSON structures using containers.
- Date Handling: Configure various strategies for parsing dates, including ISO8601 and custom formats.
- Type Transformation: Use wrapper types and type coercion for flexible data handling.
- Debugging & Anti-Patterns: Learn to debug decoding errors and avoid common pitfalls.
- Use Case: You're integrating with a new API that uses snake_case for JSON keys but your Swift models use camelCase. This Skill shows you how to use
CodingKeysorkeyDecodingStrategyto bridge this gap seamlessly.
Quick Start
Use the axiom-codable skill to rename the JSON key "user_id" to "userId" when decoding a User struct.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: axiom-codable Download link: https://github.com/tuliopc23/flying-dutchman-app/archive/main.zip#axiom-codable Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.