Lasha Efremidze 0ad5fbc4cd step 2
2026-03-11 15:02:37 -07:00
2026-02-17 00:42:22 -08:00
2026-03-11 15:02:37 -07:00
2026-02-13 14:48:32 -08:00
2026-03-09 15:06:10 -07:00

Swift Architecture Skill

License: MIT GitHub Release

Architecture guidance for AI coding tools — choose and apply the right Swift architecture for SwiftUI/UIKit features with concrete patterns, anti-pattern fixes, testing strategy, and review checklists.

Supports the Agent Skills open format.

Features

  • Architecture selection: Describe your feature or module and the skill selects the right pattern based on UI stack, state complexity, and existing conventions. If you name a pattern, it validates fit before you commit.
  • Dedicated playbooks: Each architecture has its own reference with code patterns, anti-pattern fixes, testing strategy, and a PR review checklist. Guidance stays scoped to your task.
  • SwiftUI and UIKit: Every playbook covers both stacks and calls out where they differ, using modern async/await and actor-based concurrency patterns.

The skill reads your task context, routes through selection-guide.md, and loads the matching playbook.

Supported Architectures

  • MVP - Model-View-Presenter pattern (playbook)
  • MVVM - Model-View-ViewModel pattern (playbook)
  • MVI - Model-View-Intent pattern (playbook)
  • TCA - The Composable Architecture (playbook)
  • Clean Architecture - Layered architecture with dependency inversion (playbook)
  • VIPER - View-Interactor-Presenter-Entity-Router pattern (playbook)
  • Coordinator - Navigation flow decoupling pattern (playbook)
  • Reactive - Combine/RxSwift patterns (playbook)

When no architecture is specified, the skill routes through references/selection-guide.md to infer the best fit based on feature type, UI stack, and team constraints.

Quick Start

npx skills add https://github.com/efremidze/swift-architecture-skill --skill swift-architecture-skill

Then ask your agent:

Use swift-architecture-skill to recommend and scaffold architecture for this feature.

View this skill on skills.sh

Option B: Claude Code Plugin

  1. Add the marketplace:
/plugin marketplace add efremidze/swift-architecture-skill
  1. Install the skill:
/plugin install swift-architecture-skill@swift-architecture-skill

For team setup, add this to .claude/settings.json:

{
  "enabledPlugins": {
    "swift-architecture-skill@swift-architecture-skill": true
  },
  "extraKnownMarketplaces": {
    "swift-architecture-skill": {
      "source": {
        "source": "github",
        "repo": "efremidze/swift-architecture-skill"
      }
    }
  }
}

Option C: Manual Install

  1. Clone this repository.
  2. Copy or symlink swift-architecture-skill/ into your tool's skills directory.
  3. Ask your AI assistant to use swift-architecture-skill for architecture tasks.

Example Prompts

I'm building a SwiftUI feed with pagination, pull-to-refresh, and live updates.
Which architecture should I use and why?
Use swift-architecture-skill to review this ViewModel for MVVM violations
and suggest concrete fixes.
Help me migrate this 500-line UIViewController to Clean Architecture
incrementally, with tests at each step.

Skill Structure

swift-architecture-skill/
  SKILL.md                       # Routing logic and output requirements
  agents/
    openai.yaml                  # Interface metadata for skill-capable tools
  references/
    selection-guide.md           # Decision framework across architectures
    mvp.md                       # MVP playbook
    mvvm.md                      # MVVM playbook
    mvi.md                       # MVI playbook
    tca.md                       # TCA playbook
    clean-architecture.md        # Clean Architecture playbook
    viper.md                     # VIPER playbook
    coordinator.md               # Coordinator playbook
    reactive.md                  # Reactive (Combine/RxSwift) playbook

Each playbook follows a consistent contract:

  • overview and when to use it
  • core concepts and implementation patterns
  • anti-patterns with direct fixes
  • testing strategy
  • PR review checklist

Contributing

Contributions are welcome. See CONTRIBUTING.md for structure and quality requirements.

License

MIT License. See LICENSE for details.

S
Description
Swift iOS architecture guidance and playbooks for MVVM, MVI, TCA, Clean Architecture, VIPER, MVP, Coordinator, and Reactive patterns. Use when designing,…
Readme MIT 429 KiB
Languages
Python 65%
Shell 35%