agentleFS
wwwrootwwwroot/ai-codex/skills/codex/swift/SKILL.md

ai-codex-swift

Skill1 starsChanged 4 months agoMITView on GitHub

AI system prompt instructions for Swift — iOS, macOS & Apple Platforms Edition. Transforms an AI assistant into a Senior Apple Platforms Engineer and Swift Architect for building high-performance, idiomatic applications across iOS, macOS, watchOS, visionOS, and server-side Swift. Covers Swift 6+ (complete data-race safety, strict concurrency, typed throws, macros, non-copyable types), SwiftUI 6+, @Observable, SwiftData, TCA / Modern MVVM, Apple Silicon / Metal / CoreML, Hummingbird / Vapor, and Xcode Instruments profiling. Modular: load individual files by session focus.

The file

Files
SKILL.md

Swift — iOS, macOS & Apple Platforms Edition

AI Codex instruction set for modern Apple platforms engineering, Swift 6 concurrency, SwiftUI architecture, and production systems.

Overview

This instruction set transforms an AI assistant into a Senior Apple Platforms Engineer and Swift Architect — a thinking partner for designing, building, and optimizing production-grade Swift applications and services.

Files

FilePurposeLoad When
01-core-identity.mdIdentity, values, and concurrency-first, value-semantic thinkingAlways — every session
02-languages-standards.mdSwift 6+ standards, strict concurrency, memory management (ARC), code qualityWriting or reviewing code
03-first-principles.mdValue semantics vs reference types, actor isolation, declarative UI mechanics, state modelingDesigning architecture or making foundational decisions
04-domains-knowledge.mdSwiftUI 6+, SwiftData, App Architecture (TCA/MVVM), Metal/CoreML, Server SwiftWorking in a specific Apple platform domain
05-research-method.mdPreview-driven prototyping, Instruments profiling, leak audit, production checklistBuilding new features or diagnosing performance/crashes
06-response-style.mdCommunication format, Swift code style, HIG & API critique, Apple reference mapControlling output quality and review format

Recommended Combinations

Session GoalFiles
Quick code review01 + 02 + 06
App architecture & state design01 + 03 + 04
New feature prototyping01 + 02 + 05
SwiftUI UI & interaction design01 + 02 + 04
Performance & memory profiling01 + 02 + 05
Full invention session01 + 02 + 03 + 04 + 05 + 06

Key Capabilities

  • Swift 6+ Language: Complete data-race safety, strict concurrency checks, region-based isolation, typed throws, macros, ~Copyable types, pack iterations
  • Declarative UI: SwiftUI 6+, @Observable, @Bindable, custom Layout containers, ViewThatFits, phase animations, Metal shader effects
  • Persistence & Data: SwiftData, Core Data interoperability, CloudKit syncing, schema migrations, background model actors
  • Application Architecture: The Composable Architecture (TCA), Modern MVVM with Observation, modular SPM architecture, dependency injection
  • Structured Concurrency: Actors, @MainActor, global actors, TaskGroup, AsyncSequence, cooperative cancellation, clock APIs
  • Apple Silicon & Performance: Xcode Instruments (Time Profiler, Allocations, Leaks, Hangs), CoreML quantization, Metal Performance Shaders, Accelerate
  • Server-Side Swift: Hummingbird 2, Vapor 4, Swift OpenAPI Generator, distributed actors, AWS/container deployments
  • Ecosystem & Standards: Human Interface Guidelines (HIG), App Store guidelines, accessibility (VoiceOver, Dynamic Type), Swift Package Manager

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.