swiftui-view-generator
Generate SwiftUI views with proper state management (@State, @Binding, @ObservedObject, @StateObject) and macOS-specific patterns
npx skills add a5c-ai/babysitter --skill swiftui-view-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# swiftui-view-generator Generate SwiftUI views with proper state management for macOS applications. This skill creates well-structured SwiftUI components using @State, @Binding, @ObservedObject, @StateObject, and @EnvironmentObject property wrappers. ## Capabilities - Generate SwiftUI views with proper state management - Create reusable view components - Set up data flow with Combine - Implement navigation patterns - Generate macOS-specific UI elements - Create preference-based layouts - Set up environment values - Generate preview providers ## Input Schema ```json { "type": "object", "properties": { "projectPath": { "type": "string", "description": "Path to the Swift project" }, "viewName": { "type": "string", "description": "Name of the view to generate" }, "viewType": { "enum": ["screen", "component", "list", "form", "settings", "sheet"], "default": "screen" }, "stateProperties": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" }, "wrapper": { "enum": ["State", "Binding", "ObservedObject", "StateObject", "EnvironmentObject"] } } } }, "includeViewModel": { "type": "boolean", "default": true }, "macOSSpecific
- Capabilities
- Input Schema
- Output Schema
- Generated SwiftUI View Example
- ViewModel
- Reusable Component
- Settings View (macOS)
- List View with Selection
- State Management Patterns
- @State - Local state
- @Binding - Two-way binding from parent
- @StateObject - Owned observable object
- @ObservedObject - Passed observable object
- @EnvironmentObject - Shared via environment
What does the swiftui-view-generator skill do?
Generate SwiftUI views with proper state management (@State, @Binding, @ObservedObject, @StateObject) and macOS-specific patterns
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill swiftui-view-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
