
Description
swiftui-view-refactor is an agent skill that refactors and reviews SwiftUI view files so they are small, explicit and stable. It defaults to vanilla SwiftUI: state stays in the view, shared dependencies come from the environment, business logic lives in services or models, and view models are used only when the request or the existing code clearly needs one. The skill sets a consistent order for the contents of a view file, from properties and state through computed values, the initializer, the body, view helpers and functions, and it asks the assistant to keep to that order unless the file already follows a stronger local convention. The goal is views that are easy to read, that SwiftUI can diff efficiently, and that keep their dependencies explicit. It is for iOS and macOS developers who have large view files and want an assistant to split them into small dedicated subviews with clear data flow. Install it with the skills command from the dimillian/skills repository on GitHub.…
Highlights
- Small, explicit and stable view types
- Vanilla SwiftUI data flow by default
- Consistent ordering inside view files
- Business logic moved to services or models
- Splits large views into dedicated subviews
Ratings & Reviews
No ratings yet
Be the first to rate swiftui-view-refactor.
People also visit
swiftui-view-refactor FAQ
What does this skill do?
It refactors and reviews SwiftUI view files to make them small, explicit and stable.
How do I install it?
Run npx skills add https://github.com/dimillian/skills --skill swiftui-view-refactor.
Does it use view models?
Only when the request or existing code clearly requires one. The default is state in the view and logic in services or models.
What order does it expect?
Properties, state and dependencies first, then computed values, the initializer, the body and helper views and functions.
Will it override my local conventions?
No. The skill keeps to its ordering unless the file already follows a stronger local convention.
What are the best swiftui-view-refactor alternatives?
Popular alternatives to swiftui-view-refactor include swiftui-expert-skill, swiftui-pro and swiftui-patterns. See all swiftui-view-refactor alternatives











