Skip to content
Development
Command

/axiom-modernize

Migrate legacy iOS patterns to modern equivalents (Delegate to the `modernization-helper` subagent)

From plugin
axiom
1.2k17 skills42 agents17 commands1 MCP
Install
> /plugin marketplace add charleswiltgen/axiom
> /plugin install axiom@axiom-marketplace

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/axiom-modernize

Context preview

What this command does when you run it.

Migrate legacy iOS patterns to modern equivalents (Delegate to the `modernization-helper` subagent)

Command definition

axiom-modernize.md
name: axiom-modernize
description: "Migrate legacy iOS patterns to modern equivalents (Delegate to the `modernization-helper` subagent)"

Modernize iOS Code

Delegate to the **modernization-helper** subagent to find legacy patterns and give you the migration path for each.

Shorthand for `/axiom-audit` modernization — same agent, fewer keystrokes.

What It Does

The agent will: 1. Scan for `ObservableObject` / `@Published` that should become `@Observable` 2. Find `@StateObject` and `@ObservedObject` that should become `@State` / `@Bindable` 3. Flag deprecated SwiftUI APIs still in use, with their replacements 4. Identify UIKit patterns that have a modern SwiftUI or scene-lifecycle equivalent 5. Give a migration path per finding rather than a bare list, so you can adopt incrementally

Prefer Natural Language?

You can also trigger this agent by saying:

  • "How do I migrate from ObservableObject to @Observable?"
  • "Are there any deprecated APIs in my SwiftUI code?"
  • "Update my code to use modern SwiftUI patterns"
  • "Should I still use @StateObject?"
Ships withaxiom

Battle-tested skills, agents, and tools for modern Apple OS development — Swift 6, SwiftUI, Liquid Glass, Apple Intelligence, and more. Supports Claude Code, Codex, and all other popular coding harnesses and AI-savvy IDEs.

Get the whole plugin

Other commands on axiom.