Communityコーディング&開発github.com

dimillian/swiftui-view-refactor

SwiftUIビューファイルをリファクタリング・レビューします。小さな専用サブビュー、MV優先のデータフロー、安定したビューツリー、明示的依存性注入、正しいObservationの使用を強く推奨。SwiftUIビューのクリーンアップ、長いボディの分割、インラインアクションや副作用の除去、計算型`some View`ヘルパーの削減、`@Observable`とビューモデルの初期化パターンの標準化に使用します。

swiftui-view-refactor とは?

このスキルは、SwiftUIビューファイルのリファクタリングとレビューを支援するためのAIエージェントスキルです。主にClaude CodeやCursor、CodexなどのAIエージェントプラットフォーム向けに設計されており、開発者がSwiftUIビューをクリーンアップする際に、以下のベストプラクティスを自動的に適用します:小さな専用サブビューへの分割、MV(Model-View)優先のデータフローの採用、安定したビューツリーの維持、明示的な依存性注入(DI)、そしてSwift Observationフレームワークの正しい使用。このスキルは、長いボディを持つビューの分割、インラインでのアクションや副作用の除去、計算型`some View`ヘルパーのリファクタリング、`@Observable`マクロとビューモデルの初期化パターンの標準化など、一般的なSwiftUIのコードベース改善タスクを自動化します。これにより、保守性が高く、テスタブルで、パフォーマンスに優れた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(Model-View)優先のデータフロー(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.

関連スキル