From ios-development
Single Source of Truth (SSOT) guidelines for SwiftUI state management. Use when designing state architecture, choosing between @State/@Binding/@StateObject/@ObservedObject/@EnvironmentObject, fixing state synchronization issues, refactoring duplicated state, or reviewing state management in PRs. Covers SSOT principles, property wrapper selection, state lifting, and common violations.
npx claudepluginhub xtone/ai_development_tools --plugin ios-developmentThis skill uses the workspace's default tool permissions.
SwiftUIにおける状態管理とSSOT原則の包括的ガイド。
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
SwiftUIにおける状態管理とSSOT原則の包括的ガイド。
swiftui-ssot/
├── SKILL.md (このファイル)
└── references/
└── ssot.md
Single Source of Truth(SSOT)の包括的ガイド:
references/ssot.mdのProperty Wrapper選択フローチャートを参照references/ssot.mdの違反パターンを確認references/ssot.mdのレビューチェックリストを使用| 状況 | 推奨 |
|---|---|
| View内のローカル状態 | @State |
| 親から受け取る値(読み書き) | @Binding |
| Viewが所有するObservableObject | @StateObject |
| 外部から注入されるObservableObject | @ObservedObject |
| アプリ全体で共有 | @EnvironmentObject |
| iOS 17+ | @Observable + @Bindable |