dpearson2699/swift-ios-skills · swift-codable · SKILL.md

Swift可编码模型

实现Swift Codable模型,用于JSON和属性列表的编码与解码,支持JSONDecoder、JSONEncoder、CodingKeys及自定义init(from:)或encode(to:)。适用于解析API响应、重映射键、扁平化嵌套JSON、处理日期或数据解码策略、解码异构数组,或与URLSession、SwiftData及UserDefaults集成。

★ 1063 质量 94.0 许可证未声明,请查看上游 后端 generic

这是公开 Agent Skill 的中文说明,由采集翻译或编辑润色,完整内容以上游 SKILL.md 为准。适用于 Cursor / Claude Code / Codex / Gemini。 打开上游 SKILL.md

安装

通用(npx skills)

npx skills add dpearson2699/swift-ios-skills -s swift-codable

Cursor

把该 Skill 复制到项目的 .cursor/skills/swift-codable/ 目录

Claude Code

/plugin marketplace add dpearson2699/swift-ios-skills

返回目录