Skip to main content
Back to registry

swiftui-view-refactor

dimillian/skills

Apply a consistent structure and dependency pattern to SwiftUI views, with a focus on ordering, Model-View (MV) patterns, careful view model handling, and correct Observation usage.

Installs735
Install command
npx skills add https://github.com/dimillian/skills --skill swiftui-view-refactor
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Apply a consistent structure and dependency pattern to SwiftUI views, with a focus on ordering, Model-View (MV) patterns, careful view model handling, and correct Observation usage. Example (extracting a section): Example (long body → shorter body + computed views in the same file): Example (extracting a complex computed view): Prefer: Avoid: Example (Observation-based): - Environment - private / public let - @State / other stored properties - computed var (non-view) - init - body - computed view builders / other view helpers - helper / async functions - Default to MV: Views are lightweight state expressions; models/services own business logic. - Favor @State , @Environment , @Query , and task / onChange for orchestration. - Inject services and shared models via @Environment ; keep views small and composable. - Split large views into subviews rather than introducing a view model. - If body grows beyond a screen or has multiple logical sections, split it into smaller subviews. - Extract large computed view properties ( var header: some View { ... } ) into dedicated View types when they carry state or complex branching. - It's fine to keep related subviews as computed view properties in the same file; extract to a standalone View struct only when it structurally makes sense or when reuse is intended.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does swiftui-view-refactor do?

Apply a consistent structure and dependency pattern to SwiftUI views, with a focus on ordering, Model-View (MV) patterns, careful view model handling, and correct Observation usage.

Is swiftui-view-refactor good?

swiftui-view-refactor does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does swiftui-view-refactor work with?

swiftui-view-refactor currently lists compatibility with codex, gemini-cli, opencode, cursor, github-copilot, claude-code.

What are alternatives to swiftui-view-refactor?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install swiftui-view-refactor?

npx skills add https://github.com/dimillian/skills --skill swiftui-view-refactor

Related skills

More from dimillian/skills

Related skills

Alternatives in Software Engineering