Agent skill

Swift Architecture

by dpearson2699 in dpearson2699/swift-ios-skills

Selects, reviews, and migrates Apple-platform app architectures across MV with Observation, MVVM, MVI, TCA, Clean Architecture, Coordinator, and legacy VIPER.

Custom licenceAuto-check passedMobile

Install Swift Architecture

skills CLI
$ npx skills add dpearson2699/swift-ios-skills --skill swift-architecture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dpearson2699/swift-ios-skills swift-architecture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dpearson2699/swift-ios-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/swift-architecture .claude/skills/swift-architecture && rm -rf skills-src

Use ~/.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/

Facts

Skill name
swift-architecture
GitHub stars
1.2k
Token cost
~1.9k tokens
SKILL.md length
756 words
Files
3 (incl. references)
Skills in repo
86
Repo updated
First seen
Licence
Custom licence

At a glance

Selects, reviews, and migrates Apple-platform app architectures across MV with Observation, MVVM, MVI, TCA, Clean Architecture, Coordinator, and legacy VIPER.

  • Works in 5 steps: Record the feature's state owner,… → Identify the concrete pressure: complex… → Select the smallest pattern that… → …
  • Choosing module and dependency boundaries
  • SKILL.md covers Contents, Scope Boundary, Decision Workflow and Pattern Selection, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Swift Architecture is an agent skill from dpearson2699/swift-ios-skills. Selects, reviews, and migrates Apple-platform app architectures across MV with Observation, MVVM, MVI, TCA, Clean Architecture, Coordinator, and legacy VIPER. Use when choosing module and dependency boundaries, escalating a feature beyond simple SwiftUI MV, planning incremental architecture migration, or auditing state ownership and test seams.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `evals/evals.json` and `references/architecture-patterns.md`).

It sits in Mobile, covering iOS development. It works with SwiftUI. The repository describes itself as: Agent Skills for iOS 26+, Swift 6.3, SwiftUI, and modern Apple frameworks.

When your agent uses it

  • Choosing module and dependency boundaries
  • Escalating a feature beyond simple SwiftUI MV
  • Planning incremental architecture migration
  • Auditing state ownership and test seams

Example prompts

  • “/swift-architecture”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Record the feature's state owner, inputs, outputs, dependencies, side effects, navigation handoffs, and current tests.
  2. Identify the concrete pressure: complex state machine, shared derived state, dependency control, feature composition, team ownership, or…
  3. Select the smallest pattern that addresses that pressure; write down what it adds and what remains unchanged.
  4. Implement one vertical slice with injected dependencies and observable state transitions.
  5. Run existing behavior tests plus state-transition and dependency-failure tests. If behavior changes, restore the fixture, fix the smallest…

What it can do on your machine

Read from SKILL.md and the folder at commit 8d90fd1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are swift).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • sosumi.ai

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Swift Architecture loads about 1.9k tokens when it runs, and up to ~2.6k if it reads all its reference files. Until then it costs about 91 tokens; SKILL.md has 756 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.6k

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.

Safety

Auto-check passed

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.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 756 words (~1,875 tokens).

“Choose the smallest architecture that makes state ownership, dependencies, side effects, and tests explicit. Default new SwiftUI features to MV; escalate only for observed complexity.”

— opening of SKILL.md by dpearson2699, Custom licence
name
swift-architecture

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (references) in skills/swift-architecture of dpearson2699/swift-ios-skills.

  • SKILL.md
  • evals/evals.json
  • references/architecture-patterns.md

Open the folder on GitHubat commit 8d90fd1

Compare with similar skills

Swift Architecture 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.

Swift Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swift Architecture this skilldpearson2699/swift-ios-skills1.2k—~1.9kAutomated safety check: PassCustom licence
Swiftui Protwostraws/SwiftUI-Agent-Skill5.2k2 repos~1.5kAutomated safety check: PassMIT
Swiftui UI PatternsAFK-surf/OpenBridge4304 repos~887Automated safety check: PassMIT
Swiftui Performance Auditharperreed/dotfiles3348 repos~1.4kAutomated safety check: PassNone
Hig Project Contextraintree-technology/hig-doctor1435 repos~1.2kAutomated safety check: PassMIT
Hig Components Contentraintree-technology/hig-doctor1435 repos~1.3kAutomated safety check: PassMIT

Similar skills

  • Swiftui Pro

    twostraws/SwiftUI-Agent-Skill

    Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance.

    5.2k GitHub starsUsed in 2 repos~1.5k tokens
    MobileAuto-check passed
  • Swiftui UI Patterns

    AFK-surf/OpenBridge

    Best practices and example-driven guidance for building SwiftUI views and components.

    430 GitHub starsUsed in 4 repos~887 tokens
    MobileAuto-check passed
  • Swiftui Performance Audit

    harperreed/dotfiles

    Audit and improve SwiftUI runtime performance from code review and architecture.

    334 GitHub starsUsed in 8 repos~1.4k tokens
    MobileAuto-check passed
  • Hig Project Context

    raintree-technology/hig-doctor

    Create or update a shared Apple design context document that other HIG skills use to tailor guidance.

    143 GitHub starsUsed in 5 repos~1.2k tokens
    MobileAuto-check passed
  • Hig Components Content

    raintree-technology/hig-doctor

    Apple Human Interface Guidelines for content display components.

    143 GitHub starsUsed in 5 repos~1.3k tokens
    MobileAuto-check passed
  • Chunui

    liseami/ChunUI

    Build iOS apps with the ChunUI design system (Monochrome texture extracted from the production app Zinner/Chat0IM).

    531 GitHub stars~642 tokensUpdated 15 days ago
    MobileAuto-check passed

