Agent skill

UserDefaults Migrator

Find UserDefaults.standard usage in Leavn, migrate to PreferencesStore/SwiftData, create entities, ensure single source of truth

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/userdefaults-migrator-willsigmon-sigstack-site

SKILL.md

UserDefaults Migrator

Migrate UserDefaults to SwiftData:

  1. Find usage: grep -r "UserDefaults.standard"

  2. Categorize:

    • Keep: Tests, debug flags, widgets
    • Migrate: User preferences, stats, settings
  3. Create entity if needed

  4. Update code to use PreferencesStore

  5. Write migration logic

  6. Archive old keys

Use when: UserDefaults cleanup, preference migration, SwiftData entities

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results