modernize
Find legacy patterns in your codebase and get the migration path for each one.
Shorthand for /axiom:audit modernization — same agent, fewer keystrokes.
What This Command Does
Launches the modernization-helper agent. It reports each legacy pattern with the modern equivalent and how to get there, so you can adopt incrementally rather than facing an all-or-nothing rewrite.
What It Checks
ObservableObject/@Published– the@Observablemacro replacement, and what changes about view updates@StateObject/@ObservedObject– when these become@Stateand@Bindable- Deprecated SwiftUI APIs – still-compiling calls that have a current replacement
- UIKit patterns with a modern equivalent – including scene-lifecycle migrations
- Migration order – which changes are safe in isolation and which have to move together
Usage
/axiom:modernizeRelated
- modernization-helper – The agent that powers this command
- audit-modernization – The same agent under the
/axiom:auditfamily