More from dpearson2699/swift-ios-skills

All 86 skills in this repo
  • iOS Memgraph Analysis

    dpearson2699/swift-ios-skills

    A skill your agent uses when capturing or analyzing an iOS .memgraph, especially when the task mentions a memory leak, heap growth, persistent memory increase, ownership path, or matched-capture…

    1.2k GitHub stars~2.4k tokensUpdated 2 mo ago
    Auto-check passed
  • iOS Ettrace Performance

    dpearson2699/swift-ios-skills

    A skill your agent uses when capturing or analyzing ETTrace profiles for a focused iOS launch or runtime flow, including exact-build dSYM UUID matching, Simulator or device capture, processed…

    1.2k GitHub stars~2.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Accessorysetupkit

    dpearson2699/swift-ios-skills

    Discover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit.

    1.2k GitHub stars~3.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Activitykit

    dpearson2699/swift-ios-skills

    Implement, review, or improve Live Activities and Dynamic Island experiences in iOS apps using ActivityKit.

    1.2k GitHub stars~4.6k tokensUpdated 2 mo ago
    Auto-check passed
  • Adattributionkit

    dpearson2699/swift-ios-skills

    Measure ad effectiveness with privacy-preserving attribution using AdAttributionKit.

    1.2k GitHub stars~3.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Alarmkit

    dpearson2699/swift-ios-skills

    Implement AlarmKit alarms and countdown timers for iOS and iPadOS with Lock Screen, Dynamic Island, StandBy, and paired Apple Watch system UI.

    1.2k GitHub stars~3.3k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Categories

Questions about Swift Architecture

What does Swift Architecture do?

Selects, reviews, and migrates Apple-platform app architectures across MV with Observation, MVVM, MVI, TCA, Clean Architecture, Coordinator, and legacy VIPER. Swift Architecture is an agent skill from dpearson2699/swift-ios-skills. Selects, reviews, and migrates Apple-platform app architectures across MV with Observation, MVVM, MVI, TCA, Clean Architecture, Coordinator, and legacy VIPER.

When should I use Swift Architecture?

Swift Architecture fits situations like: choosing module and dependency boundaries; escalating a feature beyond simple SwiftUI MV; planning incremental architecture migration; auditing state ownership and test seams.

How do I install Swift Architecture in Claude Code?

Run `npx skills add dpearson2699/swift-ios-skills --skill swift-architecture -a claude-code`. Or copy the skill folder (skills/swift-architecture in dpearson2699/swift-ios-skills) into .claude/skills/swift-architecture in your project. Claude Code loads it when a task matches its description.

How do I install Swift Architecture in Codex?

Run `npx skills add dpearson2699/swift-ios-skills --skill swift-architecture -a codex`. Or copy the skill folder (skills/swift-architecture in dpearson2699/swift-ios-skills) into .agents/skills/swift-architecture in your project. Codex loads it when a task matches its description.

Can I use Swift Architecture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dpearson2699/swift-ios-skills --skill swift-architecture -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-architecture, .gemini/skills/swift-architecture, .github/skills/swift-architecture and .opencode/skills/swift-architecture in your project.

What does Swift Architecture need to run?

SKILL.md names no scripts, command-line tools or credentials: Swift Architecture is instructions for the agent only.

Does Swift Architecture access the network?

SKILL.md names 1 domain. As links in the text: sosumi.ai. This is read from the text; nothing was executed.

Is Swift Architecture safe to install?

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.

What licence does Swift Architecture use?

Swift Architecture has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Swift Architecture use?

About 1.9k tokens (SKILL.md is roughly 7.5k 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 732 tokens, read only when the agent opens those files.

What are the alternatives to Swift Architecture?

Skills that share tags, products or a category with Swift Architecture: Swiftui Pro (twostraws/SwiftUI-Agent-Skill, 5.2k stars), Swiftui UI Patterns (AFK-surf/OpenBridge, 430 stars), Swiftui Performance Audit (harperreed/dotfiles, 334 stars) and Hig Project Context (raintree-technology/hig-doctor, 143 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swift Architecture?

dpearson2699 (a GitHub user) maintains it in dpearson2699/swift-ios-skills, which has 1,182 GitHub stars. The repository holds 86 skills in this directory. The repository was last updated on July 31, 2026.

Source: dpearson2699/swift-ios-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.