- Add 60 new agents across all 10 categories (75 -> 135) - Add 95 new plugins with command files (25 -> 120) - Update all agents to use model: opus - Update README with complete plugin/agent tables - Update marketplace.json with all 120 plugins
1.4 KiB
1.4 KiB
/create-view - Create SwiftUI View
Generate a SwiftUI view with proper architecture and best practices.
Steps
- Ask the user for the view name, purpose, and data requirements
- Determine the view type: screen (full page), component (reusable), or sheet (modal)
- Create the SwiftUI view file with the appropriate structure
- Add @State, @Binding, @ObservedObject, or @EnvironmentObject properties as needed
- Implement the view body with proper layout: VStack, HStack, ZStack, List, or Grid
- Add navigation elements: NavigationLink, sheet, alert, or confirmationDialog
- Include loading, empty, and error states with appropriate UI
- Add accessibility modifiers: accessibilityLabel, accessibilityHint, accessibilityValue
- Implement dark mode support with proper color assets
- Create a PreviewProvider with multiple preview configurations
- Add the view to the navigation flow in the appropriate coordinator or router
- Document the view's purpose, parameters, and usage examples
Rules
- Follow MVVM architecture: views should not contain business logic
- Use @StateObject for owned data, @ObservedObject for injected data
- Keep views small; extract subviews for sections over 30 lines
- Use SF Symbols for icons instead of custom assets when available
- Support Dynamic Type for all text elements
- Add proper keyboard handling for form views
- Use the project's design system colors and typography