CommunityCodierung & Entwicklunggithub.com

dimillian/swiftui-view-refactor

SwiftUI-View-Dateien mit starken Vorgaben für kleine, dedizierte Subviews, MV-über-MVVM-Datenfluss, stabile View-Bäume, explizite Dependency Injection und korrekte Observation-Nutzung refaktorieren und überprüfen.

Was ist swiftui-view-refactor?

Dieses Skill hilft Entwicklern, SwiftUI-View-Dateien systematisch zu überarbeiten und zu standardisieren. Es setzt auf starke Vorgaben: kleine, dedizierte Subviews, MV-über-MVVM-Datenfluss (Model-View über Model-View-ViewModel), stabile View-Bäume (keine unnötigen Neuanordnungen), explizite Dependency Injection und korrekte Verwendung von `@Observable` und Observation. Es eignet sich besonders, wenn eine SwiftUI-View aufgeräumt werden soll, lange `body`-Eigenschaften geteilt, Inline-Aktionen oder Seiteneffekte entfernt oder berechnete `some View`-Helfer reduziert werden müssen. Das Skill unterstützt Standard-Xcode-Projekte und kann in CI/CD-Workflows integriert werden. Es basiert auf dem SKILL.md-Dokument, das konkrete Refactoring-Regeln, Codebeispiele und Anti-Patterns definiert – ideal für Projekte, die einen konsistenten SwiftUI-Code-Stil anstreben.

Funktioniert mit~Claude Code~Codex CLI~Cursor
Part ofMobile
npx skills add https://github.com/dimillian/skills/tree/main/skills/swiftui-view-refactor

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht swiftui-view-refactor?

SwiftUI-View-Dateien mit starken Vorgaben für kleine, dedizierte Subviews, MV-über-MVVM-Datenfluss, stabile View-Bäume, explizite Dependency Injection und korrekte Observation-Nutzung refaktorieren und überprüfen. Verwenden, wenn eine SwiftUI-View bereinigt, lange body-Eigenschaften geteilt, Inline-Aktionen oder Seiteneffekte entfernt, berechnete some View-Helfer reduziert oder @Observable- und View-Modell-Initialisierungsmuster standardisiert werden sollen.

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

dimillian/app-store-changelog

Create user-facing App Store release notes by collecting and summarizing all user-impacting changes since the last git tag (or a specified ref). Use when asked to generate a comprehensive release changelog, App Store "What's New" text, or release notes based on git history or tags.

dimillian/ios-debugger-agent

Use XcodeBuildMCP to build, run, launch, and debug the current iOS project on a booted simulator. Trigger when asked to run an iOS app, interact with the simulator UI, inspect on-screen state, capture logs/console output, or diagnose runtime behavior using XcodeBuildMCP tools.

dimillian/macos-spm-app-packaging

Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project. Use when you need a from-scratch macOS app layout, SwiftPM targets/resources, a custom .app bundle assembly script, or signing/notarization/appcast steps outside Xcode.

dimillian/swift-concurrency-expert

Swift Concurrency review and remediation for Swift 6.2+. Use when asked to review Swift Concurrency usage, improve concurrency compliance, or fix Swift concurrency compiler errors in a feature or file. Concrete actions include adding Sendable conformance, applying @MainActor annotations, resolving actor isolation warnings, fixing data race diagnostics, and migrating completion handlers to async/await.

dimillian/swiftui-liquid-glass

Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing feature to Liquid Glass, or review Liquid Glass usage for correctness, performance, and design alignment.

dimillian/swiftui-performance-audit

Audit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory usage, excessive view updates, or layout thrash in SwiftUI apps, and to provide guidance for user-run Instruments profiling when code review alone is insufficient.

dimillian/swiftui-ui-patterns

Best practices and example-driven guidance for building SwiftUI views and components, including navigation hierarchies, custom view modifiers, and responsive layouts with stacks and grids. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView, composing screens with VStack/HStack, managing @State or @Binding, building declarative iOS interfaces, or needing component-specific patterns and examples.

Verwandte Skills