# Axiom modernize

> Axiom modernize is an open-source agent skill for developer tools. Finds legacy SwiftUI and Swift patterns in iOS code and plans migrations to modern APIs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-modernize
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-modernize
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill turns the agent into a migration helper for iOS codebases. It guides the agent through scanning Swift files for outdated patterns such as ObservableObject with @Published, @StateObject, @ObservedObject, @EnvironmentObject, deprecated onChange syntax, and completion-handler APIs, then reports each finding with file locations and before-and-after code.

The workflow is ordered: models move to @Observable first, then the view property wrappers that depend on them, then view modifiers, with async/await adoption offered as an optional final step. The skill includes decision rules for choosing between a plain property and @Bindable, and it warns against rewriting Combine observation of framework-owned GroupSession objects, where the timing of @Published updates matters.

It works through the agent's file search and read tools, so the agent needs access to a Swift project. It scans *.swift files and skips tests, previews, dependency folders and build output.

## When your agent uses it

> Use when the user wants to modernize iOS code, migrate from ObservableObject to @Observable, update @StateObject to @State, or adopt modern SwiftUI APIs.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-modernize)
- [License: MIT](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-modernize)

## Features

- **ObservableObject migration:** Covers converting view models from ObservableObject and @Published to the @Observable macro.
- **Property wrapper updates:** Maps @StateObject, @ObservedObject and @EnvironmentObject to their modern equivalents.
- **Deprecated modifier detection:** Finds onChange calls using the older closure signature and shows the two-value replacement.
- **Async/await conversion hints:** Identifies completion-handler functions that could become async throws methods.
- **Framework class safeguards:** Flags framework-owned observable types, such as GroupSession, that should stay on Combine.
- **Prioritized migration report:** Groups findings into high, medium and low priority with a suggested order of changes.

## Good for

- Migrate my view models from ObservableObject to @Observable
- Replace @StateObject and @EnvironmentObject with modern SwiftUI property wrappers
- Find deprecated onChange calls in my SwiftUI views
- Show which completion-handler functions could become async/await
- Plan an iOS 26 modernization pass across my Swift project

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/axiom-modernize` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/axiom-modernize &&
cp -R "$tmp/axiom-codex/skills/axiom-modernize" ~/.claude/skills/axiom-modernize &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/axiom-modernize` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/axiom-modernize` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/axiom-modernize &&
cp -R "$tmp/axiom-codex/skills/axiom-modernize" ~/.agents/skills/axiom-modernize &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/axiom-modernize` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/axiom-modernize` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/axiom-modernize &&
cp -R "$tmp/axiom-codex/skills/axiom-modernize" ~/.cursor/skills/axiom-modernize &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/axiom-modernize` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/CharlesWiltgen/Axiom.git --path axiom-codex/skills/axiom-modernize
```

Or copy the folder to `~/.gemini/skills/axiom-modernize` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/axiom-modernize`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/axiom-modernize &&
cp -R "$tmp/axiom-codex/skills/axiom-modernize" ~/.copilot/skills/axiom-modernize &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/axiom-modernize` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git
```

Then copy `Axiom/axiom-codex/skills/axiom-modernize` into your agent's skills folder as `axiom-modernize`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which files does the skill scan?

It looks at all Swift files in the project, skipping test files, preview files, and folders for dependencies, build output, and docs.

### Does Axiom modernize change my code automatically?

The skill directs the agent to scan and report migration paths with code examples. It describes the changes to make but does not say it applies them without review.

### Will Axiom modernize migrate SharePlay GroupSession code?

No. The skill says GroupSession is framework-owned and its Combine observation relies on willSet timing, so it should be left as is and explained.

### What does Axiom modernize need to run?

It needs the agent to have Glob, Grep and Read tools available and a Swift or SwiftUI codebase to scan.

### How do I install Axiom modernize in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/axiom-modernize to use it in all your projects, or to .claude/skills/axiom-modernize in one project.

### Does Axiom modernize run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Axiom modernize?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Axiom modernize?

The closest alternatives to Axiom modernize are Axiom analyze swiftui performance, Axiom swiftui, Axiom audit swiftui architecture, Axiom swift and Axiom swift simplifier.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Axiom analyze swiftui performance](https://ai-powered.com/skills/axiom-analyze-swiftui-performance): Axiom analyze swiftui performance is an open-source agent skill for developer tools.
- [Axiom swiftui](https://ai-powered.com/skills/axiom-swiftui-charleswiltgen-2): Axiom swiftui is an open-source agent skill for developer tools.
- [Axiom audit swiftui architecture](https://ai-powered.com/skills/axiom-audit-swiftui-architecture): Axiom audit swiftui architecture is an open-source agent skill for developer tools.
- [Axiom swift](https://ai-powered.com/skills/axiom-swift-charleswiltgen-2): Axiom swift is an open-source agent skill for developer tools.
- [Axiom swift simplifier](https://ai-powered.com/skills/axiom-swift-simplifier): Axiom swift simplifier is an open-source agent skill for developer tools.
- [Axiom uikit](https://ai-powered.com/skills/axiom-uikit-charleswiltgen-2): Axiom uikit is an open-source agent skill for developer tools.
- [Axiom audit swiftdata](https://ai-powered.com/skills/axiom-audit-swiftdata): Axiom audit swiftdata is an open-source agent skill for developer tools.
- [Axiom watchos](https://ai-powered.com/skills/axiom-watchos-charleswiltgen-2): Axiom watchos is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/axiom-modernize
