swift-codable-decode-diagnosis
CommunityDiagnose Swift Codable decode errors precisely.
Authorshimo4228
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Decoding JSON with Swift's Codable often produces vague localizedDescription errors, obscuring the exact key path and failing context. This Skill surfaces the precise decoding path to accelerate root-cause analysis and fix data-model mismatches.
Core Features & Use Cases
- Standalone Swift script that prints the full coding path when a DecodingError is thrown, including keyNotFound, typeMismatch, and valueNotFound scenarios.
- Reproduces and pinpoints the failed path in Container-like wrapper models, enabling quick fixes in data models or JSON payloads.
- Useful for CI checks and debugging sessions where granular error paths speed up diagnosis.
Quick Start
Run the provided Swift script to print the detailed decoding path for a failing JSON payload.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: swift-codable-decode-diagnosis Download link: https://github.com/shimo4228/claude-code-learned-skills/archive/main.zip#swift-codable-decode-diagnosis 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.