Skip to content

sideeffect-io/swift-expert-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwiftUI Expert Skill

A portable, architecture-agnostic SwiftUI skill for AI coding agents that support the Agent Skills format. It focuses on current SwiftUI APIs, Observation-based data flow, view composition, navigation and presentation, tabs and forms, deeplinks, lists and scrolling, performance and profiling, accessibility, theming, previews, animations, Swift and concurrency hygiene, optional iOS 26 Liquid Glass, on-demand macOS guidance, and dense micro references for long-tail SwiftUI patterns such as sheets, programmatic scroll, image loading, list identity, search, focus, toolbars, and macOS-specific UI.

The repository contains one reusable skill folder: swiftui-expert-skill/.

Scope

  • Latest-first SwiftUI guidance for Apple platforms.
  • Architecture-agnostic: it does not require MVVM, a router framework, or a specific project layout.
  • Covers component patterns such as tabs, forms, grids, placeholders, previews, haptics, theming, app wiring, and typed deeplinks without prescribing an app architecture.
  • Uses progressive disclosure: one main skill, a routing index, broad topic references, and focused micro references for long-tail edge cases.
  • Separates rule strength with tags such as Deprecated, Prefer, Consider, and Only when.
  • Keeps API availability and modernization guidance centralized so migration advice stays accurate.
  • macOS-only and iOS 26-specific APIs stay in dedicated optional references so the default trigger cost stays low.

Installation

Manual

Copy or symlink swiftui-expert-skill into the skills directory used by your agent.

Useful references:

npx

Once this repository is published, install it from GitHub with:

npx skills add https://github.com/sideeffect-io/swift-expert-skill --skill swiftui-expert

Codex

Install the skill folder into either:

  • Project scope: .codex/skills/
  • User scope: ~/.codex/skills/

See the official Codex skills documentation: developers.openai.com/codex/skills.

The root folder should look like:

.codex/
  skills/
    swiftui-expert-skill/
      SKILL.md
      references/

Claude Code

Install the skill folder into either:

  • Project scope: .claude/skills/
  • User scope: ~/.claude/skills/

See the official Claude Code skills documentation: platform.claude.com/docs/en/agents-and-tools/agent-skills/overview.

The root folder should look like:

.claude/
  skills/
    swiftui-expert-skill/
      SKILL.md
      references/

Usage

Explicit invocation examples:

  • Codex: $swiftui-expert review this SwiftUI feature for state, navigation, and performance issues
  • Claude Code: /swiftui-expert modernize this SwiftUI screen and keep behavior unchanged

Natural-language examples:

  • Use the SwiftUI Expert skill to refactor this view hierarchy without changing behavior.
  • Use the SwiftUI Expert skill to review this project for outdated SwiftUI APIs and accessibility issues.
  • Use the SwiftUI Expert skill to build a searchable sheet-based flow with modern Observation.
  • Use the SwiftUI Expert skill to diagnose janky scrolling in this list and tell me what to profile.
  • Use the SwiftUI Expert skill to wire typed tabs and deep links for this SwiftUI app without changing its architecture.
  • Use the SwiftUI Expert skill to review this code for SwiftUI issues, concurrency hazards, and localization or persistence hygiene problems.
  • Use the SwiftUI Expert skill to add Liquid Glass to this iOS 26 toolbar with fallbacks.
  • Use the SwiftUI Expert skill to review this macOS MenuBarExtra and Settings scene setup.

References

This skill was merged and rewritten from:

How this skill improves and merges those sources:

  • It merges the overlapping SwiftUI guidance from the three repos into one entry point instead of forcing the agent to pick between multiple competing skills or styles.
  • It intentionally strips architecture opinions from borrowed material, keeping SwiftUI guidance portable across MVVM, MV, reducer-based, and app-specific routing setups.
  • It aims for decision-coverage parity rather than word-count parity: keep the important rules, migration guidance, and edge cases, but compress repetition aggressively.
  • It broadens the trigger and entry-point design so the skill is discoverable for writing, reviewing, assessing, refactoring, and modernizing SwiftUI code, not just generic reviews.
  • It now routes by task, platform or release, and topic: an agent can start from broad review, new UI work, refactors, multiplatform app structure, macOS-specific UI, or iOS 26 and WebKit-for-SwiftUI work without guessing the first file.
  • It uses canonical topic owners plus focused micro references for long-tail topics such as sheets, scroll positioning, loading placeholders, search, focus, toolbars, previews, theming, hero transitions, and macOS UI, which improves coverage without bloating the default read.
  • It adds a dedicated reference index plus short "In This File" maps on the larger references, so an agent can find both the right file and the right section faster than in the original repos.
  • It distinguishes Apple deprecations from stylistic preferences using explicit rule-strength tags, which reduces false certainty during reviews and refactors.
  • It centralizes availability-sensitive API guidance in one modernization reference instead of scattering version assumptions across many files.
  • It was audited against current Apple documentation using Cupertino MCP and Sosumi MCP, including modern SwiftUI, Observation, search, scrolling, modal presentation, file import, menu bar, settings, and WebKit for SwiftUI APIs.
  • It keeps optional macOS, concurrency-adjacent, and Liquid Glass guidance available on demand rather than charging that token cost for every ordinary SwiftUI task.

License

This repository is licensed under the MIT License.

About

This repo contains a SwiftUI skill that merges and improves skills from Paul Hudson, Thomas Ricouard and Antoine Van Der Lee

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors