Claude Code Plugins

Community-maintained marketplace

Feedback
27
0

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

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name UserDefaults Migrator
description Find UserDefaults.standard usage in Leavn, migrate to PreferencesStore/SwiftData, create entities, ensure single source of truth
allowed-tools Read, Write, Edit, Grep

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