Swiftui Expert Skill
AFK-surf/OpenBridge
Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, modern APIs, Swift concurrency, and iOS 26+ Liquid Glass adoption.
SwiftData persistence and data-layer architecture for iOS 26 / Swift 6.2 clinic modular MVVM-C apps.
$ npx skills add pproenca/dot-skills --skill swift-data -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pproenca/dot-skills swift-data --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/swift-data .claude/skills/swift-data && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "swift-data" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/swift-data into .claude/skills/swift-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-data", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/swift-dataType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pproenca/dot-skills --skill swift-data -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pproenca/dot-skills swift-data --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/.experimental/swift-data .agents/skills/swift-data && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "swift-data" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/swift-data into .agents/skills/swift-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-data", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pproenca/dot-skills --skill swift-data -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pproenca/dot-skills swift-data --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/.experimental/swift-data .cursor/skills/swift-data && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "swift-data" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/swift-data into .cursor/skills/swift-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-data", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pproenca/dot-skills.git --path skills/.experimental/swift-data--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pproenca/dot-skills --skill swift-data -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pproenca/dot-skills swift-data --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/.experimental/swift-data .gemini/skills/swift-data && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "swift-data" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/swift-data into .gemini/skills/swift-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-data", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pproenca/dot-skills swift-dataInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pproenca/dot-skills --skill swift-data -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/.experimental/swift-data .github/skills/swift-data && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "swift-data" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/swift-data into .github/skills/swift-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-data", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pproenca/dot-skills --skill swift-data -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pproenca/dot-skills swift-data --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/.experimental/swift-data .opencode/skills/swift-data && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "swift-data" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/swift-data into .opencode/skills/swift-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-data", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
swift-dataSwiftData persistence and data-layer architecture for iOS 26 / Swift 6.2 clinic modular MVVM-C apps.
Swift Data is an agent skill from pproenca/dot-skills. SwiftData persistence and data-layer architecture for iOS 26 / Swift 6.2 clinic modular MVVM-C apps. Use when writing, reviewing, or refactoring @Model entities, repository implementations, stale-while-revalidate reads, optimistic queued writes, sync/retry behavior, and SwiftUI integration that keeps SwiftData types inside Data-only boundaries.
Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 68 other files, including reference files and assets (for example `assets/templates/_template.md`, `metadata.json` and `references/_sections.md`).
It sits in Mobile, covering iOS development and Refactoring. It works with Swift, iOS and SwiftUI. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Swift Data loads about 3.4k tokens when it runs, and up to ~44k if it reads all its reference files. Until then it costs about 89 tokens; SKILL.md has 1,040 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 1,040 words, ~3,376 tokens.
.claude/skills/swift-data/SKILL.md (or your agent's skills folder). This skill also uses 65 other files; get the full folder from GitHub.Comprehensive data modeling, persistence, sync architecture, and error handling guide for SwiftData aligned with the clinic modular MVVM-C stack.
This skill enforces the same modular architecture mandated by swift-ui-architect:
┌───────────────────────────────────────────────────────────────┐
│ Feature modules: View + ViewModel, no SwiftData imports │
├───────────────────────────────────────────────────────────────┤
│ Domain: models + repository/coordinator/error protocols │
├───────────────────────────────────────────────────────────────┤
│ Data: @Model entities, SwiftData stores, repository impls, │
│ remote clients, retry executor, sync queue, conflict handling │
└───────────────────────────────────────────────────────────────┘Key principle: SwiftData types (@Model, ModelContext, @Query, FetchDescriptor) live in Data-only implementation code. Feature Views/ViewModels work with Domain types and protocol dependencies.
All guidance in this skill assumes the clinic modular MVVM-C architecture:
Domain + DesignSystem only (never Data, never sibling features)DependencyContainer, concrete coordinators, and Route Shell wiringDomain stays pure Swift and defines models plus repository, *Coordinating, ErrorRouting, and AppError contractsData owns SwiftData/network/sync/retry/background I/O and implements Domain protocolsReference these guidelines when:
AsyncStream)Use this workflow when designing or refactoring a SwiftData-backed feature:
Trip, Friend) with validation/computed rules (see model-domain-mapping, state-business-logic-placement)@Model entity classes with mapping methods (see model-*, model-domain-mapping)persist-repository-wrapper)ModelContainer once at the app boundary with error recovery (see persist-container-setup, persist-container-error-recovery)state-dependency-injection)state-query-vs-viewmodel)crud-*)sync-*)rel-*)preview-*)schema-*)persist-model-macro, persist-container-setup, persist-autosave, schema-configurationquery-background-refresh, persist-model-actorquery-property-wrapper, state-wrapper-viewsschema-unique-attributes, sync-conflict-resolutionschema-migration-recovery, persist-container-error-recoverycrud-save-error-handlingsync-offline-first, sync-fetch-persistpersist-app-group, schema-configurationstate-query-vs-viewmodel, persist-repository-wrapper| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Data Modeling | CRITICAL | model- |
| 2 | Persistence Setup | CRITICAL | persist- |
| 3 | Querying & Filtering | HIGH | query- |
| 4 | CRUD Operations | HIGH | crud- |
| 5 | Sync & Networking | HIGH | sync- |
| 6 | Relationships | MEDIUM-HIGH | rel- |
| 7 | SwiftUI State Flow | MEDIUM-HIGH | state- |
| 8 | Schema & Migration | MEDIUM-HIGH | schema- |
| 9 | Sample Data & Previews | MEDIUM | preview- |
model-domain-mapping - Map @Model entities to domain structs across Domain/Data boundariesmodel-custom-types - Use custom types over parallel arraysmodel-class-for-persistence - Use classes for SwiftData entity typesmodel-identifiable - Conform entities to Identifiable with UUIDmodel-initializer - Provide custom initializers for entity classesmodel-computed-properties - Use computed properties for derived datamodel-defaults - Provide sensible default values for entity propertiesmodel-transient - Mark non-persistent properties with @Transientmodel-external-storage - Use external storage for large binary datapersist-repository-wrapper - Wrap SwiftData behind Domain repository protocolspersist-model-macro - Apply @Model macro to all persistent typespersist-container-setup - Configure ModelContainer at the App levelpersist-container-error-recovery - Handle ModelContainer creation failure with store recoverypersist-context-environment - Access ModelContext via @Environment (Data layer)persist-autosave - Enable autosave for manually created contextspersist-enumerate-batch - Use ModelContext.enumerate for large traversalspersist-in-memory-config - Use in-memory configuration for tests and previewspersist-app-group - Use App Groups for shared data storagepersist-model-actor - Use @ModelActor for background SwiftData workpersist-identifier-transfer - Pass PersistentIdentifier across actorsquery-property-wrapper - Use @Query for declarative data fetching (Data layer)query-background-refresh - Force view refresh after background context insertsquery-sort-descriptors - Apply sort descriptors to @Queryquery-predicates - Use #Predicate for type-safe filteringquery-dynamic-init - Use custom view initializers for dynamic queriesquery-fetch-descriptor - Use FetchDescriptor outside SwiftUI viewsquery-fetch-tuning - Tune FetchDescriptor paging and pending-change behaviorquery-localized-search - Use localizedStandardContains for searchquery-expression - Use #Expression for reusable predicate components (iOS 18+)crud-insert-context - Insert models via repository implementationscrud-delete-indexset - Delete via repository with IndexSet from onDeletecrud-sheet-creation - Use sheets for focused data creation via ViewModelcrud-cancel-delete - Avoid orphaned records by persisting only on savecrud-undo-cancel - Enable undo and use it to cancel editscrud-edit-button - Provide EditButton for list managementcrud-dismiss-save - Dismiss modal after ViewModel save completescrud-save-error-handling - Handle repository save failures with user feedbacksync-fetch-persist - Use injected sync services to fetch and persist API datasync-offline-first - Design offline-first architecture with repository reads and background syncsync-conflict-resolution - Implement conflict resolution for bidirectional syncrel-optional-single - Use optionals for optional relationshipsrel-array-many - Use arrays for one-to-many relationshipsrel-inverse-auto - Rely on SwiftData automatic inverse maintenancerel-delete-rules - Configure cascade delete rules for owned relationshipsrel-explicit-sort - Sort relationship arrays explicitlystate-query-vs-viewmodel - Route all data access through @Observable ViewModelsstate-business-logic-placement - Place business logic in domain value types and repository-backed ViewModelsstate-dependency-injection - Inject repository protocols via @Environmentstate-bindable - Use @Bindable for two-way model bindingstate-local-state - Use @State for view-local transient datastate-wrapper-views - Extract wrapper views for dynamic query stateschema-define-all-types - Define schema with all model typesschema-unique-attributes - Use @Attribute(.unique) for natural keysschema-unique-macro - Use #Unique for compound uniqueness (iOS 18+)schema-index - Use #Index for hot predicates and sorts (iOS 18+)schema-migration-plan - Plan migrations before changing modelsschema-migration-recovery - Plan migration recovery for schema changesschema-configuration - Customize storage with ModelConfigurationpreview-sample-singleton - Create a SampleData singleton for previewspreview-in-memory - Use in-memory containers for preview isolationpreview-static-data - Define static sample data on model typespreview-main-actor - Annotate SampleData with @MainActorRead individual reference files for detailed explanations and code examples:
| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 65 other files (references, assets) in skills/.experimental/swift-data of pproenca/dot-skills.
Open the folder on GitHubat commit cf93c57
Swift Data next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Swift Data this skillpproenca/dot-skills | 214 | — | ~3.4k | Automated safety check: Pass | MIT | |
| Swiftui Expert SkillAFK-surf/OpenBridge | 430 | 2 repos | ~3.9k | Automated safety check: Pass | MIT | |
| Swiftui AnimationAstraFoundry/KumoApp | 290 | — | ~4.1k | Automated safety check: Pass | AGPL-3.0 | |
| Snapshot Testsmicrosoft/SwiftStreamingMarkdown | 377 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Bootstrap iOSRayFernando1337/rayfernando-skills | 130 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| View Refactorrobinebers/openusage | 4.3k | — | ~1.4k | Automated safety check: Pass | MIT |
AFK-surf/OpenBridge
Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, modern APIs, Swift concurrency, and iOS 26+ Liquid Glass adoption.
AstraFoundry/KumoApp
Implement, review, or improve SwiftUI animations and transitions.
microsoft/SwiftStreamingMarkdown
Record and validate swift-snapshot-testing snapshots in the SwiftStreamingMarkdown package: regenerate reference PNGs, run snapshot tests, and diff failed snapshots.
RayFernando1337/rayfernando-skills
Bootstrap agents for iOS, iPadOS, macOS, Swift, SwiftUI, SwiftData/Core Data, Swift Testing, Xcode build/test/debug, Simulator, App Intents, or XcodeBuildMCP work.
robinebers/openusage
Refactor macOS SwiftUI views and scenes with strong defaults for small dedicated subviews, stable sidebar and selection structure, explicit command and toolbar ownership, scene-aware state, and…
dpearson2699/swift-ios-skills
Implement, diagnose, or review SwiftUI motion using explicit and scoped implicit animations, springs, transitions, PhaseAnimator, KeyframeAnimator, matched geometry or navigation zoom, SF Symbol…
pproenca/dot-skills
Audio forensics and voice recovery guidelines for CSI-level audio analysis.
pproenca/dot-skills
Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.
pproenca/dot-skills
Create well-structured RFCs and technical proposals for software projects.
pproenca/dot-skills
Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.
pproenca/dot-skills
Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…
pproenca/dot-skills
Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…
Categories
SwiftData persistence and data-layer architecture for iOS 26 / Swift 6.2 clinic modular MVVM-C apps. Swift Data is an agent skill from pproenca/dot-skills.2 clinic modular MVVM-C apps.
Swift Data fits situations like: refactoring @Model entities; repository implementations; stale-while-revalidate reads; optimistic queued writes.
Run `npx skills add pproenca/dot-skills --skill swift-data -a claude-code`. Or copy the skill folder (skills/.experimental/swift-data in pproenca/dot-skills) into .claude/skills/swift-data in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pproenca/dot-skills --skill swift-data -a codex`. Or copy the skill folder (skills/.experimental/swift-data in pproenca/dot-skills) into .agents/skills/swift-data in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill swift-data -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swift-data, .gemini/skills/swift-data, .github/skills/swift-data and .opencode/skills/swift-data in your project.
SKILL.md names no scripts, command-line tools or credentials: Swift Data is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Swift Data is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 41k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Swift Data: Swiftui Expert Skill (AFK-surf/OpenBridge, 430 stars), Swiftui Animation (AstraFoundry/KumoApp, 290 stars), Snapshot Tests (microsoft/SwiftStreamingMarkdown, 377 stars) and Bootstrap iOS (RayFernando1337/rayfernando-skills, 130 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.
Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.