app-resizability
Use when an app's layout must adapt to a window that changes size while the app runs, or when an app must support more than one…
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,
Claude Code
$ npx -y skills add omarshahine/HomeClaw --skill swiftui-ui-patterns --agent claude-code
Codex
$ npx skills add omarshahine/HomeClaw --skill swiftui-ui-patterns -a codex -y
Cursor
$ npx skills add omarshahine/HomeClaw --skill swiftui-ui-patterns -a cursor -y
Gemini CLI
$ npx skills add omarshahine/HomeClaw --skill swiftui-ui-patterns -a gemini-cli -y
GitHub Copilot
$ npx skills add omarshahine/HomeClaw --skill swiftui-ui-patterns -a github-copilot -y
OpenCode
$ npx skills add omarshahine/HomeClaw --skill swiftui-ui-patterns -a opencode -y
Windsurf
$ npx skills add omarshahine/HomeClaw --skill swiftui-ui-patterns -a windsurf -y
name: swiftui-ui-patterns description: 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.
Choose a track based on your goal:
Use the narrowest state tool that matches the ownership model:
| Scenario | Preferred pattern | | --- | --- | | Local UI state owned by one view | `@State` | | Child mutates parent-owned value state | `@Binding` | | Root-owned reference model on iOS 17+ | `@State` with an `@Observable` type | | Child reads or mutates an injected `@Observable` model on iOS 17+ | Pass it explicitly as a stored property | | Shared app service or configuration | `@Environment(Type.self)` | | Legacy reference model on iOS 16 and earlier | `@StateObject` at the root, `@ObservedObject` when injected |
Choose the ownership location first, then pick the wrapper. Do not introduce a reference model when plain value state is enough.
1. Define the view's state, ownership location, and minimum OS assumptions before writing UI code. 2. Identify which dependencies belong in `@Environment` and which should stay as explicit initializer inputs. 3. Sketch the view hierarchy, routing model, and presentation points; extract repeated parts into subviews. For complex navigation, read `references/navigationstack.md`, `references/sheets.md`, or `references/deeplinks.md`. **Build and verify no compiler errors before proceeding.** 4. Implement async loading with `.task` or `.task(id:)`, plus explicit loading and e
HomeKit smart home control via MCP — lights, locks, thermostats, and scenes for Claude Desktop, Claude Code, and OpenClaw
Use when an app's layout must adapt to a window that changes size while the app runs, or when an app must support more than one…
Design and implement App Intents, app entities, and App Shortcuts for iOS apps so useful actions and content are available to…
Use XcodeBuildMCP to build, run, launch, and debug the current iOS project on a booted simulator. Trigger when asked to run an…
Capture and interpret ETTrace profiles for iOS simulator apps, including symbolicated launch and runtime flamegraphs. Use when…
Capture, inspect, compare, and root-cause iOS memory graph leaks using Apple's leaks and memgraph tools. Use when debugging…
Analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead that slow Xcode…
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…