migrate

An iOS migration command for moving code between Apple frameworks, programming patterns, or Swift versions.

In plain words
What is it for?
Use it to move UIKit screens to SwiftUI, CoreData to SwiftData, MVC to MVVM or TCA, Swift 5 to Swift 6, or older Swift patterns to newer ones.
Why use it?
It provides named migration paths and options for gradual or complete changes, with validation, backups, and architecture decision records when needed.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/carolanelfbv/ios-development-agents/migrate
Clone the repo
git clone --depth 1 https://github.com/CarolaneLFBV/ios-development-agents
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00023 $0.00598
Opus 5 $0.00012 $0.00299
Sonnet 5 $0.00005 $0.00120
Haiku 4.5 $0.00002 $0.00060

Measured 2d ago against content hash dc5dfb5903f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

migrate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/migrate.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/ios:migrate - iOS Migration

Migrate $ARGUMENTS between frameworks, patterns, and Swift versions.

Delegation

Coordinated by the architecture-specialist; route the migration path to the owning specialist via the Task tool:

  • UIKit→SwiftUI → swiftui-specialist
  • CoreData→SwiftData / MVC→MVVM → architecture-specialist
  • Swift 5→6 / ObservableObject→@Observable / completion→async → swift-specialist

With --adr, the architecture-specialist records the decision.

Arguments

Flag Values Default Description
--strategy incremental|complete|hybrid incremental Migration strategy
--validate - - Validate migration
--backup - - Create backup before migration
--adr - - Create Architecture Decision Record

Migration Paths

From To Strategy
UIKit SwiftUI incremental recommended
CoreData SwiftData complete recommended
ObservableObject @Observable complete
Completion handlers async/await incremental
Swift 5.x Swift 6 validate first
MVC MVVM/TCA incremental

Strategies

Strategy Use When
incremental Large codebase, risk mitigation
complete Small scope, full replacement
hybrid Mixed usage during transition

Migration Workflow

1. analysis:
   - Assess current implementation
   - Identify dependencies
   - Estimate effort

2. planning:
   - Create migration plan
   - Define milestones
   - Set up feature flags if needed

3. execution:
   - Migrate in phases
   - Maintain backward compatibility
   - Update tests

4. validation:
   - Run full test suite
   - Performance comparison
   - User acceptance

Examples

/ios:migrate uikit swiftui --strategy incremental
/ios:migrate coredata swiftdata --backup
/ios:migrate swift5 swift6 --validate
/ios:migrate observableobject observable --strategy complete

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 91 lines · 23 tokens per session scan A dc5dfb5903f2

Subscribe to this mod's changes

migrate is a command published in the GitHub repository CarolaneLFBV/ios-development-agents (7 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 598 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.