CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

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:). Use when parsing API responses, remapping keys, flattening nested JSON, handling date or data decoding strategies, decoding heterogeneous arrays, or integrating Codable with URLSession, SwiftData, or UserDefaults.

Quality

97%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

The canonical home for this skill is dpearson2699/swift-ios-skills

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured, highly actionable reference: executable code throughout, a verification-first workflow with an error-recovery loop, and clean one-level progressive disclosure into a verified reference file. The only detractor is minor over-explanation of basics and a version banner that could be trimmed.

Suggestions

Trim or compress the Basic Conformance section to a one-line pointer ('compiler synthesizes conformance when all stored properties are Codable') since Claude already knows this, keeping only the Decodable-vs-Codable guidance.

Replace the 'Targets Swift 6.3 / iOS 26+' version banner with a link-stable statement (or move version-specific notes into a dedicated compatibility/deprecated section) so time-sensitive version numbers do not age the skill's core guidance.

Condense the URLSession fetch example to just the decoder-configuration lines, since the guard/HTTPURLResponse boilerplate is standard knowledge and the section's value is the Codable integration.

DimensionReasoningScore

Conciseness

The body is dense and code-forward, but a few passages restate basics Claude already knows ('When all stored properties are themselves Codable, the compiler synthesizes conformance automatically', the boilerplate URLSession fetch) and the header carries time-sensitive version info ('Targets Swift 6.3 / iOS 26+') outside any deprecated/old-patterns section. This fits anchor 4 — efficient with minor instances that could be trimmed — rather than anchor 5, which demands every token earn its place, and rather than anchor 3, which would require more substantial padding.

4 / 5

Actionability

Nearly every section contains complete, executable Swift: the Event custom init(from:)/encode(to:) pair, nestedContainer flattening, date/data/key strategy configuration, and DON'T/DO mistake pairs with the exact replacement code. This matches anchor 5's fully executable, copy-paste-ready guidance covering the common cases.

5 / 5

Workflow Clarity

The 'Decode and Verify Workflow' gives a clear sequence with an explicit validation/feedback loop ('On failure, inspect DecodingError, its codingPath, and the raw payload... Correct only the mismatched model... Rerun fixtures and encode/decode round trips'), capped by a Review Checklist — matching anchor 5's explicit validation steps, error-recovery loop, and checklist.

5 / 5

Progressive Disclosure

Core patterns stay inline while advanced material is split into exactly one reference file, one level deep, with section-anchored links that all resolve (e.g. 'Load [Lossy Arrays](references/codable-advanced-patterns.md#lossy-arrays)'), plus a Contents index for navigation. This matches anchor 5's clear overview with well-signaled one-level-deep references; scoring against the actual bundle structure confirms the referenced paths are real.

5 / 5

Total

19

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An exemplary description: it states concrete capabilities with named APIs, gives an explicit 'Use when' clause enumerating natural trigger scenarios, and defines a distinct niche. It closely follows the strongest reference pattern for what/when descriptions.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — 'Implement Swift Codable models for JSON and property-list encoding and decoding', 'remapping keys, flattening nested JSON, handling date or data decoding strategies, decoding heterogeneous arrays' — each anchored to named APIs (JSONDecoder, JSONEncoder, CodingKeys, init(from:)/encode(to:)). This matches the anchor-5 example of multiple specific concrete actions with comprehensive coverage; there is no vague or generic language that would place it at 4 or below.

5 / 5

Completeness

The first sentence explicitly answers 'what' (implement Swift Codable models for JSON and property-list encoding/decoding with the named APIs) and the second explicitly answers 'when' ('Use when parsing API responses, remapping keys, flattening nested JSON, handling date or data decoding strategies...'). This mirrors the anchor-5 pattern of both what and when with concrete trigger phrases.

5 / 5

Trigger Term Quality

'parsing API responses', 'remapping keys', 'flattening nested JSON', 'decoding heterogeneous arrays', and 'URLSession, SwiftData, or UserDefaults' are the natural phrases a developer would say when needing this skill, with good synonym coverage. This matches anchor 5's comprehensive natural-term coverage; anchor 4 would require noticeably missing common variations, which is not the case.

5 / 5

Distinctiveness Conflict Risk

The description occupies a clear niche (Swift Codable serialization) with distinct triggers tied to specific protocols and APIs (CodingKeys, JSONDecoder, JSONEncoder). The SwiftData/UserDefaults integration mentions create only minor adjacency with dedicated persistence skills, consistent with anchor 5's minimal conflict risk rather than anchor 4's 'minor overlap risk' framing.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

dpearson2699/swift-ios-skills

Path

skills/swift-codable/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.