[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75GFJPJ7YNKABEY49SADBZM":3,"skill-same:01M75GFJPJ7YNKABEY49SADBZM":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M75GFJPJ7YNKABEY49SADBZM","fosmvvm-swiftui-app-setup",null,"Set up the @main App struct for FOSMVVM SwiftUI apps. Configures MVVMEnvironment, deployment URLs, and test infrastructure.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffoscomputerservices\u002Ffosmvvm-swiftui-app-setup\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: fosmvvm-swiftui-app-setup\ndescription: Set up the @main App struct for FOSMVVM SwiftUI apps. Configures MVVMEnvironment, deployment URLs, and test infrastructure.\nhomepage: https:\u002F\u002Fgithub.com\u002Ffoscomputerservices\u002FFOSUtilities\nmetadata: {\"clawdbot\": {\"emoji\": \"🚀\", \"os\": [\"darwin\"]}}\n---\n\n# FOSMVVM SwiftUI App Setup\n\nGenerate the main App struct for a SwiftUI application using FOSMVVM architecture.\n\n## Conceptual Foundation\n\n> For full architecture context, see [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md) | [OpenClaw reference]({baseDir}\u002Freferences\u002FFOSMVVMArchitecture.md)\n\nThe **App struct** is the entry point of a SwiftUI application. In FOSMVVM, it has three core responsibilities:\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                      @main App Struct                        │\n├─────────────────────────────────────────────────────────────┤\n│  1. MVVMEnvironment Setup                                   │\n│     - Bundles (app + localization resources)                │\n│     - Deployment URLs (production, staging, debug)          │\n│                                                              │\n│  2. Environment Injection                                   │\n│     - .environment(mvvmEnv) on WindowGroup                  │\n│     - Custom environment values                             │\n│                                                              │\n│  3. Test Infrastructure (DEBUG only)                        │\n│     - .testHost { } modifier for UI testing                 │\n│     - registerTestingViews() for individual view testing    │\n└─────────────────────────────────────────────────────────────┘\n```\n\n## Core Components\n\n### 1. MVVMEnvironment\n\nThe `MVVMEnvironment` provides FOSMVVM infrastructure to all views:\n\n```swift\nprivate var mvvmEnv: MVVMEnvironment {\n    MVVMEnvironment(\n        appBundle: Bundle.main,\n        resourceBundles: [\n            MyAppViewModelsResourceAccess.localizationBundle,\n            SharedResourceAccess.localizationBundle\n        ],\n        deploymentURLs: [\n            .production: .init(serverBaseURL: URL(string: \"https:\u002F\u002Fapi.example.com\")!),\n            .debug: .init(serverBaseURL: URL(string: \"http:\u002F\u002Flocalhost:8080\")!)\n        ]\n    )\n}\n```\n\n**Key configuration:**\n- `appBundle` - Usually `Bundle.main` (the app bundle)\n- `resourceBundles` - Array of localization bundles from your modules\n- `deploymentURLs` - URLs for each deployment environment\n\n**Resource Bundle Accessors:**\n\nEach module that contains localization resources should provide a bundle accessor:\n\n```swift\n\u002F\u002F In your ViewModels module (e.g., MyAppViewModels\u002FResourceAccess.swift)\npublic enum MyAppViewModelsResourceAccess {\n    public static var localizationBundle: Bundle { Bundle.module }\n}\n```\n\nThis pattern:\n- Uses `Bundle.module` which SPM automatically provides for each module\n- Provides a clean public API for accessing the module's resources\n- Keeps bundle access centralized in one place per module\n\n### 2. Environment Injection\n\nThe `MVVMEnvironment` is injected at the WindowGroup level:\n\n```swift\nvar body: some Scene {\n    WindowGroup {\n        MyView()\n    }\n    .environment(mvvmEnv)  \u002F\u002F ← Makes FOSMVVM infrastructure available\n}\n```\n\nThis makes the environment available to all views in the hierarchy.\n\n### 3. Test Infrastructure\n\nThe test infrastructure enables UI testing with specific configurations:\n\n**`.testHost { }` modifier:**\n```swift\nvar body: some Scene {\n    WindowGroup {\n        ZStack {\n            LandingPageView()\n        }\n        #if DEBUG\n        .testHost { testConfiguration, testView in\n            \u002F\u002F Handle specific test configurations...\n\n            default:\n                testView\n                    .onAppear {\n                        underTest = ProcessInfo.processInfo.arguments.count > 1\n                    }\n        }\n        #endif\n    }\n}\n```\n\n**Key points:**\n- **Apply to the top-level view** in WindowGroup (the outermost view in your hierarchy)\n- This ensures the modifier wraps the entire view hierarchy to intercept test configurations\n- Always include the `default:` case\n- The default case detects test mode via process arguments\n- Sets `@State private var underTest = false` flag\n- Optional: Add specific test configurations for advanced scenarios\n\n**`registerTestingViews()` function:**\n```swift\n#if DEBUG\nprivate extension MyApp {\n    @MainActor func registerTestingViews() {\n        mvvmEnv.registerTestView(LandingPageView.self)\n        mvvmEnv.registerTestView(SettingsView.self)\n        \u002F\u002F ... register all ViewModelViews for individual testing\n    }\n}\n#endif\n```\n\n**Key points:**\n- Extension on the **App struct** (not MVVMEnvironment)\n- Called from `init()`\n- Registers every ViewModelView for isolated testing\n- DEBUG only\n\n## When to Use This Skill\n\n- Starting a new FOSMVVM SwiftUI application\n- Migrating an existing SwiftUI app to FOSMVVM\n- Setting up the App struct with proper FOSMVVM infrastructure\n- Configuring test infrastructure for UI testing\n\n## What This Skill Generates\n\n| Component | Location | Purpose |\n|-----------|----------|---------|\n| Main App struct | `Sources\u002FApp\u002F{AppName}.swift` | Entry point with MVVMEnvironment setup |\n| MVVMEnvironment configuration | Computed property in App struct | Bundles and deployment URLs |\n| Test infrastructure | DEBUG blocks in App struct | UI testing support |\n\n## Project Structure Configuration\n\n| Placeholder | Description | Example |\n|-------------|-------------|---------|\n| `{AppName}` | Your app name | `MyApp`, `AccelApp` |\n| `{AppTarget}` | Main app target | `App` |\n| `{ResourceBundles}` | Module names with localization | `MyAppViewModels`, `SharedResources` |\n\n## How to Use This Skill\n\n**Invocation:**\n\u002Ffosmvvm-swiftui-app-setup\n\n**Prerequisites:**\n- App name understood from conversation context\n- Deployment URLs discussed or documented\n- Resource bundles identified (modules with localization)\n- Test support requirements clarified\n\n**Workflow integration:**\nThis skill is used when setting up a new FOSMVVM SwiftUI application or adding FOSMVVM infrastructure to an existing app. The skill references conversation context automatically—no file paths or Q&A needed.\n\n## Pattern Implementation\n\nThis skill references conversation context to determine App struct configuration:\n\n### Configuration Detection\n\nFrom conversation context, the skill identifies:\n- **App name** (from project discussion or existing code)\n- **Deployment environments** (production, staging, debug URLs)\n- **Resource bundles** (modules containing localization YAML files)\n- **Test infrastructure** (whether UI testing support needed)\n\n### MVVMEnvironment Setup\n\nBased on project structure:\n- **App bundle** (typically Bundle.main)\n- **Resource bundle accessors** (from identified modules)\n- **Deployment URLs** (for each environment)\n- **Current version** (from shared module)\n\n### Test Infrastructure Planning\n\nIf test support needed:\n- **Test detection** (process arguments check)\n- **Test host modifier** (wrapping top-level view)\n- **View registration** (all ViewModelViews for testing)\n\n### File Generation\n\n1. Main App struct with @main attribute\n2. MVVMEnvironment computed property\n3. WindowGroup with environment injection\n4. Test infrastructure (if requested, DEBUG-only)\n5. registerTestingViews() extension (if test support)\n\n### Context Sources\n\nSkill references information from:\n- **Prior conversation**: App requirements, deployment environments discussed\n- **Project structure**: From codebase analysis of module organization\n- **Existing patterns**: From other FOSMVVM apps if context available\n\n## Key Patterns\n\n### MVVMEnvironment as Computed Property\n\nThe `MVVMEnvironment` is a computed property, not a stored property:\n\n```swift\nprivate var mvvmEnv: MVVMEnvironment {\n    MVVMEnvironment(\n        appBundle: Bundle.main,\n        resourceBundles: [...],\n        deploymentURLs: [...]\n    )\n}\n```\n\n**Why computed?**\n- Keeps initialization logic separate\n- Can be customized in DEBUG vs RELEASE\n- Clear dependency on bundles and URLs\n\n### Test Detection Pattern\n\nThe default test detection uses process arguments:\n\n```swift\n@State private var underTest = false\n\n\u002F\u002F In .testHost default case:\ntestView\n    .onAppear {\n        \u002F\u002F Right now there's no other way to detect if the app is under test.\n        \u002F\u002F This is only debug code, so we can proceed for now.\n        underTest = ProcessInfo.processInfo.arguments.count > 1\n    }\n```\n\n**Why this approach?**\n- Simple and reliable for DEBUG builds\n- No additional dependencies\n- Process arguments are set by test runner\n\n### Register All ViewModelViews\n\nEvery ViewModelView should be registered for testing:\n\n```swift\n@MainActor func registerTestingViews() {\n    \u002F\u002F Landing Page\n    mvvmEnv.registerTestView(LandingPageView.self)\n\n    \u002F\u002F Settings\n    mvvmEnv.registerTestView(SettingsView.self)\n    mvvmEnv.registerTestView(ProfileView.self)\n\n    \u002F\u002F Dashboard\n    mvvmEnv.registerTestView(DashboardView.self)\n    mvvmEnv.registerTestView(CardView.self)\n}\n```\n\n**Organization tips:**\n- Group by feature\u002Fscreen with comments\n- Alphabetical order within groups\n- One view per line for easy scanning\n\n## Common Customizations\n\n### Multiple Environment Values\n\nYou can inject multiple environment values:\n\n```swift\nvar body: some Scene {\n    WindowGroup {\n        MyView()\n    }\n    .environment(mvvmEnv)\n    .environment(appState)\n    .environment(\\.colorScheme, .dark)\n    .environment(\\.customValue, myCustomValue)\n}\n```\n\n### Conditional Test Registration\n\nYou can conditionally register views based on build configuration:\n\n```swift\n#if DEBUG\n@MainActor func registerTestingViews() {\n    mvvmEnv.registerTestView(LandingPageView.self)\n\n    #if INCLUDE_ADMIN_FEATURES\n    mvvmEnv.registerTestView(AdminPanelView.self)\n    #endif\n}\n#endif\n```\n\n### Advanced Test Configurations\n\nYou can add specific test configurations in `.testHost`:\n\n```swift\n.testHost { testConfiguration, testView in\n    switch try? testConfiguration.fromJSON() as MyTestConfiguration {\n    case .specificScenario(let data):\n        testView.environment(MyState.stub(data: data))\n            .onAppear { underTest = true }\n\n    default:\n        testView\n            .onAppear {\n                underTest = ProcessInfo.processInfo.arguments.count > 1\n            }\n    }\n}\n```\n\n## File Templates\n\nSee [reference.md](reference.md) for complete file templates.\n\n## Naming Conventions\n\n| Concept | Convention | Example |\n|---------|------------|---------|\n| App struct | `{Name}App` | `MyApp`, `AccelApp` |\n| Main file | `{Name}App.swift` | `MyApp.swift` |\n| MVVMEnvironment property | `mvvmEnv` | Always `mvvmEnv` |\n| Test flag | `underTest` | Always `underTest` |\n\n## Deployment Configuration\n\nFOSMVVM supports deployment detection via Info.plist:\n\n```\nCI Pipeline Sets:\n   FOS_DEPLOYMENT build setting (e.g., \"staging\" or \"production\")\n        ↓\nInfo.plist Contains:\n   FOS-DEPLOYMENT = $(FOS_DEPLOYMENT)\n        ↓\nRuntime Detection:\n   FOSMVVM.Deployment.current reads from Bundle.main.infoDictionary\n```\n\n**Local development override:**\n- Edit Scheme → Run → Arguments → Environment Variables\n- Add: `FOS-DEPLOYMENT = staging`\n\n## See Also\n\n- [Architecture Patterns](..\u002Fshared\u002Farchitecture-patterns.md) - Mental models and patterns\n- [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md) - Full FOSMVVM architecture\n- [fosmvvm-viewmodel-generator](..\u002Ffosmvvm-viewmodel-generator\u002FSKILL.md) - For creating ViewModels\n- [reference.md](reference.md) - Complete file templates\n\n## Version History\n\n| Version | Date | Changes |\n|---------|------|---------|\n| 1.0 | 2026-01-23 | Initial skill for SwiftUI app setup |\n| 1.1 | 2026-01-24 | Update to context-aware approach (remove file-parsing\u002FQ&A). Skill references conversation context instead of asking questions or accepting file paths. |\n","# FOSMVVM SwiftUI App Setup\n\nGenerate the main App struct for a SwiftUI application using FOSMVVM architecture.\n\n## Conceptual Foundation\n\n> For full architecture context, see [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md) | [OpenClaw reference]({baseDir}\u002Freferences\u002FFOSMVVMArchitecture.md)\n\nThe **App struct** is the entry point of a SwiftUI application. In FOSMVVM, it has three core responsibilities:\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                      @main App Struct                        │\n├─────────────────────────────────────────────────────────────┤\n│  1. MVVMEnvironment Setup                                   │\n│     - Bundles (app + localization resources)                │\n│     - Deployment URLs (production, staging, debug)          │\n│                                                              │\n│  2. Environment Injection                                   │\n│     - .environment(mvvmEnv) on WindowGroup                  │\n│     - Custom environment values                             │\n│                                                              │\n│  3. Test Infrastructure (DEBUG only)                        │\n│     - .testHost { } modifier for UI testing                 │\n│     - registerTestingViews() for individual view testing    │\n└─────────────────────────────────────────────────────────────┘\n```\n\n## Core Components\n\n### 1. MVVMEnvironment\n\nThe `MVVMEnvironment` provides FOSMVVM infrastructure to all views:\n\n```swift\nprivate var mvvmEnv: MVVMEnvironment {\n    MVVMEnvironment(\n        appBundle: Bundle.main,\n        resourceBundles: [\n            MyAppViewModelsResourceAccess.localizationBundle,\n            SharedResourceAccess.localizationBundle\n        ],\n        deploymentURLs: [\n            .production: .init(serverBaseURL: URL(string: \"https:\u002F\u002Fapi.example.com\")!),\n            .debug: .init(serverBaseURL: URL(string: \"http:\u002F\u002Flocalhost:8080\")!)\n        ]\n    )\n}\n```\n\n**Key configuration:**\n- `appBundle` - Usually `Bundle.main` (the app bundle)\n- `resourceBundles` - Array of localization bundles from your modules\n- `deploymentURLs` - URLs for each deployment environment\n\n**Resource Bundle Accessors:**\n\nEach module that contains localization resources should provide a bundle accessor:\n\n```swift\n\u002F\u002F In your ViewModels module (e.g., MyAppViewModels\u002FResourceAccess.swift)\npublic enum MyAppViewModelsResourceAccess {\n    public static var localizationBundle: Bundle { Bundle.module }\n}\n```\n\nThis pattern:\n- Uses `Bundle.module` which SPM automatically provides for each module\n- Provides a clean public API for accessing the module's resources\n- Keeps bundle access centralized in one place per module\n\n### 2. Environment Injection\n\nThe `MVVMEnvironment` is injected at the WindowGroup level:\n\n```swift\nvar body: some Scene {\n    WindowGroup {\n        MyView()\n    }\n    .environment(mvvmEnv)  \u002F\u002F ← Makes FOSMVVM infrastructure available\n}\n```\n\nThis makes the environment available to all views in the hierarchy.\n\n### 3. Test Infrastructure\n\nThe test infrastructure enables UI testing with specific configurations:\n\n**`.testHost { }` modifier:**\n```swift\nvar body: some Scene {\n    WindowGroup {\n        ZStack {\n            LandingPageView()\n        }\n        #if DEBUG\n        .testHost { testConfiguration, testView in\n            \u002F\u002F Handle specific test configurations...\n\n            default:\n                testView\n                    .onAppear {\n                        underTest = ProcessInfo.processInfo.arguments.count > 1\n                    }\n        }\n        #endif\n    }\n}\n```\n\n**Key points:**\n- **Apply to the top-level view** in WindowGroup (the outermost view in your hierarchy)\n- This ensures the modifier wraps the entire view hierarchy to intercept test configurations\n- Always include the `default:` case\n- The default case detects test mode via process arguments\n- Sets `@State private var underTest = false` flag\n- Optional: Add specific test configurations for advanced scenarios\n\n**`registerTestingViews()` function:**\n```swift\n#if DEBUG\nprivate extension MyApp {\n    @MainActor func registerTestingViews() {\n        mvvmEnv.registerTestView(LandingPageView.self)\n        mvvmEnv.registerTestView(SettingsView.self)\n        \u002F\u002F ... register all ViewModelViews for individual testing\n    }\n}\n#endif\n```\n\n**Key points:**\n- Extension on the **App struct** (not MVVMEnvironment)\n- Called from `init()`\n- Registers every ViewModelView for isolated testing\n- DEBUG only\n\n## When to Use This Skill\n\n- Starting a new FOSMVVM SwiftUI application\n- Migrating an existing SwiftUI app to FOSMVVM\n- Setting up the App struct with proper FOSMVVM infrastructure\n- Configuring test infrastructure for UI testing\n\n## What This Skill Generates\n\n| Component | Location | Purpose |\n|-----------|----------|---------|\n| Main App struct | `Sources\u002FApp\u002F{AppName}.swift` | Entry point with MVVMEnvironment setup |\n| MVVMEnvironment configuration | Computed property in App struct | Bundles and deployment URLs |\n| Test infrastructure | DEBUG blocks in App struct | UI testing support |\n\n## Project Structure Configuration\n\n| Placeholder | Description | Example |\n|-------------|-------------|---------|\n| `{AppName}` | Your app name | `MyApp`, `AccelApp` |\n| `{AppTarget}` | Main app target | `App` |\n| `{ResourceBundles}` | Module names with localization | `MyAppViewModels`, `SharedResources` |\n\n## How to Use This Skill\n\n**Invocation:**\n\u002Ffosmvvm-swiftui-app-setup\n\n**Prerequisites:**\n- App name understood from conversation context\n- Deployment URLs discussed or documented\n- Resource bundles identified (modules with localization)\n- Test support requirements clarified\n\n**Workflow integration:**\nThis skill is used when setting up a new FOSMVVM SwiftUI application or adding FOSMVVM infrastructure to an existing app. The skill references conversation context automatically—no file paths or Q&A needed.\n\n## Pattern Implementation\n\nThis skill references conversation context to determine App struct configuration:\n\n### Configuration Detection\n\nFrom conversation context, the skill identifies:\n- **App name** (from project discussion or existing code)\n- **Deployment environments** (production, staging, debug URLs)\n- **Resource bundles** (modules containing localization YAML files)\n- **Test infrastructure** (whether UI testing support needed)\n\n### MVVMEnvironment Setup\n\nBased on project structure:\n- **App bundle** (typically Bundle.main)\n- **Resource bundle accessors** (from identified modules)\n- **Deployment URLs** (for each environment)\n- **Current version** (from shared module)\n\n### Test Infrastructure Planning\n\nIf test support needed:\n- **Test detection** (process arguments check)\n- **Test host modifier** (wrapping top-level view)\n- **View registration** (all ViewModelViews for testing)\n\n### File Generation\n\n1. Main App struct with @main attribute\n2. MVVMEnvironment computed property\n3. WindowGroup with environment injection\n4. Test infrastructure (if requested, DEBUG-only)\n5. registerTestingViews() extension (if test support)\n\n### Context Sources\n\nSkill references information from:\n- **Prior conversation**: App requirements, deployment environments discussed\n- **Project structure**: From codebase analysis of module organization\n- **Existing patterns**: From other FOSMVVM apps if context available\n\n## Key Patterns\n\n### MVVMEnvironment as Computed Property\n\nThe `MVVMEnvironment` is a computed property, not a stored property:\n\n```swift\nprivate var mvvmEnv: MVVMEnvironment {\n    MVVMEnvironment(\n        appBundle: Bundle.main,\n        resourceBundles: [...],\n        deploymentURLs: [...]\n    )\n}\n```\n\n**Why computed?**\n- Keeps initialization logic separate\n- Can be customized in DEBUG vs RELEASE\n- Clear dependency on bundles and URLs\n\n### Test Detection Pattern\n\nThe default test detection uses process arguments:\n\n```swift\n@State private var underTest = false\n\n\u002F\u002F In .testHost default case:\ntestView\n    .onAppear {\n        \u002F\u002F Right now there's no other way to detect if the app is under test.\n        \u002F\u002F This is only debug code, so we can proceed for now.\n        underTest = ProcessInfo.processInfo.arguments.count > 1\n    }\n```\n\n**Why this approach?**\n- Simple and reliable for DEBUG builds\n- No additional dependencies\n- Process arguments are set by test runner\n\n### Register All ViewModelViews\n\nEvery ViewModelView should be registered for testing:\n\n```swift\n@MainActor func registerTestingViews() {\n    \u002F\u002F Landing Page\n    mvvmEnv.registerTestView(LandingPageView.self)\n\n    \u002F\u002F Settings\n    mvvmEnv.registerTestView(SettingsView.self)\n    mvvmEnv.registerTestView(ProfileView.self)\n\n    \u002F\u002F Dashboard\n    mvvmEnv.registerTestView(DashboardView.self)\n    mvvmEnv.registerTestView(CardView.self)\n}\n```\n\n**Organization tips:**\n- Group by feature\u002Fscreen with comments\n- Alphabetical order within groups\n- One view per line for easy scanning\n\n## Common Customizations\n\n### Multiple Environment Values\n\nYou can inject multiple environment values:\n\n```swift\nvar body: some Scene {\n    WindowGroup {\n        MyView()\n    }\n    .environment(mvvmEnv)\n    .environment(appState)\n    .environment(\\.colorScheme, .dark)\n    .environment(\\.customValue, myCustomValue)\n}\n```\n\n### Conditional Test Registration\n\nYou can conditionally register views based on build configuration:\n\n```swift\n#if DEBUG\n@MainActor func registerTestingViews() {\n    mvvmEnv.registerTestView(LandingPageView.self)\n\n    #if INCLUDE_ADMIN_FEATURES\n    mvvmEnv.registerTestView(AdminPanelView.self)\n    #endif\n}\n#endif\n```\n\n### Advanced Test Configurations\n\nYou can add specific test configurations in `.testHost`:\n\n```swift\n.testHost { testConfiguration, testView in\n    switch try? testConfiguration.fromJSON() as MyTestConfiguration {\n    case .specificScenario(let data):\n        testView.environment(MyState.stub(data: data))\n            .onAppear { underTest = true }\n\n    default:\n        testView\n            .onAppear {\n                underTest = ProcessInfo.processInfo.arguments.count > 1\n            }\n    }\n}\n```\n\n## File Templates\n\nSee [reference.md](reference.md) for complete file templates.\n\n## Naming Conventions\n\n| Concept | Convention | Example |\n|---------|------------|---------|\n| App struct | `{Name}App` | `MyApp`, `AccelApp` |\n| Main file | `{Name}App.swift` | `MyApp.swift` |\n| MVVMEnvironment property | `mvvmEnv` | Always `mvvmEnv` |\n| Test flag | `underTest` | Always `underTest` |\n\n## Deployment Configuration\n\nFOSMVVM supports deployment detection via Info.plist:\n\n```\nCI Pipeline Sets:\n   FOS_DEPLOYMENT build setting (e.g., \"staging\" or \"production\")\n        ↓\nInfo.plist Contains:\n   FOS-DEPLOYMENT = $(FOS_DEPLOYMENT)\n        ↓\nRuntime Detection:\n   FOSMVVM.Deployment.current reads from Bundle.main.infoDictionary\n```\n\n**Local development override:**\n- Edit Scheme → Run → Arguments → Environment Variables\n- Add: `FOS-DEPLOYMENT = staging`\n\n## See Also\n\n- [Architecture Patterns](..\u002Fshared\u002Farchitecture-patterns.md) - Mental models and patterns\n- [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md) - Full FOSMVVM architecture\n- [fosmvvm-viewmodel-generator](..\u002Ffosmvvm-viewmodel-generator\u002FSKILL.md) - For creating ViewModels\n- [reference.md](reference.md) - Complete file templates\n\n## Version History\n\n| Version | Date | Changes |\n|---------|------|---------|\n| 1.0 | 2026-01-23 | Initial skill for SwiftUI app setup |\n| 1.1 | 2026-01-24 | Update to context-aware approach (remove file-parsing\u002FQ&A). Skill references conversation context instead of asking questions or accepting file paths. |\n",{"name":5,"homepage":24,"metadata":25,"description":7},"https:\u002F\u002Fgithub.com\u002Ffoscomputerservices\u002FFOSUtilities",{"clawdbot":26},{"os":27,"emoji":29},[28],"darwin","🚀","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Ffoscomputerservices\u002Ffosmvvm-swiftui-app-setup",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill fosmvvm-swiftui-app-setup",{"tool":45,"command":46},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill fosmvvm-swiftui-app-setup",{"tool":48,"command":49},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill fosmvvm-swiftui-app-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffoscomputerservices\u002Ffosmvvm-swiftui-app-setup\u002FSKILL.md",true,[],[54,62,69,76,83,90],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":61},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":61},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":61},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":61},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":61},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":61},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]