|
| 1 | +# Plugin Brainstorm: swiftui-dev |
| 2 | + |
| 3 | +## Domain & Purpose |
| 4 | + |
| 5 | +**Domain**: SwiftUI / macOS / iOS Native Development |
| 6 | +**Purpose**: Comprehensive SwiftUI development support focused on UI testing, integration testing, and interactive development practices with emphasis on data-driven applications. |
| 7 | + |
| 8 | +## Use Cases |
| 9 | + |
| 10 | +1. **Data Analytics App Development** - Building Marimo-like reactive notebooks with DuckDB, graph visualization, and Swift Charts |
| 11 | +2. **General SwiftUI Development** - Broad support for SwiftUI app architecture, components, and patterns |
| 12 | +3. **Portfolio Project Quality** - Ensuring production-ready polish, proper error handling, and architecture documentation |
| 13 | + |
| 14 | +## Components |
| 15 | + |
| 16 | +### Skills |
| 17 | + |
| 18 | +| Name | Purpose | Priority | |
| 19 | +|------|---------|----------| |
| 20 | +| swiftui-architecture | SwiftUI app architecture patterns (MVVM, TCA, Clean Architecture) | must | |
| 21 | +| swiftui-components | Common UI component patterns (lists, forms, navigation, sheets) | must | |
| 22 | +| swiftui-data-flow | @Observable, @State, @Binding, environment values, data passing | must | |
| 23 | +| swiftui-testing | XCTest + XCUITest patterns, ViewInspector, test organization | must | |
| 24 | +| swift-concurrency | async/await, actors, structured concurrency, Task groups | must | |
| 25 | +| duckdb-swift | DuckDB integration, SQL queries, CSV/Parquet/SQLite bridging | must | |
| 26 | +| grdb-swift | GRDB.swift patterns, @Query, migrations, observation | should | |
| 27 | +| swiftdata-patterns | SwiftData models, queries, relationships, CloudKit sync | should | |
| 28 | +| kuzu-swift | Kuzu graph database integration, Cypher queries | should | |
| 29 | +| dolt-swift | Dolt version-controlled database patterns | nice | |
| 30 | +| swift-charts | Swift Charts API, PointMark, LineMark, BarMark, Chart3D | must | |
| 31 | +| grape-graphs | Force-directed graph visualization with Grape library | should | |
| 32 | +| accelerate-numerics | vDSP, BLAS, LAPACK for numerical computing | should | |
| 33 | +| sketch-to-swiftui | Translating Sketch designs to SwiftUI views | should | |
| 34 | +| xctest-patterns | Unit testing patterns, mocking, dependency injection | must | |
| 35 | +| xcuitest-patterns | UI testing, accessibility identifiers, test plans | must | |
| 36 | +| swift-package-manager | Package.swift, dependencies, targets, resources | must | |
| 37 | +| xcode-previews | Preview providers, sample data, preview modifiers | should | |
| 38 | +| instruments-profiling | Time Profiler, Allocations, Leaks, Metal System Trace | should | |
| 39 | + |
| 40 | +### Commands |
| 41 | + |
| 42 | +| Name | Purpose | Priority | |
| 43 | +|------|---------|----------| |
| 44 | +| /create-swiftui-view | Generate a new SwiftUI view with proper structure and previews | must | |
| 45 | +| /create-viewmodel | Generate an @Observable ViewModel with dependency injection | must | |
| 46 | +| /create-xctest | Generate XCTest unit test file with proper setup/teardown | must | |
| 47 | +| /create-xcuitest | Generate XCUITest UI test with page object pattern | should | |
| 48 | +| /create-swift-package | Initialize a new Swift Package with proper structure | must | |
| 49 | +| /swiftui-preview-data | Generate preview sample data for SwiftUI previews | should | |
| 50 | +| /analyze-view-performance | Analyze SwiftUI view for performance issues | nice | |
| 51 | +| /migrate-to-observable | Migrate ObservableObject to @Observable macro | should | |
| 52 | + |
| 53 | +### Agents |
| 54 | + |
| 55 | +| Name | Purpose | Priority | |
| 56 | +|------|---------|----------| |
| 57 | +| swiftui-architect | Design SwiftUI app architecture, module boundaries, data flow | must | |
| 58 | +| swiftui-code-reviewer | Review SwiftUI code for best practices, performance, accessibility | must | |
| 59 | +| swift-test-generator | Generate comprehensive test suites for Swift code | should | |
| 60 | +| sketch-translator | Translate Sketch designs into SwiftUI implementation plans | should | |
| 61 | +| swift-debugger | Debug SwiftUI issues, view rendering problems, data flow bugs | should | |
| 62 | + |
| 63 | +### Output Styles |
| 64 | + |
| 65 | +| Name | Purpose | Priority | |
| 66 | +|------|---------|----------| |
| 67 | +| swift-code | Swift code formatting with proper conventions | must | |
| 68 | +| swiftui-view | SwiftUI view code with preview providers | must | |
| 69 | +| xctest-output | Test file output with assertions and setup | must | |
| 70 | +| swift-package-manifest | Package.swift manifest formatting | should | |
| 71 | + |
| 72 | +### Hooks |
| 73 | + |
| 74 | +| Name | Purpose | Priority | |
| 75 | +|------|---------|----------| |
| 76 | +| swift-format-check | Run swift-format on Swift files | should | |
| 77 | +| swiftlint-check | Run SwiftLint on Swift files | should | |
| 78 | +| swift-build-check | Verify Swift package builds | should | |
| 79 | + |
| 80 | +### MCP Servers |
| 81 | + |
| 82 | +| Name | Purpose | Priority | |
| 83 | +|------|---------|----------| |
| 84 | +| xcode-mcp | Xcode project operations, build, test, run | must | |
| 85 | +| swift-lsp | SourceKit-LSP integration for code intelligence | must | |
| 86 | +| duckdb-mcp | DuckDB query execution and schema inspection | should | |
| 87 | +| kuzu-mcp | Kuzu graph database queries and visualization | nice | |
| 88 | + |
| 89 | +### LSP Servers |
| 90 | + |
| 91 | +| Name | Purpose | Priority | |
| 92 | +|------|---------|----------| |
| 93 | +| sourcekit-lsp | Apple's official Swift/Xcode LSP | must | |
| 94 | + |
| 95 | +## Summary |
| 96 | + |
| 97 | +| Category | Must | Should | Nice | Total | |
| 98 | +|----------|------|--------|------|-------| |
| 99 | +| Skills | 10 | 7 | 1 | 18 | |
| 100 | +| Commands | 4 | 3 | 1 | 8 | |
| 101 | +| Agents | 2 | 3 | 0 | 5 | |
| 102 | +| Styles | 3 | 1 | 0 | 4 | |
| 103 | +| Hooks | 0 | 3 | 0 | 3 | |
| 104 | +| MCP | 2 | 1 | 1 | 4 | |
| 105 | +| LSP | 1 | 0 | 0 | 1 | |
| 106 | +| **Total**| 22 | 18 | 3 | 43 | |
0 commit comments