Registry / terminalskills

terminalskills/skills/swiftui-view-refactor

Restructures an existing SwiftUI view without changing what the user sees: splits an oversized body into small view types with narrow inputs, moves actions and business logic out of the view, replaces type erasure and duplicated branches, fixes state ownership, and migrates ObservableObject models to the Observable macro. Works in small steps that each build, and reports what moved and what could behave differently. Use when the user says "clean up this SwiftUI view", "this body is 300 lines", "

Agent skill · version 0.0.0-main.1795731529.g4228905 · from TerminalSkills/skills

Install

npx yarkr-cli add skill:terminalskills/skills/swiftui-view-refactor

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:terminalskills/skills/swiftui-view-refactor
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:terminalskills/skills/swiftui-view-refactor

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:terminalskills/skills/swiftui-view-refactor

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.