swift-refactor

Community

Modernize Swift/SwiftUI codebases with MVVM-C.

Authorpproenca
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenges of maintaining and scaling Swift and SwiftUI applications by providing a structured approach to refactoring towards a modern, modular architecture. It helps eliminate outdated patterns and enforces best practices for performance, testability, and maintainability.

Core Features & Use Cases

  • Architecture Migration: Guides the transition from older SwiftUI patterns to the @Observable macro, NavigationStack, and coordinator-based navigation.
  • Modularization: Enforces clear boundaries between Domain, Data, and Feature modules using Swift Package Manager.
  • Performance Optimization: Focuses on view diffing, state management, and list performance improvements.
  • Use Case: Refactor a legacy SwiftUI app using ObservableObject and NavigationView into a clean, modular MVVM-C architecture using @Observable and NavigationStack, ensuring better performance and easier maintenance.

Quick Start

Apply the swift-refactor skill to modernize your existing SwiftUI code to the clinic architecture.

Dependency Matrix

Required Modules

None required

Components

referencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: swift-refactor
Download link: https://github.com/pproenca/dot-skills/archive/main.zip#swift-refactor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.