[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75GG5DA2T2D2215ZYV5FDX5":3,"skill-same:01M75GG5DA2T2D2215ZYV5FDX5":54},{"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":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M75GG5DA2T2D2215ZYV5FDX5","fosmvvm-viewmodel-test-generator",null,"Generate ViewModel tests with codable round-trip, versioning stability, and multi-locale translation verification.","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-viewmodel-test-generator\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: fosmvvm-viewmodel-test-generator\ndescription: Generate ViewModel tests with codable round-trip, versioning stability, and multi-locale translation verification.\nhomepage: https:\u002F\u002Fgithub.com\u002Ffoscomputerservices\u002FFOSUtilities\nmetadata: {\"clawdbot\": {\"emoji\": \"🔬\", \"os\": [\"darwin\", \"linux\"]}}\n---\n\n# FOSMVVM ViewModel Test Generator\n\nGenerate test files for ViewModels following FOSMVVM testing patterns.\n\n## Conceptual Foundation\n\n> For full architecture context, see [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md#testing-support) | [OpenClaw reference]({baseDir}\u002Freferences\u002FFOSMVVMArchitecture.md)\n\nViewModel testing in FOSMVVM verifies three critical aspects:\n\n1. **Codable round-trip** - ViewModel encodes and decodes without data loss\n2. **Versioning stability** - Structure hasn't changed unexpectedly\n3. **Multi-locale translations** - All `@LocalizedString` properties have values in all supported locales\n\nThe `LocalizableTestCase` protocol provides infrastructure that tests all three in a single call.\n\n---\n\n## When to Use This Skill\n\n- Creating tests for new ViewModels\n- Adding test coverage to existing ViewModels\n- Verifying localization completeness across locales\n- Testing ViewModels with embedded\u002Fnested child ViewModels\n- Verifying `@LocalizedSubs` substitution behavior\n\n## What This Skill Generates\n\n| File | Location | Purpose |\n|------|----------|---------|\n| `{Name}ViewModelTests.swift` | `Tests\u002F{Target}Tests\u002FLocalization\u002F` | Test suite conforming to `LocalizableTestCase` |\n| `{Name}ViewModel.yml` | `Tests\u002F{Target}Tests\u002FTestYAML\u002F` | YAML translations for test (if needed) |\n\n---\n\n## The Testing Pattern\n\n### Standard Pattern (Most Tests)\n\nFor most ViewModels, a single line provides complete coverage:\n\n```swift\n@Test func dashboardViewModel() throws {\n    try expectFullViewModelTests(DashboardViewModel.self)\n}\n```\n\nThis verifies:\n- Codable encoding\u002Fdecoding\n- Versioned ViewModel stability\n- Translations exist for all locales (en, es by default)\n\n**This is sufficient for the vast majority of ViewModel tests.**\n\n### Extended Pattern (Specific Formatting Verification)\n\nWhen testing specific formatting behavior (substitutions, compound strings), add locale-specific assertions:\n\n```swift\n@Test func greetingWithSubstitution() throws {\n    try expectFullViewModelTests(GreetingViewModel.self)\n\n    \u002F\u002F Verify specific substitution behavior\n    let vm: GreetingViewModel = try .stub()\n        .toJSON(encoder: encoder(locale: en))\n        .fromJSON()\n\n    #expect(try vm.welcomeMessage.localizedString == \"Welcome, John!\")\n}\n```\n\nThis is optional - use only when verifying specific formatting techniques.\n\n---\n\n## LocalizableTestCase Protocol\n\nTest suites conform to `LocalizableTestCase` to access testing infrastructure:\n\n```swift\nimport FOSFoundation\n@testable import FOSMVVM\nimport FOSTesting\nimport Foundation\nimport Testing\n@testable import {ViewModelsTarget}\n\n@Suite(\"My ViewModel Tests\")\nstruct MyViewModelTests: LocalizableTestCase {\n    let locStore: LocalizationStore\n\n    init() throws {\n        self.locStore = try Self.loadLocalizationStore(\n            bundle: {ViewModelsTarget}.resourceAccess,\n            resourceDirectoryName: \"\"\n        )\n    }\n}\n```\n\nThe `{ViewModelsTarget}.resourceAccess` is the resource accessor defined when creating the ViewModels SPM target (via `FOSResourceAccessor` build tool plugin).\n\n### What LocalizableTestCase Provides\n\n| Property\u002FMethod | Purpose |\n|-----------------|---------|\n| `locStore` | Required - the localization store |\n| `locales` | Optional - locales to test (default: en, es) |\n| `encoder(locale:)` | Creates a localizing JSONEncoder |\n| `en`, `es`, `enGB`, `enUS` | Locale constants |\n\n### Testing Methods\n\n| Method | Use When |\n|--------|----------|\n| `expectFullViewModelTests(_:)` | **Primary** - complete ViewModel testing |\n| `expectTranslations(_:)` | Translation-only verification |\n| `expectFullFieldValidationModelTests(_:)` | Testing FieldValidationModel types |\n| `expectFullFormFieldTests(_:)` | Testing FormField instances |\n| `expectCodable(_:encoder:)` | Codable round-trip only |\n| `expectVersionedViewModel(_:encoder:)` | Versioning stability only |\n\n---\n\n## YAML Requirements\n\n### ViewModels with @LocalizedString\n\nEvery ViewModel with `@LocalizedString` properties needs YAML entries:\n\n```swift\n@ViewModel\npublic struct DashboardViewModel: RequestableViewModel {\n    @LocalizedString public var pageTitle      \u002F\u002F Needs YAML entry\n    @LocalizedString public var emptyMessage   \u002F\u002F Needs YAML entry\n    public let itemCount: Int                   \u002F\u002F No YAML needed\n}\n```\n\n```yaml\n# DashboardViewModel.yml\nen:\n  DashboardViewModel:\n    pageTitle: \"Dashboard\"\n    emptyMessage: \"No items yet\"\n\nes:\n  DashboardViewModel:\n    pageTitle: \"Tablero\"\n    emptyMessage: \"No hay elementos todavía\"\n```\n\n### Embedded ViewModels\n\nWhen a ViewModel contains child ViewModels, all types in the hierarchy need YAML entries:\n\n```swift\n@ViewModel\npublic struct BoardViewModel: RequestableViewModel {\n    @LocalizedString public var title\n    public let cards: [CardViewModel]  \u002F\u002F Child ViewModel\n}\n\n@ViewModel\npublic struct CardViewModel {\n    @LocalizedString public var cardTitle\n}\n```\n\nBoth `BoardViewModel` and `CardViewModel` need YAML entries (can be in same or separate files).\n\n### Private Test ViewModels\n\nWhen tests define private ViewModel structs for testing specific scenarios, those also need YAML:\n\n```swift\n\u002F\u002F In test file\nprivate struct TestParentViewModel: ViewModel {\n    @LocalizedString var title\n    let children: [TestChildViewModel]\n}\n\nprivate struct TestChildViewModel: ViewModel {\n    @LocalizedString var label\n}\n```\n\nAdd entries to a test YAML file for these private types.\n\n---\n\n## How to Use This Skill\n\n**Invocation:**\n\u002Ffosmvvm-viewmodel-test-generator\n\n**Prerequisites:**\n- ViewModel structure understood from conversation context\n- Localization properties identified (@LocalizedString, @LocalizedSubs, etc.)\n- YAML localization files exist or will be created\n- Child ViewModels identified (if any)\n\n**Workflow integration:**\nThis skill is used when adding test coverage for ViewModels. The skill references conversation context automatically—no file paths or Q&A needed. Typically follows fosmvvm-viewmodel-generator.\n\n## Pattern Implementation\n\nThis skill references conversation context to determine test structure:\n\n### ViewModel Analysis\n\nFrom conversation context, the skill identifies:\n- **ViewModels to test** (from prior discussion or codebase)\n- **Localization requirements** (@LocalizedString properties)\n- **Child ViewModels** (embedded within parent)\n- **Substitution behavior** (@LocalizedSubs needing specific verification)\n\n### YAML Coverage Check\n\nVerifies completeness:\n- **ViewModel YAML entries** (all @LocalizedString properties)\n- **Child ViewModel entries** (nested types)\n- **Locale coverage** (en, es, or project-specific locales)\n\n### Test File Generation\n\nCreates test suite with:\n- LocalizableTestCase conformance\n- Localization store initialization\n- expectFullViewModelTests() calls for each ViewModel\n- Optional specific formatting tests (substitutions, compound strings)\n\n### Context Sources\n\nSkill references information from:\n- **Prior conversation**: ViewModels discussed or recently created\n- **ViewModel code**: If Claude has read ViewModel files into context\n- **YAML files**: From codebase analysis of existing localizations\n- **Test patterns**: From existing test files in project\n\n---\n\n## File Templates\n\nSee [reference.md](reference.md) for complete file templates.\n\n---\n\n## Common Scenarios\n\n### Testing a Single Top-Level ViewModel\n\n```swift\n@Test func dashboardViewModel() throws {\n    try expectFullViewModelTests(DashboardViewModel.self)\n}\n```\n\n### Testing Multiple Related ViewModels\n\n```swift\n@Test func boardViewModels() throws {\n    try expectFullViewModelTests(BoardViewModel.self)\n    try expectFullViewModelTests(ColumnViewModel.self)\n    try expectFullViewModelTests(CardViewModel.self)\n}\n```\n\n### Testing with Custom Locales\n\n```swift\nvar locales: Set\u003CLocale> { [en, es, enGB] }  \u002F\u002F Override default\n\n@Test func multiLocaleViewModel() throws {\n    try expectFullViewModelTests(MyViewModel.self)\n    \u002F\u002F Tests en, es, AND en-GB\n}\n```\n\n### Testing Substitution Behavior\n\n```swift\n@Test func greetingSubstitutions() throws {\n    try expectFullViewModelTests(GreetingViewModel.self)\n\n    let vm: GreetingViewModel = try .stub(userName: \"Alice\")\n        .toJSON(encoder: encoder(locale: en))\n        .fromJSON()\n\n    #expect(try vm.welcomeMessage.localizedString == \"Welcome, Alice!\")\n}\n```\n\n### Testing Embedded ViewModels\n\n```swift\n@Test func parentWithChildren() throws {\n    \u002F\u002F Tests parent AND verifies children can be encoded\u002Fdecoded\n    try expectFullViewModelTests(ParentViewModel.self)\n\n    \u002F\u002F Optionally verify specific child values\n    let vm: ParentViewModel = try .stub()\n        .toJSON(encoder: encoder(locale: en))\n        .fromJSON()\n\n    #expect(try vm.children[0].label.localizedString == \"Child 1\")\n}\n```\n\n---\n\n## Troubleshooting\n\n### \"Missing Translation\" Error\n\n```\nFOSLocalizableError: _pageTitle -- Missing Translation -- en\n```\n\n**Cause:** YAML entry missing for a `@LocalizedString` property.\n\n**Fix:** Add the property to the YAML file:\n```yaml\nen:\n  MyViewModel:\n    pageTitle: \"Page Title\"  # Add this\n```\n\n### \"Is pending localization\" Error\n\n**Cause:** The ViewModel wasn't encoded with a localizing encoder.\n\n**Fix:** Ensure using `encoder(locale:)` or `expectFullViewModelTests()`.\n\n### Test Passes But Translations Seem Wrong\n\n**Cause:** YAML values exist but may have typos or wrong content.\n\n**Fix:** Add specific assertions to verify exact values:\n```swift\nlet vm = try .stub().toJSON(encoder: encoder(locale: en)).fromJSON()\n#expect(try vm.title.localizedString == \"Expected Value\")\n```\n\n---\n\n## Naming Conventions\n\n| Concept | Convention | Example |\n|---------|------------|---------|\n| Test suite | `{Feature}ViewModelTests` | `DashboardViewModelTests` |\n| Test file | `{Feature}ViewModelTests.swift` | `DashboardViewModelTests.swift` |\n| YAML file | `{ViewModelName}.yml` | `DashboardViewModel.yml` |\n| Test method | `{viewModelName}()` or descriptive | `dashboardViewModel()` |\n\n---\n\n## See Also\n\n- [FOSMVVMArchitecture.md - Testing Support](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md#testing-support) - Architecture overview\n- [fosmvvm-viewmodel-generator](..\u002Ffosmvvm-viewmodel-generator\u002FSKILL.md) - For creating ViewModels\n- [fosmvvm-fields-generator](..\u002Ffosmvvm-fields-generator\u002FSKILL.md) - For form validation testing\n- [reference.md](reference.md) - Complete file templates\n\n---\n\n## Version History\n\n| Version | Date | Changes |\n|---------|------|---------|\n| 1.0 | 2025-01-02 | Initial skill |\n| 1.1 | 2026-01-19 | Updated LocalizableTestCase example to use {ViewModelsTarget}.resourceAccess pattern. |\n| 1.2 | 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 ViewModel Test Generator\n\nGenerate test files for ViewModels following FOSMVVM testing patterns.\n\n## Conceptual Foundation\n\n> For full architecture context, see [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md#testing-support) | [OpenClaw reference]({baseDir}\u002Freferences\u002FFOSMVVMArchitecture.md)\n\nViewModel testing in FOSMVVM verifies three critical aspects:\n\n1. **Codable round-trip** - ViewModel encodes and decodes without data loss\n2. **Versioning stability** - Structure hasn't changed unexpectedly\n3. **Multi-locale translations** - All `@LocalizedString` properties have values in all supported locales\n\nThe `LocalizableTestCase` protocol provides infrastructure that tests all three in a single call.\n\n---\n\n## When to Use This Skill\n\n- Creating tests for new ViewModels\n- Adding test coverage to existing ViewModels\n- Verifying localization completeness across locales\n- Testing ViewModels with embedded\u002Fnested child ViewModels\n- Verifying `@LocalizedSubs` substitution behavior\n\n## What This Skill Generates\n\n| File | Location | Purpose |\n|------|----------|---------|\n| `{Name}ViewModelTests.swift` | `Tests\u002F{Target}Tests\u002FLocalization\u002F` | Test suite conforming to `LocalizableTestCase` |\n| `{Name}ViewModel.yml` | `Tests\u002F{Target}Tests\u002FTestYAML\u002F` | YAML translations for test (if needed) |\n\n---\n\n## The Testing Pattern\n\n### Standard Pattern (Most Tests)\n\nFor most ViewModels, a single line provides complete coverage:\n\n```swift\n@Test func dashboardViewModel() throws {\n    try expectFullViewModelTests(DashboardViewModel.self)\n}\n```\n\nThis verifies:\n- Codable encoding\u002Fdecoding\n- Versioned ViewModel stability\n- Translations exist for all locales (en, es by default)\n\n**This is sufficient for the vast majority of ViewModel tests.**\n\n### Extended Pattern (Specific Formatting Verification)\n\nWhen testing specific formatting behavior (substitutions, compound strings), add locale-specific assertions:\n\n```swift\n@Test func greetingWithSubstitution() throws {\n    try expectFullViewModelTests(GreetingViewModel.self)\n\n    \u002F\u002F Verify specific substitution behavior\n    let vm: GreetingViewModel = try .stub()\n        .toJSON(encoder: encoder(locale: en))\n        .fromJSON()\n\n    #expect(try vm.welcomeMessage.localizedString == \"Welcome, John!\")\n}\n```\n\nThis is optional - use only when verifying specific formatting techniques.\n\n---\n\n## LocalizableTestCase Protocol\n\nTest suites conform to `LocalizableTestCase` to access testing infrastructure:\n\n```swift\nimport FOSFoundation\n@testable import FOSMVVM\nimport FOSTesting\nimport Foundation\nimport Testing\n@testable import {ViewModelsTarget}\n\n@Suite(\"My ViewModel Tests\")\nstruct MyViewModelTests: LocalizableTestCase {\n    let locStore: LocalizationStore\n\n    init() throws {\n        self.locStore = try Self.loadLocalizationStore(\n            bundle: {ViewModelsTarget}.resourceAccess,\n            resourceDirectoryName: \"\"\n        )\n    }\n}\n```\n\nThe `{ViewModelsTarget}.resourceAccess` is the resource accessor defined when creating the ViewModels SPM target (via `FOSResourceAccessor` build tool plugin).\n\n### What LocalizableTestCase Provides\n\n| Property\u002FMethod | Purpose |\n|-----------------|---------|\n| `locStore` | Required - the localization store |\n| `locales` | Optional - locales to test (default: en, es) |\n| `encoder(locale:)` | Creates a localizing JSONEncoder |\n| `en`, `es`, `enGB`, `enUS` | Locale constants |\n\n### Testing Methods\n\n| Method | Use When |\n|--------|----------|\n| `expectFullViewModelTests(_:)` | **Primary** - complete ViewModel testing |\n| `expectTranslations(_:)` | Translation-only verification |\n| `expectFullFieldValidationModelTests(_:)` | Testing FieldValidationModel types |\n| `expectFullFormFieldTests(_:)` | Testing FormField instances |\n| `expectCodable(_:encoder:)` | Codable round-trip only |\n| `expectVersionedViewModel(_:encoder:)` | Versioning stability only |\n\n---\n\n## YAML Requirements\n\n### ViewModels with @LocalizedString\n\nEvery ViewModel with `@LocalizedString` properties needs YAML entries:\n\n```swift\n@ViewModel\npublic struct DashboardViewModel: RequestableViewModel {\n    @LocalizedString public var pageTitle      \u002F\u002F Needs YAML entry\n    @LocalizedString public var emptyMessage   \u002F\u002F Needs YAML entry\n    public let itemCount: Int                   \u002F\u002F No YAML needed\n}\n```\n\n```yaml\n# DashboardViewModel.yml\nen:\n  DashboardViewModel:\n    pageTitle: \"Dashboard\"\n    emptyMessage: \"No items yet\"\n\nes:\n  DashboardViewModel:\n    pageTitle: \"Tablero\"\n    emptyMessage: \"No hay elementos todavía\"\n```\n\n### Embedded ViewModels\n\nWhen a ViewModel contains child ViewModels, all types in the hierarchy need YAML entries:\n\n```swift\n@ViewModel\npublic struct BoardViewModel: RequestableViewModel {\n    @LocalizedString public var title\n    public let cards: [CardViewModel]  \u002F\u002F Child ViewModel\n}\n\n@ViewModel\npublic struct CardViewModel {\n    @LocalizedString public var cardTitle\n}\n```\n\nBoth `BoardViewModel` and `CardViewModel` need YAML entries (can be in same or separate files).\n\n### Private Test ViewModels\n\nWhen tests define private ViewModel structs for testing specific scenarios, those also need YAML:\n\n```swift\n\u002F\u002F In test file\nprivate struct TestParentViewModel: ViewModel {\n    @LocalizedString var title\n    let children: [TestChildViewModel]\n}\n\nprivate struct TestChildViewModel: ViewModel {\n    @LocalizedString var label\n}\n```\n\nAdd entries to a test YAML file for these private types.\n\n---\n\n## How to Use This Skill\n\n**Invocation:**\n\u002Ffosmvvm-viewmodel-test-generator\n\n**Prerequisites:**\n- ViewModel structure understood from conversation context\n- Localization properties identified (@LocalizedString, @LocalizedSubs, etc.)\n- YAML localization files exist or will be created\n- Child ViewModels identified (if any)\n\n**Workflow integration:**\nThis skill is used when adding test coverage for ViewModels. The skill references conversation context automatically—no file paths or Q&A needed. Typically follows fosmvvm-viewmodel-generator.\n\n## Pattern Implementation\n\nThis skill references conversation context to determine test structure:\n\n### ViewModel Analysis\n\nFrom conversation context, the skill identifies:\n- **ViewModels to test** (from prior discussion or codebase)\n- **Localization requirements** (@LocalizedString properties)\n- **Child ViewModels** (embedded within parent)\n- **Substitution behavior** (@LocalizedSubs needing specific verification)\n\n### YAML Coverage Check\n\nVerifies completeness:\n- **ViewModel YAML entries** (all @LocalizedString properties)\n- **Child ViewModel entries** (nested types)\n- **Locale coverage** (en, es, or project-specific locales)\n\n### Test File Generation\n\nCreates test suite with:\n- LocalizableTestCase conformance\n- Localization store initialization\n- expectFullViewModelTests() calls for each ViewModel\n- Optional specific formatting tests (substitutions, compound strings)\n\n### Context Sources\n\nSkill references information from:\n- **Prior conversation**: ViewModels discussed or recently created\n- **ViewModel code**: If Claude has read ViewModel files into context\n- **YAML files**: From codebase analysis of existing localizations\n- **Test patterns**: From existing test files in project\n\n---\n\n## File Templates\n\nSee [reference.md](reference.md) for complete file templates.\n\n---\n\n## Common Scenarios\n\n### Testing a Single Top-Level ViewModel\n\n```swift\n@Test func dashboardViewModel() throws {\n    try expectFullViewModelTests(DashboardViewModel.self)\n}\n```\n\n### Testing Multiple Related ViewModels\n\n```swift\n@Test func boardViewModels() throws {\n    try expectFullViewModelTests(BoardViewModel.self)\n    try expectFullViewModelTests(ColumnViewModel.self)\n    try expectFullViewModelTests(CardViewModel.self)\n}\n```\n\n### Testing with Custom Locales\n\n```swift\nvar locales: Set\u003CLocale> { [en, es, enGB] }  \u002F\u002F Override default\n\n@Test func multiLocaleViewModel() throws {\n    try expectFullViewModelTests(MyViewModel.self)\n    \u002F\u002F Tests en, es, AND en-GB\n}\n```\n\n### Testing Substitution Behavior\n\n```swift\n@Test func greetingSubstitutions() throws {\n    try expectFullViewModelTests(GreetingViewModel.self)\n\n    let vm: GreetingViewModel = try .stub(userName: \"Alice\")\n        .toJSON(encoder: encoder(locale: en))\n        .fromJSON()\n\n    #expect(try vm.welcomeMessage.localizedString == \"Welcome, Alice!\")\n}\n```\n\n### Testing Embedded ViewModels\n\n```swift\n@Test func parentWithChildren() throws {\n    \u002F\u002F Tests parent AND verifies children can be encoded\u002Fdecoded\n    try expectFullViewModelTests(ParentViewModel.self)\n\n    \u002F\u002F Optionally verify specific child values\n    let vm: ParentViewModel = try .stub()\n        .toJSON(encoder: encoder(locale: en))\n        .fromJSON()\n\n    #expect(try vm.children[0].label.localizedString == \"Child 1\")\n}\n```\n\n---\n\n## Troubleshooting\n\n### \"Missing Translation\" Error\n\n```\nFOSLocalizableError: _pageTitle -- Missing Translation -- en\n```\n\n**Cause:** YAML entry missing for a `@LocalizedString` property.\n\n**Fix:** Add the property to the YAML file:\n```yaml\nen:\n  MyViewModel:\n    pageTitle: \"Page Title\"  # Add this\n```\n\n### \"Is pending localization\" Error\n\n**Cause:** The ViewModel wasn't encoded with a localizing encoder.\n\n**Fix:** Ensure using `encoder(locale:)` or `expectFullViewModelTests()`.\n\n### Test Passes But Translations Seem Wrong\n\n**Cause:** YAML values exist but may have typos or wrong content.\n\n**Fix:** Add specific assertions to verify exact values:\n```swift\nlet vm = try .stub().toJSON(encoder: encoder(locale: en)).fromJSON()\n#expect(try vm.title.localizedString == \"Expected Value\")\n```\n\n---\n\n## Naming Conventions\n\n| Concept | Convention | Example |\n|---------|------------|---------|\n| Test suite | `{Feature}ViewModelTests` | `DashboardViewModelTests` |\n| Test file | `{Feature}ViewModelTests.swift` | `DashboardViewModelTests.swift` |\n| YAML file | `{ViewModelName}.yml` | `DashboardViewModel.yml` |\n| Test method | `{viewModelName}()` or descriptive | `dashboardViewModel()` |\n\n---\n\n## See Also\n\n- [FOSMVVMArchitecture.md - Testing Support](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md#testing-support) - Architecture overview\n- [fosmvvm-viewmodel-generator](..\u002Ffosmvvm-viewmodel-generator\u002FSKILL.md) - For creating ViewModels\n- [fosmvvm-fields-generator](..\u002Ffosmvvm-fields-generator\u002FSKILL.md) - For form validation testing\n- [reference.md](reference.md) - Complete file templates\n\n---\n\n## Version History\n\n| Version | Date | Changes |\n|---------|------|---------|\n| 1.0 | 2025-01-02 | Initial skill |\n| 1.1 | 2026-01-19 | Updated LocalizableTestCase example to use {ViewModelsTarget}.resourceAccess pattern. |\n| 1.2 | 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":30},[28,29],"darwin","linux","🔬","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Ffoscomputerservices\u002Ffosmvvm-viewmodel-test-generator",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":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill fosmvvm-viewmodel-test-generator",{"tool":46,"command":47},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill fosmvvm-viewmodel-test-generator",{"tool":49,"command":50},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill fosmvvm-viewmodel-test-generator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffoscomputerservices\u002Ffosmvvm-viewmodel-test-generator\u002FSKILL.md",true,[],[55,63,70,77,84,91],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":62},"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":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":62},"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":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":62},"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":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":62},"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":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":62},"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":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":62},"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",[],[]]