·swiftui-view-refactor
</>

swiftui-view-refactor

steipete/agent-scripts

SwiftUI ビュー ファイルをリファクタリングしてレビューし、一貫した構造、依存関係の挿入、Observation の使用法を確認します。 SwiftUI ビューのレイアウト/順序をクリーンアップする、ビュー モデルを安全に処理する (可能な場合はオプションではない)、または依存関係と @Observable 状態が初期化および渡される方法を標準化するように求められた場合に使用します。

25インストール·0トレンド·@steipete

インストール

$npx skills add https://github.com/steipete/agent-scripts --skill swiftui-view-refactor

SKILL.md

Overview 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 (long body → shorter body + computed views in the same file):

1) Reorder the view to match the ordering rules. 2) Favor MV: move lightweight orchestration into the view using @State, @Environment, @Query, task, and onChange. 3) If a view model exists, replace optional view models with a non-optional @State view model initialized in init by passing dependencies from the view.

SwiftUI ビュー ファイルをリファクタリングしてレビューし、一貫した構造、依存関係の挿入、Observation の使用法を確認します。 SwiftUI ビューのレイアウト/順序をクリーンアップする、ビュー モデルを安全に処理する (可能な場合はオプションではない)、または依存関係と @Observable 状態が初期化および渡される方法を標準化するように求められた場合に使用します。 ソース: steipete/agent-scripts。

原文を見る

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/steipete/agent-scripts --skill swiftui-view-refactor
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-01
更新日
2026-02-18

クイックアンサー

swiftui-view-refactor とは?

SwiftUI ビュー ファイルをリファクタリングしてレビューし、一貫した構造、依存関係の挿入、Observation の使用法を確認します。 SwiftUI ビューのレイアウト/順序をクリーンアップする、ビュー モデルを安全に処理する (可能な場合はオプションではない)、または依存関係と @Observable 状態が初期化および渡される方法を標準化するように求められた場合に使用します。 ソース: steipete/agent-scripts。

swiftui-view-refactor のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/steipete/agent-scripts --skill swiftui-view-refactor インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります

ソースリポジトリはどこですか?

https://github.com/steipete/agent-scripts