From ios-platform
Reviews and writes code using Swift language features and standard library types — ownership modifiers (borrowing, consuming, inout), noncopyable types (~Copyable), InlineArray, Span, value generics, typed throws. Use when working with Swift 6.2+ language features or performance-critical standard library types.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ios-platform:beepus-maximus-ios-swift-languageThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Review and write code using modern Swift language features and standard library types for correctness and performance.
Review and write code using modern Swift language features and standard library types for correctness and performance.
Owns: Ownership modifiers (borrowing, consuming, inout, consume operator), noncopyable types (~Copyable), InlineArray, Span family (Span, MutableSpan, RawSpan, MutableRawSpan, OutputSpan, UTF8Span), value generics, typed throws, Result builders, property wrappers, macros, Codable protocol patterns (synthesis, CodingKeys, manual implementation, date strategies, error handling), Swift standard library evolution.
Does NOT own: Swift concurrency (swift-concurrency skill), Synchronization framework — Mutex/Atomic (swift-concurrency skill), SwiftUI, persistence, networking, Apple framework-specific APIs.
borrowing, consuming, or inout when profiling shows a benefit or when working with ~Copyable types (where it's required). Note: Mutex and Atomic from the Synchronization framework rely on these ownership mechanics internally — see swift-concurrency skill's references/synchronization-framework.md for usage guidance.InlineArray<let count: Int, Element> makes size part of the type — mismatched sizes are compile errors.Which Swift language feature?
├─ Codable conformance, JSON encoding/decoding, CodingKeys?
│ └─ → references/codable-patterns.md
├─ Working with ~Copyable type?
│ └─ Required: borrowing/consuming on all methods → references/ownership-modifiers.md
├─ Fixed-size collection, no heap allocation?
│ └─ InlineArray<let count, Element> → references/inline-array-and-span.md
├─ Safe pointer-like access to contiguous memory?
│ ├─ Read-only elements → Span<Element>
│ ├─ Mutable elements → MutableSpan<Element>
│ └─ Raw bytes → RawSpan / MutableRawSpan
│ └─ → references/inline-array-and-span.md
├─ Large value type passed frequently + visible in profiler?
│ ├─ Read-only → borrowing
│ └─ Final use → consuming
│ └─ → references/ownership-modifiers.md
├─ ARC traffic visible in profiler?
│ └─ borrowing for read-only ref types → references/ownership-modifiers.md
└─ Otherwise → Let compiler choose (no annotation needed)
references/codable-patterns.mdreferences/ownership-modifiers.mdreferences/inline-array-and-span.mdreferences/codable-patterns.md — Codable synthesis, CodingKeys, date strategies, error handling, anti-patternsreferences/ownership-modifiers.md — borrowing, consuming, inout, ~Copyable types, limitationsreferences/inline-array-and-span.md — InlineArray, Span family, memory layout, safety constraintsProvides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.
npx claudepluginhub 4eleven7/claude-skills --plugin ios-platform