Community코딩 & 개발github.com

dimillian/swiftui-view-refactor

SwiftUI 뷰 파일을 리팩터링하고 검토합니다. 작은 전용 서브뷰, MV-over-MVVM 데이터 흐름, 안정적인 뷰 트리, 명시적 의존성 주입, 올바른 Observation 사용에 강력한 기본값을 제공합니다. SwiftUI 뷰 정리, 긴 본문 분할, 인라인 액션 또는 사이드 이펙트 제거, 계산된 `some View` 헬퍼 축소, `@Observable` 및 뷰 모델 초기화 패턴 표준화 시 사용하세요.

swiftui-view-refactor란 무엇인가요?

이 스킬은 SwiftUI 뷰 파일을 체계적으로 리팩터링하고 검토하도록 설계된 AI 에이전트 도구입니다. 주요 목표는 작은 전용 서브뷰를 선호하고, MV-over-MVVM 데이터 흐름을 채택하며, 안정적인 뷰 트리를 유지하고, 명시적 의존성 주입을 강제하며, Apple의 Observation 프레임워크를 올바르게 사용하는 강력한 기본 패턴을 시행하는 것입니다. 긴 `View` 본문을 분할하고, 인라인 액션이나 사이드 이펙트를 전용 뷰 모델로 이동하고, 과도하게 사용된 계산된 `some View` 헬퍼를 실제 서브뷰 유형으로 변환하고, `@Observable` 클래스 및 해당 뷰 모델의 초기화를 표준화하는 데 특히 유용합니다. 이 스킬은 Xcode, Cursor, 또는 명령줄에서 SwiftUI 파일을 직접 편집하는 등 SwiftUI 개발 환경과 함께 사용하도록 설계되었습니다. 프록시 뷰 모델, 뷰 내부의 느린 값, 불필요한 재계산을 방지하는 패턴을 적극 권장합니다. 동작 방식은 SKILL.md 문서에 정의된 일련의 규칙을 따르며, 개발자가 특정 리팩터링 명령을 내리면 AI가 파일 구조를 분석하고 표준 패턴에 따라 변환합니다. 이를 통해 코드베이스 전반에 걸쳐 일관된 아키텍처를 유지할 수 있어 대규모 SwiftUI 프로젝트의 유지보수성과 성능을 크게 향상시킵니다.

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

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

swiftui-view-refactor은(는) 무엇을 하나요?

SwiftUI 뷰 파일을 리팩터링하고 검토합니다. 작은 전용 서브뷰, MV-over-MVVM 데이터 흐름, 안정적인 뷰 트리, 명시적 의존성 주입, 올바른 Observation 사용에 강력한 기본값을 제공합니다. SwiftUI 뷰 정리, 긴 본문 분할, 인라인 액션 또는 사이드 이펙트 제거, 계산된 some View 헬퍼 축소, @Observable 및 뷰 모델 초기화 패턴 표준화 시 사용하세요.

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.

관련 스킬