Swift language

From HoangNguyen0403/agent-skills-standard · View interactive version

Swift language is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Apply Optionals, Protocols, Extensions, and Type Safety patterns in Swift. Use when working with Swift Optionals, Protocols, Extensions, or type-safe APIs.

How to use this skill

Skill file

Swift Language Standards

**Priority: P0 (CRITICAL)**

Implementation Guidelines

Optionals & Safety

Protocols & Extensions

Type Safety

Anti-Patterns

Version Gates

some P?/any P? optional protocol shorthand and borrow/mutate accessors are Swift 6.4 additions; non-copyable types predate 6.4 (6.4 extends their ownership support). Emit the shorthand only when the project's compiler, tools version and language mode admit 6.4 — it is syntax-only, so no deployment-target bump is needed; borrow/mutate accessors and newer library APIs do carry their own availability. Otherwise keep the parenthesized (some P)? form. See Swift 6.4 features.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.