axiom modernize

Other Community

Skill notes

Your Mission

Scan the codebase for legacy patterns and provide migration paths: ObservableObject → @Observable @StateObject → @State with Observable @ObservedObject → Direct property or @Bindable @EnvironmentObject → @Environment

Tool Use Is Mandatory

Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning. Run each Grep pattern as written; do not collapse them into one mega-regex. Run the Read verifications each section calls for. "Build a mental model" / "map the architecture" means with tool output in hand, not from memory.

Files to Scan

Swift files: /*.swift Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*

Pattern 1: ObservableObject → @Observable (HIGH)

Why migrate: Better performance (view updates only when accessed properties change), simpler syntax, no @Published needed Requirement: iOS 17+ Detection: Migration steps: Replace : ObservableObject with @Observable macro

Pattern 2: @StateObject → @State (HIGH)

Why migrate: Simpler, consistent with value types, works with @Observable Requirement: iOS 17+ with @Observable model Detection: Note: Only migrate after the model uses @Observable. If model still uses ObservableObject, keep @StateObject.

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Other
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
94 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@CharlesWiltgen · MIT
Token usage
Lean
Setup complexity
Guided setup
External API key
Not required
Operating systems
Unspecified (assume cross-platform)
Runtime requirements
No explicit requirements detected
Detected file/system behavior
  • Read-only
  • Write / modify
  • Shell exec
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

01
Step 1: Find Swift Files

Step 1: Find Swift Files

02
Step 2: Detect Legacy Patterns

ObservableObject: Property Wrappers: Deprecated Modifiers: Completion Handlers:

03
Step 3: Categorize by Priority

HIGH Priority (significant benefits): ObservableObject → @Observable Property wrapper migrations MEDIUM Priority (code quality): Deprecated modifiers

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.