swift
Skill0 starsChanged 6 months agoMITView on GitHub
Route Swift and iOS tasks to the right focused workflow, or run a quick inline quality review. Use when working on SwiftUI prototypes, production app structure, UIKit and SwiftUI integration, async and state bugs, performance issues, or general Swift code review.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- g-cqd/skillstheir own version, first seen Sep 4, 2026
- swift-institute/Skillstheir own version, first seen Aug 7, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Jul 14, 2026
- margelo/react-native-skillstheir own version, first seen Jun 5, 2026
- wendylabsinc/claude-skillstheir own version, first seen Jan 25, 2026
- Mindrally/skillstheir own version, first seen Jan 23, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Mindrally/skills★ 266same name
- margelo/react-native-skills★ 173same name
- wendylabsinc/claude-skills★ 62same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- g-cqd/skills★ 2same name
- rogue-dev-studio/ai-agents-rogue★ 2same name
- swift-institute/Skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- swift-debugSkill
- swift-patternsSkill
- swift-prototypeSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 3 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
If the prompt describes a broken behavior, choose swift-debug first even when it also mentions UIViewRepresentable, Coordinator, SwiftUIX, …
- Very specific: line 21
Use swift-patterns for bridge and dependency design decisions.
- Very specific: line 22
Use swift-prototype for building or reshaping interactions, then borrow swift-patterns only if the user explicitly wants to productionize …
- Very specific: line 26
Read the matching sibling skill folder in this skill collection and follow its SKILL.md before making changes.
- Very specific: line 27
If routing is ambiguous, consult references/routing-examples.md before choosing a lane.
- Very specific: line 28
If the task depends on newer SwiftUI naming, bars, safe areas, or Liquid Glass, also consult references/swiftui-vocabulary.md so you use …
- Distinctive: line 32
Use the shipped reference files first.
- Distinctive: line 33
If the task clearly matches one of the Swift study repos, borrow patterns from them deliberately:
- Very specific: line 44
If the user mentions SwiftUIX, route to swift-patterns unless the ask is purely review-only.
- Distinctive: line 48
When the user pastes code and asks for feedback without needing a full sub-skill, apply these 10 checks in order:
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are an expert Swift engineer. Read the user's request, identify which sub-skill applies, and load it.
Routing Table
| User says… | Load sub-skill |
| prototype / experiment / animation / gesture / interaction / shader / effect / HIG / Liquid Glass / iOS 26 UI / glassEffect / safeAreaBar / tab bar accessory / "make this move" / "make this feel Apple-native" | swift-prototype |
| bug / crash / slow / freeze / not updating / weird / "why is this" / debug / race condition / async / memory / resets / works once / first render / lifecycle mismatch / coordinator loop | swift-debug |
| architecture / package / session / module / how to structure / MVVM / DI / dependency / UIKit / SwiftUIX / bridge / representable / navigation / deep link / observation / deployment target | swift-patterns |
| review / improve / is this good / clean this up | run the Quick Quality Checklist below |
| anything else | run Quick Quality Checklist + apply whichever sub-skill is most relevant |
Routing Precedence
- If the prompt describes a broken behavior, choose
swift-debugfirst even when it also mentionsUIViewRepresentable,Coordinator,SwiftUIX, UIKit bridging, or architecture terms. - Use
swift-patternsfor bridge and dependency design decisions. - Use
swift-prototypefor building or reshaping interactions, then borrowswift-patternsonly if the user explicitly wants to productionize the result.
How to Load a Sub-Skill
Read the matching sibling skill folder in this skill collection and follow its SKILL.md before making changes.
If routing is ambiguous, consult references/routing-examples.md before choosing a lane.
If the task depends on newer SwiftUI naming, bars, safe areas, or Liquid Glass, also consult references/swiftui-vocabulary.md so you use the exact API terms in your plan and recommendation.
Source-Aware Workflow
- Use the shipped reference files first.
- If the task clearly matches one of the Swift study repos, borrow patterns from them deliberately:
SwiftUI-experimentsfor interaction design, gesture state, animation timing, Canvas, and prototype structureany-distance-iosfor UIKit and SwiftUI bridging, reusable utilities, SwiftUIX-like wrappers, and production packagingHapticsfor session-style dependencies, modularization, realtime state flow, and debugging tricky app behavior
- Also use the curated external references when the prompt matches them closely:
Infernofor shader-pack tradeoffs, distortion effects, blur, and GPU-friendly visual experimentation- Apple HIG for Apple-native hierarchy, materials, motion feel, and platform consistency
- Apple iOS 26 / SwiftUI updates for Liquid Glass,
safeAreaBar, tab bar accessories, scroll edge effects, and modern bar terminology - Apple
Food Truckfor multiplatform SwiftUI structure across app, widgets, and live activities swift-navigationfor state-driven navigation and deep-linkable destination modelingswift-perceptionfor Observation-style state on older deployment targets
- If the user mentions
SwiftUIX, route toswift-patternsunless the ask is purely review-only.
Quick Quality Checklist (for inline code review)
When the user pastes code and asks for feedback without needing a full sub-skill, apply these 10 checks in order:
- No force unwrap —
!on optionals is a crash waiting to happen. Preferguard let,if let, or?? default. - @MainActor on all UI mutations — any
@State, view update, or UIKit call must happen on the main actor. - No print() in production paths — replace with
Logger(subsystem:category:). - View body is cheap — computed properties, closures, and initializers in
bodyre-run on every render. Move heavy work out. - ForEach has stable identity — using
\.selfon non-Hashable or mutable data causes incorrect diffs. Use explicit\.idorIdentifiable. - No singletons for shared state — use
@Observableclass injected via.environment()instead. - Task cancellation is handled — every
Task { }that does I/O should checkTask.isCancelledor usewithTaskCancellationHandler. - No business logic in View — views should only read state and dispatch actions, never compute or transform data themselves.
- Sheet uses item binding, not Bool —
sheet(item:)prevents the memory leak pattern ofsheet(isPresented:)+ optional content. - Animation has a meaningful curve —
.easeInon a dismissal or.linearon a spring element feels wrong. Match curve to physicality.
Output: list only the checks that fail, with a one-line fix per finding. If all pass, say so.
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
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.

