yigitkonur/plugin-swiftui/swiftui-modernize

Claude Code and agent skill by yigitkonur/plugin-swiftui

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when asked to "modernize", "upgrade", "clean up", or "update" SwiftUI on macOS, to "remove deprecated APIs", when raising a deployment target, or when reviewing old SwiftUI for staleness. Audits and modernizes EXISTING SwiftUI code — finds deprecated APIs and migrates them to the current idiom, backed by real production examples. Drives the swiftui-ctx CLI (deprecated + lookup). Do NOT use for writing brand-new code from scratch (use swiftui-examples), scaffolding whole features (use macos-…

Install

npx vskill@latest install yigitkonur/plugin-swiftui/swiftui-modernize

SKILL.md

The same SKILL.md was published earlier as yigitkonur/plugin-swiftui/swiftui-modernize.

swiftui-modernize — fix deprecated/stale SwiftUI

Operates on code that already exists: it finds deprecated and outdated SwiftUI and migrates it to what shipping macOS apps use today, using swiftui-ctx as the source of truth. (Writing new code → swiftui-examples. Scaffolding a whole pattern → macos-app-patterns.)

swiftui-ctx = ${CLAUDE_PLUGIN_ROOT}/scripts/swiftui-ctx (or swiftui-ctx on PATH). It self-builds + self-locates the catalog.

The rule

Do not guess whether an API is current. Check it. A call that compiles can still be deprecated — the catalog knows (it's flagged across 200–1,100 real repos). Announce: "Using swiftui-modernize to verify against production."

Workflow

  1. Find candidates. Scan the target file/diff for SwiftUI symbols (modifiers, types, wrappers).
  2. Check each. swiftui-ctx deprecated <api> → it returns deprecated: true/false, the replacement, and a note.

Run swiftui-ctx deprecated (no arg) once to see the full deprecated-in-the-wild list to scan against.

  1. Get the real migration. For each deprecated hit, swiftui-ctx lookup <replacement> → the modern idiom +

file --smart a real example, then rewrite.

  1. Report, don't silently change: list each old → new with the permalink evidence, then apply.

The common migrations are tabulated in references/migrations.md (read it for the fast path).

Behavioral rules

  • Never leave a deprecated API in place once flagged — migrate it or call out why you can't.
  • Prefer the replacement the tool gives; confirm the new call's shape via lookup <replacement> consensus.
  • Modernity isn't only deprecation: prefer @Observable over ObservableObject, NavigationStack/Split over

NavigationView, the Settings scene + MenuBarExtra for macOS — swiftui-ctx lookup shows current adoption.

  • Pair with sosumi.ai (the doc: link) to confirm the replacement's signature before rewriting.

Errors → actions

3 not-found → swiftui-ctx search "<broader>". 5 no catalog → STOP, tell the user, don't fabricate a migration.

References

FileRead when
references/migrations.mdYou want the common deprecated→modern macOS SwiftUI migration table up front.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/yigitkonur/plugin-swiftui/swiftui-modernize/badge)](https://verified-skill.com/skills/yigitkonur/plugin-swiftui/swiftui-modernize)

Something wrong with this skill or its page? Tell us.