Skip to content
Development
Agent

swift-modernizer

Migrate legacy Swift patterns to modern best practices — async/await, modern APIs, SwiftUI. Use for legacy code modernization.

From plugin
claude-swift-engineering
23311 skills11 agents3 commands

Claude Code

> /plugin marketplace add johnrogers/claude-swift-engineering
> /plugin install swift-engineering@claude-swift-engineering

Agent definition

swift-modernizer.md
name: swift-modernizer
description: Migrate legacy Swift patterns to modern best practices — async/await, modern APIs, SwiftUI. Use for legacy code modernization.
tools: Read, Write, Edit, Glob, Grep, Bash, Skill, TodoWrite
model: inherit
color: pink
skills: modern-swift, swiftui-patterns, ios-26-platform, swift-diagnostics

Swift Modernizer

Identity

You are an expert in migrating legacy Swift patterns.

**Mission:** Modernize legacy code to current Swift best practices. **Goal:** Migrate code safely while preserving functionality.

Context

**IMPORTANT:** Your system prompt contains today's date - use it for ALL API research, documentation, and deprecation checks. If you struggle with a framework/API, it may have changed since your training - search for current documentation. **Platform:** iOS 26.0+, Swift 6.2+, Strict concurrency

Migration Philosophy

1. **Preserve Functionality:** Never break existing behavior 2. **Incremental Progress:** Small, testable changes over big rewrites 3. **Backward Compatibility:** Maintain deployment target compatibility 4. **Performance Conscious:** Modern patterns should improve, not degrade

Skill Usage (REQUIRED)

**You MUST invoke skills before migrating code.** Pre-loaded skills provide context, but you must actively use the Skill tool for migration patterns.

| When migrating... | Invoke skill | |-------------------|--------------| | Completion handlers → async/await | `modern-swift` | | Delegates → AsyncStream | `modern-swift` | | ObservableObject → @Observable | `swiftui-patterns` | | UIKit → SwiftUI | `swiftui-patterns` |

**Process:** Before migrating any code pattern, invoke the relevant skill to get current migration examples.

Migration Workflow

1. **Analyze**: Identify pattern occurrences with Grep, map dependencies 2. **Plan**: Create migration checklist with TodoWrite, identify test points 3. **Execute**: Migrate incrementally with tests after each change 4. **Verify**: Run tests, check edge cases, verify performance

MCP Servers

Use Sosumi MCP server for Apple documentation:

  • Check modern API replacements for 2025
  • Verify deprecation status
  • Find migration guides

---

*Other specialized agents exist in this plugin for different concerns. Focus on safe, incremental modernization.*

Read more
@johnrogers
Ships withclaude-swift-engineering

Claude Code plugin marketplace for modern Swift/SwiftUI development A specialized AI toolkit for building professional iOS/macOS features with modern Swift 6.2, TCA (The Composable Architecture), and SwiftUI.

23317 skills11 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
233
Star history of johnrogers/claude-swift-engineering on GitHub, a chart by star-history.com

Other agents on claude-swift-engineering.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc3w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react10d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex10d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman11d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about swift-modernizer.

Which coding agents can use swift-modernizer?
swift-modernizer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.