[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75GF3P5A4SF0WN8M20SZE02":3,"skill-same:01M75GF3P5A4SF0WN8M20SZE02":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},"01M75GF3P5A4SF0WN8M20SZE02","fosmvvm-leaf-view-generator",null,"Generate Leaf templates for FOSMVVM WebApps. Create full-page views and HTML-over-the-wire fragments that render ViewModels.","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-leaf-view-generator\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: fosmvvm-leaf-view-generator\ndescription: Generate Leaf templates for FOSMVVM WebApps. Create full-page views and HTML-over-the-wire fragments that render ViewModels.\nhomepage: https:\u002F\u002Fgithub.com\u002Ffoscomputerservices\u002FFOSUtilities\nmetadata: {\"clawdbot\": {\"emoji\": \"🍃\", \"os\": [\"darwin\", \"linux\"]}}\n---\n\n# FOSMVVM Leaf View Generator\n\nGenerate Leaf templates that render ViewModels for web clients.\n\n> **Architecture context:** See [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md) | [OpenClaw reference]({baseDir}\u002Freferences\u002FFOSMVVMArchitecture.md)\n\n---\n\n## The View Layer for WebApps\n\nIn FOSMVVM, Leaf templates are the **View** in M-V-VM for web clients:\n\n```\nModel → ViewModel → Leaf Template → HTML\n              ↑           ↑\n        (localized)  (renders it)\n```\n\n**Key principle:** The ViewModel is already localized when it reaches the template. The template just renders what it receives.\n\n---\n\n## Core Principle: View-ViewModel Alignment\n\n**The Leaf filename should match the ViewModel it renders.**\n\n```\nSources\u002F\n  {ViewModelsTarget}\u002F\n    ViewModels\u002F\n      {Feature}ViewModel.swift        ←──┐\n      {Entity}CardViewModel.swift     ←──┼── Same names\n                                          │\n  {WebAppTarget}\u002F                         │\n    Resources\u002FViews\u002F                      │\n      {Feature}\u002F                          │\n        {Feature}View.leaf            ────┤  (renders {Feature}ViewModel)\n        {Entity}CardView.leaf         ────┘  (renders {Entity}CardViewModel)\n```\n\nThis alignment provides:\n- **Discoverability** - Find the template for any ViewModel instantly\n- **Consistency** - Same naming discipline as SwiftUI\n- **Maintainability** - Changes to ViewModel are reflected in template location\n\n---\n\n## Two Template Types\n\n### Full-Page Templates\n\nRender a complete page with layout, navigation, CSS\u002FJS includes.\n\n```\n{Feature}View.leaf\n├── Extends base layout\n├── Includes \u003Chtml>, \u003Chead>, \u003Cbody>\n├── Renders {Feature}ViewModel\n└── May embed fragment templates for components\n```\n\n**Use for:** Initial page loads, navigation destinations.\n\n### Fragment Templates\n\nRender a single component - no layout, no page structure.\n\n```\n{Entity}CardView.leaf\n├── NO layout extension\n├── Single root element\n├── Renders {Entity}CardViewModel\n├── Has data-* attributes for state\n└── Returned to JS for DOM swapping\n```\n\n**Use for:** Partial updates, HTML-over-the-wire responses.\n\n---\n\n## The HTML-Over-The-Wire Pattern\n\nFor dynamic updates without full page reloads:\n\n```\nJS Event → WebApp Route → ServerRequest.processRequest() → Controller\n                                                              ↓\n                                                          ViewModel\n                                                              ↓\nHTML ← JS DOM swap ← WebApp returns ← Leaf renders ←────────┘\n```\n\n**The WebApp route:**\n```swift\napp.post(\"move-{entity}\") { req async throws -> Response in\n    let body = try req.content.decode(Move{Entity}Request.RequestBody.self)\n    let serverRequest = Move{Entity}Request(requestBody: body)\n    guard let response = try await serverRequest.processRequest(baseURL: app.serverBaseURL) else {\n        throw Abort(.internalServerError)\n    }\n\n    \u002F\u002F Render fragment template with ViewModel\n    return try await req.view.render(\n        \"{Feature}\u002F{Entity}CardView\",\n        [\"card\": response.viewModel]\n    ).encodeResponse(for: req)\n}\n```\n\n**JS receives HTML and swaps it into the DOM** - no JSON parsing, no client-side rendering.\n\n---\n\n## When to Use This Skill\n\n- Creating a new page template (full-page)\n- Creating a new card, row, or component template (fragment)\n- Adding data attributes for JS event handling\n- Troubleshooting Localizable types not rendering correctly\n- Setting up templates for HTML-over-the-wire responses\n\n---\n\n## Key Patterns\n\n### Pattern 1: Data Attributes for State\n\nFragments must embed all state that JS needs for future actions:\n\n```html\n\u003Cdiv class=\"{entity}-card\"\n     data-{entity}-id=\"#(card.id)\"\n     data-status=\"#(card.status)\"\n     data-category=\"#(card.category)\"\n     draggable=\"true\">\n```\n\n**Rules:**\n- `data-{entity}-id` for the primary identifier\n- `data-{field}` for state values (kebab-case)\n- Store **raw values** (enum cases), not localized display names\n- JS reads these to build ServerRequest payloads\n\n```javascript\nconst request = {\n    {entity}Id: element.dataset.{entity}Id,\n    newStatus: targetColumn.dataset.status\n};\n```\n\n### Pattern 2: Localizable Types in Leaf\n\nFOSMVVM's `LeafDataRepresentable` conformance handles Localizable types automatically.\n\n**In templates, just use the property:**\n```html\n\u003Cspan class=\"date\">#(card.createdAt)\u003C\u002Fspan>\n\u003C!-- Renders: \"Dec 27, 2025\" (localized) -->\n```\n\n**If Localizable types render incorrectly** (showing `[ds: \"2\", ls: \"...\", v: \"...\"]`):\n1. Ensure FOSMVVMVapor is imported\n2. Check `Localizable+Leaf.swift` exists with conformances\n3. Clean build: `swift package clean && swift build`\n\n### Pattern 3: Display Values vs Identifiers\n\nViewModels should provide both raw values (for data attributes) and localized strings (for display). For enum localization, see the [Enum Localization Pattern](..\u002Ffosmvvm-viewmodel-generator\u002FSKILL.md#enum-localization-pattern).\n\n```swift\n@ViewModel\npublic struct {Entity}CardViewModel {\n    public let id: ModelIdType              \u002F\u002F For data-{entity}-id\n    public let status: {Entity}Status       \u002F\u002F Raw enum for data-status\n    public let statusDisplay: LocalizableString  \u002F\u002F Localized (stored, not @LocalizedString)\n}\n```\n\n```html\n\u003Cdiv data-status=\"#(card.status)\">           \u003C!-- Raw: \"queued\" for JS -->\n    \u003Cspan class=\"badge\">#(card.statusDisplay)\u003C\u002Fspan>  \u003C!-- Localized: \"In Queue\" -->\n\u003C\u002Fdiv>\n```\n\n### Pattern 4: Fragment Structure\n\nFragments are minimal - just the component:\n\n```html\n\u003C!-- {Entity}CardView.leaf -->\n\u003Cdiv class=\"{entity}-card\"\n     data-{entity}-id=\"#(card.id)\"\n     data-status=\"#(card.status)\">\n\n    \u003Cdiv class=\"card-content\">\n        \u003Cp class=\"text\">#(card.contentPreview)\u003C\u002Fp>\n    \u003C\u002Fdiv>\n\n    \u003Cdiv class=\"card-footer\">\n        \u003Cspan class=\"creator\">#(card.creatorName)\u003C\u002Fspan>\n        \u003Cspan class=\"date\">#(card.createdAt)\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n**Rules:**\n1. NO `#extend(\"base\")` - fragments don't use layouts\n2. **Single root element** - makes DOM swapping clean\n3. All required state in data-* attributes\n4. Localized values from ViewModel properties\n\n### Pattern 5: Full-Page Structure\n\nFull pages extend a base layout:\n\n```html\n\u003C!-- {Feature}View.leaf -->\n#extend(\"base\"):\n#export(\"content\"):\n\n\u003Cdiv class=\"{feature}-container\">\n    \u003Cheader class=\"{feature}-header\">\n        \u003Ch1>#(viewModel.title)\u003C\u002Fh1>\n    \u003C\u002Fheader>\n\n    \u003Cmain class=\"{feature}-content\">\n        #for(card in viewModel.cards):\n        #extend(\"{Feature}\u002F{Entity}CardView\")\n        #endfor\n    \u003C\u002Fmain>\n\u003C\u002Fdiv>\n\n#endexport\n#endextend\n```\n\n### Pattern 6: Conditional Rendering\n\n```html\n#if(card.isHighPriority):\n\u003Cspan class=\"priority-badge\">#(card.priorityLabel)\u003C\u002Fspan>\n#endif\n\n#if(card.assignee):\n\u003Cdiv class=\"assignee\">\n    \u003Cspan class=\"name\">#(card.assignee.name)\u003C\u002Fspan>\n\u003C\u002Fdiv>\n#else:\n\u003Cdiv class=\"unassigned\">#(card.unassignedLabel)\u003C\u002Fdiv>\n#endif\n```\n\n### Pattern 7: Looping with Embedded Fragments\n\n```html\n\u003Cdiv class=\"column\" data-status=\"#(column.status)\">\n    \u003Cdiv class=\"column-header\">\n        \u003Ch3>#(column.displayName)\u003C\u002Fh3>\n        \u003Cspan class=\"count\">#(column.count)\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n\n    \u003Cdiv class=\"column-cards\">\n        #for(card in column.cards):\n        #extend(\"{Feature}\u002F{Entity}CardView\")\n        #endfor\n\n        #if(column.cards.count == 0):\n        \u003Cdiv class=\"empty-state\">#(column.emptyMessage)\u003C\u002Fdiv>\n        #endif\n    \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n---\n\n## File Organization\n\n```\nSources\u002F{WebAppTarget}\u002FResources\u002FViews\u002F\n├── base.leaf                          # Base layout (all pages extend this)\n├── {Feature}\u002F\n│   ├── {Feature}View.leaf             # Full page → {Feature}ViewModel\n│   ├── {Entity}CardView.leaf          # Fragment → {Entity}CardViewModel\n│   ├── {Entity}RowView.leaf           # Fragment → {Entity}RowViewModel\n│   └── {Modal}View.leaf               # Fragment → {Modal}ViewModel\n└── Shared\u002F\n    ├── HeaderView.leaf                # Shared components\n    └── FooterView.leaf\n```\n\n---\n\n## Leaf Built-in Functions\n\nLeaf provides useful functions for working with arrays:\n\n```html\n\u003C!-- Count items -->\n#if(count(cards) > 0):\n\u003Cp>You have #count(cards) cards\u003C\u002Fp>\n#endif\n\n\u003C!-- Check if array contains value -->\n#if(contains(statuses, \"active\")):\n\u003Cspan class=\"badge\">Active\u003C\u002Fspan>\n#endif\n```\n\n### Loop Variables\n\nInside `#for` loops, Leaf provides progress variables:\n\n```html\n#for(item in items):\n    #if(isFirst):\u003Cspan class=\"first\">#endif\n    #(item.name)\n    #if(!isLast):, #endif\n#endfor\n```\n\n| Variable | Description |\n|----------|-------------|\n| `isFirst` | True on first iteration |\n| `isLast` | True on last iteration |\n| `index` | Current iteration (0-based) |\n\n### Array Index Access\n\nDirect array subscripts (`array[0]`) are not documented in Leaf. For accessing specific elements, pre-compute in the ViewModel:\n\n```swift\npublic let firstCard: CardViewModel?\n\npublic init(cards: [CardViewModel]) {\n    self.cards = cards\n    self.firstCard = cards.first\n}\n```\n\n---\n\n## Codable and Computed Properties\n\nSwift's synthesized `Codable` only encodes **stored properties**. Since ViewModels are passed to Leaf via Codable encoding, computed properties won't be available.\n\n```swift\n\u002F\u002F Computed property - NOT encoded by Codable, invisible in Leaf\npublic var hasCards: Bool { !cards.isEmpty }\n\n\u002F\u002F Stored property - encoded by Codable, available in Leaf\npublic let hasCards: Bool\n```\n\nIf you need a derived value in a Leaf template, calculate it in `init()` and store it:\n\n```swift\npublic let hasCards: Bool\npublic let cardCount: Int\n\npublic init(cards: [CardViewModel]) {\n    self.cards = cards\n    self.hasCards = !cards.isEmpty\n    self.cardCount = cards.count\n}\n```\n\n---\n\n## ViewModelId Initialization - CRITICAL\n\n**IMPORTANT:** Even though Leaf templates don't use `vmId` directly, the ViewModels being rendered must initialize `vmId` correctly for SwiftUI clients.\n\n**❌ WRONG - Never use this:**\n```swift\npublic var vmId: ViewModelId = .init()  \u002F\u002F NO! Generic identity\n```\n\n**✅ MINIMUM - Use type-based identity:**\n```swift\npublic var vmId: ViewModelId = .init(type: Self.self)\n```\n\n**✅ IDEAL - Use data-based identity when available:**\n```swift\npublic struct TaskCardViewModel {\n    public let id: ModelIdType\n    public var vmId: ViewModelId\n\n    public init(id: ModelIdType, \u002F* other params *\u002F) {\n        self.id = id\n        self.vmId = .init(id: id)  \u002F\u002F Ties view identity to data identity\n        \u002F\u002F ...\n    }\n}\n```\n\n**Why this matters for Leaf ViewModels:**\n- ViewModels are shared between Leaf (web) and SwiftUI (native) clients\n- SwiftUI uses `.id(vmId)` to determine when to recreate vs update views\n- Wrong identity = SwiftUI views don't update when data changes\n- Data-based identity (`.init(id:)`) is best practice\n\n---\n\n## Common Mistakes\n\n### Missing Data Attributes\n\n```html\n\u003C!-- BAD - JS can't identify this element -->\n\u003Cdiv class=\"{entity}-card\">\n\n\u003C!-- GOOD - JS reads data-{entity}-id -->\n\u003Cdiv class=\"{entity}-card\" data-{entity}-id=\"#(card.id)\">\n```\n\n### Storing Display Names Instead of Identifiers\n\n```html\n\u003C!-- BAD - localized string can't be sent to server -->\n\u003Cdiv data-status=\"#(card.statusDisplayName)\">\n\n\u003C!-- GOOD - raw enum value works for requests -->\n\u003Cdiv data-status=\"#(card.status)\">\n```\n\n### Using Layout in Fragments\n\n```html\n\u003C!-- BAD - fragment should not extend layout -->\n#extend(\"base\"):\n#export(\"content\"):\n\u003Cdiv class=\"card\">...\u003C\u002Fdiv>\n#endexport\n#endextend\n\n\u003C!-- GOOD - fragment is just the component -->\n\u003Cdiv class=\"card\">...\u003C\u002Fdiv>\n```\n\n### Hardcoding Text\n\n```html\n\u003C!-- BAD - not localizable -->\n\u003Cspan class=\"status\">Queued\u003C\u002Fspan>\n\n\u003C!-- GOOD - ViewModel provides localized value -->\n\u003Cspan class=\"status\">#(card.statusDisplayName)\u003C\u002Fspan>\n```\n\n### Concatenating Localized Values\n\n```html\n\u003C!-- BAD - breaks RTL languages and locale-specific word order -->\n#(conversation.messageCount) #(conversation.messagesLabel)\n\n\u003C!-- GOOD - ViewModel composes via @LocalizedSubs -->\n#(conversation.messageCountDisplay)\n```\n\nTemplate-level concatenation assumes left-to-right order. Use `@LocalizedSubs` in the ViewModel so YAML can define locale-appropriate ordering:\n\n```yaml\nen:\n  ConversationViewModel:\n    messageCountDisplay: \"%{messageCount} %{messagesLabel}\"\nar:\n  ConversationViewModel:\n    messageCountDisplay: \"%{messagesLabel} %{messageCount}\"\n```\n\n### Formatting Dates in Templates\n\n```html\n\u003C!-- BAD - hardcoded format, not locale-aware, concatenation issue -->\n\u003Cspan>#(content.createdPrefix) #date(content.createdAt, \"MMM d, yyyy\")\u003C\u002Fspan>\n\n\u003C!-- GOOD - LocalizableDate handles locale formatting, @LocalizedSubs composes -->\n\u003Cspan>#(content.createdDisplay)\u003C\u002Fspan>\n```\n\nUse `LocalizableDate` in the ViewModel - it formats according to user locale. If combining with a prefix, use `@LocalizedSubs`:\n\n```swift\npublic let createdAt: LocalizableDate\n\n@LocalizedSubs(\\.createdPrefix, \\.createdAt)\npublic var createdDisplay\n```\n\n### Mismatched Filenames\n\n```\n\u003C!-- BAD - filename doesn't match ViewModel -->\nViewModel: UserProfileCardViewModel\nTemplate:  ProfileCard.leaf\n\n\u003C!-- GOOD - aligned names -->\nViewModel: UserProfileCardViewModel\nTemplate:  UserProfileCardView.leaf\n```\n\n### Incorrect ViewModelId Initialization\n\n```swift\n\u002F\u002F ❌ BAD - Generic identity (breaks SwiftUI clients)\npublic var vmId: ViewModelId = .init()\n\n\u002F\u002F ✅ MINIMUM - Type-based identity\npublic var vmId: ViewModelId = .init(type: Self.self)\n\n\u002F\u002F ✅ IDEAL - Data-based identity (when id available)\npublic init(id: ModelIdType) {\n    self.id = id\n    self.vmId = .init(id: id)\n}\n```\n\nViewModels rendered by Leaf are often shared with SwiftUI clients. Correct `vmId` initialization is critical for SwiftUI's view identity system.\n\n---\n\n## Rendering Errors in Leaf Templates\n\nWhen a WebApp route catches an error, the error type is **known at compile time**. You don't need generic \"ErrorViewModel\" patterns:\n\n```swift\n\u002F\u002F WebApp route - you KNOW the request type, so you KNOW the error type\napp.post(\"move-idea\") { req async throws -> Response in\n    let body = try req.content.decode(MoveIdeaRequest.RequestBody.self)\n    let serverRequest = MoveIdeaRequest(requestBody: body)\n\n    do {\n        try await serverRequest.processRequest(mvvmEnv: req.application.mvvmEnv)\n        \u002F\u002F success path...\n    } catch let error as MoveIdeaRequest.ResponseError {\n        \u002F\u002F I KNOW this is MoveIdeaRequest.ResponseError\n        \u002F\u002F I KNOW it has .code and .message\n        return try await req.view.render(\n            \"Shared\u002FToastView\",\n            [\"message\": error.message.value, \"type\": \"error\"]\n        ).encodeResponse(for: req)\n    }\n}\n```\n\n**The anti-pattern (JavaScript brain):**\n```swift\n\u002F\u002F ❌ WRONG - treating errors as opaque\ncatch let error as ServerRequestError {\n    \u002F\u002F \"How do I extract the message? The protocol doesn't guarantee it!\"\n    \u002F\u002F This is wrong thinking. You catch the CONCRETE type.\n}\n```\n\nEach route handles its own specific error type. There's no mystery about what properties are available.\n\n---\n\n## How to Use This Skill\n\n**Invocation:**\n\u002Ffosmvvm-leaf-view-generator\n\n**Prerequisites:**\n- ViewModel structure understood from conversation context\n- Template type determined (full-page vs fragment)\n- Data attributes needed for JS interactions identified\n- HTML-over-the-wire pattern understood if using fragments\n\n**Workflow integration:**\nThis skill is used when creating Leaf templates for web clients. 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 template structure:\n\n### ViewModel Analysis\n\nFrom conversation context, the skill identifies:\n- **ViewModel type** (from prior discussion or server implementation)\n- **Properties** (what data the template will display)\n- **Localization** (which properties are Localizable types)\n- **Nested ViewModels** (child components)\n\n### Template Type Detection\n\nFrom ViewModel purpose:\n- **Page content** → Full-page template (extends layout)\n- **List item\u002FCard** → Fragment (no layout, single root)\n- **Modal content** → Fragment\n- **Inline component** → Fragment\n\n### Property Mapping\n\nFor each ViewModel property:\n- **`id: ModelIdType`** → `data-{entity}-id=\"#(vm.id)\"` (for JS)\n- **Raw enum** → `data-{field}=\"#(vm.field)\"` (for state)\n- **`LocalizableString`** → `#(vm.displayName)` (display text)\n- **`LocalizableDate`** → `#(vm.createdAt)` (formatted date)\n- **Nested ViewModel** → Embed fragment or access properties\n\n### Data Attributes Planning\n\nBased on JS interaction needs:\n- **Entity identifier** (for operations)\n- **State values** (enum raw values for requests)\n- **Drag\u002Fdrop attributes** (if interactive)\n- **Category\u002Fgrouping** (for filtering\u002Fsorting)\n\n### Template Generation\n\n**Full-page:**\n1. Layout extension\n2. Content export\n3. Embedded fragments for components\n\n**Fragment:**\n1. Single root element\n2. Data attributes for state\n3. Localized text from ViewModel\n4. No layout extension\n\n### Context Sources\n\nSkill references information from:\n- **Prior conversation**: Template requirements, user flows discussed\n- **ViewModel**: If Claude has read ViewModel code into context\n- **Existing templates**: From codebase analysis of similar views\n\n---\n\n## See Also\n\n- [Architecture Patterns](..\u002Fshared\u002Farchitecture-patterns.md) - Mental models (errors are data, type safety, etc.)\n- [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md) - Full architecture\n- [fosmvvm-viewmodel-generator](..\u002Ffosmvvm-viewmodel-generator\u002FSKILL.md) - Creates the ViewModels this skill renders\n- [fosmvvm-serverrequest-generator](..\u002Ffosmvvm-serverrequest-generator\u002FSKILL.md) - Creates requests that return ViewModels\n- [reference.md](reference.md) - Complete template examples\n\n---\n\n## Version History\n\n| Version | Date | Changes |\n|---------|------|---------|\n| 1.0 | 2025-12-24 | Initial Kairos-specific skill |\n| 2.0 | 2025-12-27 | Generalized for FOSMVVM, added View-ViewModel alignment principle, full-page templates, architecture connection |\n| 2.1 | 2026-01-08 | Added Leaf Built-in Functions section (count, contains, loop variables). Clarified Codable\u002Fcomputed properties. Corrected earlier false claims about #count() not working. |\n| 2.2 | 2026-01-19 | Updated Pattern 3 to use stored LocalizableString for dynamic enum displays; linked to Enum Localization Pattern. Added anti-patterns for concatenating localized values and formatting dates in templates. |\n| 2.3 | 2026-01-20 | Added \"Rendering Errors in Leaf Templates\" section - error types are known at compile time, no need for generic ErrorViewModel patterns. Prevents JavaScript-brain thinking about runtime type discovery. |\n| 2.4 | 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 Leaf View Generator\n\nGenerate Leaf templates that render ViewModels for web clients.\n\n> **Architecture context:** See [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md) | [OpenClaw reference]({baseDir}\u002Freferences\u002FFOSMVVMArchitecture.md)\n\n---\n\n## The View Layer for WebApps\n\nIn FOSMVVM, Leaf templates are the **View** in M-V-VM for web clients:\n\n```\nModel → ViewModel → Leaf Template → HTML\n              ↑           ↑\n        (localized)  (renders it)\n```\n\n**Key principle:** The ViewModel is already localized when it reaches the template. The template just renders what it receives.\n\n---\n\n## Core Principle: View-ViewModel Alignment\n\n**The Leaf filename should match the ViewModel it renders.**\n\n```\nSources\u002F\n  {ViewModelsTarget}\u002F\n    ViewModels\u002F\n      {Feature}ViewModel.swift        ←──┐\n      {Entity}CardViewModel.swift     ←──┼── Same names\n                                          │\n  {WebAppTarget}\u002F                         │\n    Resources\u002FViews\u002F                      │\n      {Feature}\u002F                          │\n        {Feature}View.leaf            ────┤  (renders {Feature}ViewModel)\n        {Entity}CardView.leaf         ────┘  (renders {Entity}CardViewModel)\n```\n\nThis alignment provides:\n- **Discoverability** - Find the template for any ViewModel instantly\n- **Consistency** - Same naming discipline as SwiftUI\n- **Maintainability** - Changes to ViewModel are reflected in template location\n\n---\n\n## Two Template Types\n\n### Full-Page Templates\n\nRender a complete page with layout, navigation, CSS\u002FJS includes.\n\n```\n{Feature}View.leaf\n├── Extends base layout\n├── Includes \u003Chtml>, \u003Chead>, \u003Cbody>\n├── Renders {Feature}ViewModel\n└── May embed fragment templates for components\n```\n\n**Use for:** Initial page loads, navigation destinations.\n\n### Fragment Templates\n\nRender a single component - no layout, no page structure.\n\n```\n{Entity}CardView.leaf\n├── NO layout extension\n├── Single root element\n├── Renders {Entity}CardViewModel\n├── Has data-* attributes for state\n└── Returned to JS for DOM swapping\n```\n\n**Use for:** Partial updates, HTML-over-the-wire responses.\n\n---\n\n## The HTML-Over-The-Wire Pattern\n\nFor dynamic updates without full page reloads:\n\n```\nJS Event → WebApp Route → ServerRequest.processRequest() → Controller\n                                                              ↓\n                                                          ViewModel\n                                                              ↓\nHTML ← JS DOM swap ← WebApp returns ← Leaf renders ←────────┘\n```\n\n**The WebApp route:**\n```swift\napp.post(\"move-{entity}\") { req async throws -> Response in\n    let body = try req.content.decode(Move{Entity}Request.RequestBody.self)\n    let serverRequest = Move{Entity}Request(requestBody: body)\n    guard let response = try await serverRequest.processRequest(baseURL: app.serverBaseURL) else {\n        throw Abort(.internalServerError)\n    }\n\n    \u002F\u002F Render fragment template with ViewModel\n    return try await req.view.render(\n        \"{Feature}\u002F{Entity}CardView\",\n        [\"card\": response.viewModel]\n    ).encodeResponse(for: req)\n}\n```\n\n**JS receives HTML and swaps it into the DOM** - no JSON parsing, no client-side rendering.\n\n---\n\n## When to Use This Skill\n\n- Creating a new page template (full-page)\n- Creating a new card, row, or component template (fragment)\n- Adding data attributes for JS event handling\n- Troubleshooting Localizable types not rendering correctly\n- Setting up templates for HTML-over-the-wire responses\n\n---\n\n## Key Patterns\n\n### Pattern 1: Data Attributes for State\n\nFragments must embed all state that JS needs for future actions:\n\n```html\n\u003Cdiv class=\"{entity}-card\"\n     data-{entity}-id=\"#(card.id)\"\n     data-status=\"#(card.status)\"\n     data-category=\"#(card.category)\"\n     draggable=\"true\">\n```\n\n**Rules:**\n- `data-{entity}-id` for the primary identifier\n- `data-{field}` for state values (kebab-case)\n- Store **raw values** (enum cases), not localized display names\n- JS reads these to build ServerRequest payloads\n\n```javascript\nconst request = {\n    {entity}Id: element.dataset.{entity}Id,\n    newStatus: targetColumn.dataset.status\n};\n```\n\n### Pattern 2: Localizable Types in Leaf\n\nFOSMVVM's `LeafDataRepresentable` conformance handles Localizable types automatically.\n\n**In templates, just use the property:**\n```html\n\u003Cspan class=\"date\">#(card.createdAt)\u003C\u002Fspan>\n\u003C!-- Renders: \"Dec 27, 2025\" (localized) -->\n```\n\n**If Localizable types render incorrectly** (showing `[ds: \"2\", ls: \"...\", v: \"...\"]`):\n1. Ensure FOSMVVMVapor is imported\n2. Check `Localizable+Leaf.swift` exists with conformances\n3. Clean build: `swift package clean && swift build`\n\n### Pattern 3: Display Values vs Identifiers\n\nViewModels should provide both raw values (for data attributes) and localized strings (for display). For enum localization, see the [Enum Localization Pattern](..\u002Ffosmvvm-viewmodel-generator\u002FSKILL.md#enum-localization-pattern).\n\n```swift\n@ViewModel\npublic struct {Entity}CardViewModel {\n    public let id: ModelIdType              \u002F\u002F For data-{entity}-id\n    public let status: {Entity}Status       \u002F\u002F Raw enum for data-status\n    public let statusDisplay: LocalizableString  \u002F\u002F Localized (stored, not @LocalizedString)\n}\n```\n\n```html\n\u003Cdiv data-status=\"#(card.status)\">           \u003C!-- Raw: \"queued\" for JS -->\n    \u003Cspan class=\"badge\">#(card.statusDisplay)\u003C\u002Fspan>  \u003C!-- Localized: \"In Queue\" -->\n\u003C\u002Fdiv>\n```\n\n### Pattern 4: Fragment Structure\n\nFragments are minimal - just the component:\n\n```html\n\u003C!-- {Entity}CardView.leaf -->\n\u003Cdiv class=\"{entity}-card\"\n     data-{entity}-id=\"#(card.id)\"\n     data-status=\"#(card.status)\">\n\n    \u003Cdiv class=\"card-content\">\n        \u003Cp class=\"text\">#(card.contentPreview)\u003C\u002Fp>\n    \u003C\u002Fdiv>\n\n    \u003Cdiv class=\"card-footer\">\n        \u003Cspan class=\"creator\">#(card.creatorName)\u003C\u002Fspan>\n        \u003Cspan class=\"date\">#(card.createdAt)\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n**Rules:**\n1. NO `#extend(\"base\")` - fragments don't use layouts\n2. **Single root element** - makes DOM swapping clean\n3. All required state in data-* attributes\n4. Localized values from ViewModel properties\n\n### Pattern 5: Full-Page Structure\n\nFull pages extend a base layout:\n\n```html\n\u003C!-- {Feature}View.leaf -->\n#extend(\"base\"):\n#export(\"content\"):\n\n\u003Cdiv class=\"{feature}-container\">\n    \u003Cheader class=\"{feature}-header\">\n        \u003Ch1>#(viewModel.title)\u003C\u002Fh1>\n    \u003C\u002Fheader>\n\n    \u003Cmain class=\"{feature}-content\">\n        #for(card in viewModel.cards):\n        #extend(\"{Feature}\u002F{Entity}CardView\")\n        #endfor\n    \u003C\u002Fmain>\n\u003C\u002Fdiv>\n\n#endexport\n#endextend\n```\n\n### Pattern 6: Conditional Rendering\n\n```html\n#if(card.isHighPriority):\n\u003Cspan class=\"priority-badge\">#(card.priorityLabel)\u003C\u002Fspan>\n#endif\n\n#if(card.assignee):\n\u003Cdiv class=\"assignee\">\n    \u003Cspan class=\"name\">#(card.assignee.name)\u003C\u002Fspan>\n\u003C\u002Fdiv>\n#else:\n\u003Cdiv class=\"unassigned\">#(card.unassignedLabel)\u003C\u002Fdiv>\n#endif\n```\n\n### Pattern 7: Looping with Embedded Fragments\n\n```html\n\u003Cdiv class=\"column\" data-status=\"#(column.status)\">\n    \u003Cdiv class=\"column-header\">\n        \u003Ch3>#(column.displayName)\u003C\u002Fh3>\n        \u003Cspan class=\"count\">#(column.count)\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n\n    \u003Cdiv class=\"column-cards\">\n        #for(card in column.cards):\n        #extend(\"{Feature}\u002F{Entity}CardView\")\n        #endfor\n\n        #if(column.cards.count == 0):\n        \u003Cdiv class=\"empty-state\">#(column.emptyMessage)\u003C\u002Fdiv>\n        #endif\n    \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n---\n\n## File Organization\n\n```\nSources\u002F{WebAppTarget}\u002FResources\u002FViews\u002F\n├── base.leaf                          # Base layout (all pages extend this)\n├── {Feature}\u002F\n│   ├── {Feature}View.leaf             # Full page → {Feature}ViewModel\n│   ├── {Entity}CardView.leaf          # Fragment → {Entity}CardViewModel\n│   ├── {Entity}RowView.leaf           # Fragment → {Entity}RowViewModel\n│   └── {Modal}View.leaf               # Fragment → {Modal}ViewModel\n└── Shared\u002F\n    ├── HeaderView.leaf                # Shared components\n    └── FooterView.leaf\n```\n\n---\n\n## Leaf Built-in Functions\n\nLeaf provides useful functions for working with arrays:\n\n```html\n\u003C!-- Count items -->\n#if(count(cards) > 0):\n\u003Cp>You have #count(cards) cards\u003C\u002Fp>\n#endif\n\n\u003C!-- Check if array contains value -->\n#if(contains(statuses, \"active\")):\n\u003Cspan class=\"badge\">Active\u003C\u002Fspan>\n#endif\n```\n\n### Loop Variables\n\nInside `#for` loops, Leaf provides progress variables:\n\n```html\n#for(item in items):\n    #if(isFirst):\u003Cspan class=\"first\">#endif\n    #(item.name)\n    #if(!isLast):, #endif\n#endfor\n```\n\n| Variable | Description |\n|----------|-------------|\n| `isFirst` | True on first iteration |\n| `isLast` | True on last iteration |\n| `index` | Current iteration (0-based) |\n\n### Array Index Access\n\nDirect array subscripts (`array[0]`) are not documented in Leaf. For accessing specific elements, pre-compute in the ViewModel:\n\n```swift\npublic let firstCard: CardViewModel?\n\npublic init(cards: [CardViewModel]) {\n    self.cards = cards\n    self.firstCard = cards.first\n}\n```\n\n---\n\n## Codable and Computed Properties\n\nSwift's synthesized `Codable` only encodes **stored properties**. Since ViewModels are passed to Leaf via Codable encoding, computed properties won't be available.\n\n```swift\n\u002F\u002F Computed property - NOT encoded by Codable, invisible in Leaf\npublic var hasCards: Bool { !cards.isEmpty }\n\n\u002F\u002F Stored property - encoded by Codable, available in Leaf\npublic let hasCards: Bool\n```\n\nIf you need a derived value in a Leaf template, calculate it in `init()` and store it:\n\n```swift\npublic let hasCards: Bool\npublic let cardCount: Int\n\npublic init(cards: [CardViewModel]) {\n    self.cards = cards\n    self.hasCards = !cards.isEmpty\n    self.cardCount = cards.count\n}\n```\n\n---\n\n## ViewModelId Initialization - CRITICAL\n\n**IMPORTANT:** Even though Leaf templates don't use `vmId` directly, the ViewModels being rendered must initialize `vmId` correctly for SwiftUI clients.\n\n**❌ WRONG - Never use this:**\n```swift\npublic var vmId: ViewModelId = .init()  \u002F\u002F NO! Generic identity\n```\n\n**✅ MINIMUM - Use type-based identity:**\n```swift\npublic var vmId: ViewModelId = .init(type: Self.self)\n```\n\n**✅ IDEAL - Use data-based identity when available:**\n```swift\npublic struct TaskCardViewModel {\n    public let id: ModelIdType\n    public var vmId: ViewModelId\n\n    public init(id: ModelIdType, \u002F* other params *\u002F) {\n        self.id = id\n        self.vmId = .init(id: id)  \u002F\u002F Ties view identity to data identity\n        \u002F\u002F ...\n    }\n}\n```\n\n**Why this matters for Leaf ViewModels:**\n- ViewModels are shared between Leaf (web) and SwiftUI (native) clients\n- SwiftUI uses `.id(vmId)` to determine when to recreate vs update views\n- Wrong identity = SwiftUI views don't update when data changes\n- Data-based identity (`.init(id:)`) is best practice\n\n---\n\n## Common Mistakes\n\n### Missing Data Attributes\n\n```html\n\u003C!-- BAD - JS can't identify this element -->\n\u003Cdiv class=\"{entity}-card\">\n\n\u003C!-- GOOD - JS reads data-{entity}-id -->\n\u003Cdiv class=\"{entity}-card\" data-{entity}-id=\"#(card.id)\">\n```\n\n### Storing Display Names Instead of Identifiers\n\n```html\n\u003C!-- BAD - localized string can't be sent to server -->\n\u003Cdiv data-status=\"#(card.statusDisplayName)\">\n\n\u003C!-- GOOD - raw enum value works for requests -->\n\u003Cdiv data-status=\"#(card.status)\">\n```\n\n### Using Layout in Fragments\n\n```html\n\u003C!-- BAD - fragment should not extend layout -->\n#extend(\"base\"):\n#export(\"content\"):\n\u003Cdiv class=\"card\">...\u003C\u002Fdiv>\n#endexport\n#endextend\n\n\u003C!-- GOOD - fragment is just the component -->\n\u003Cdiv class=\"card\">...\u003C\u002Fdiv>\n```\n\n### Hardcoding Text\n\n```html\n\u003C!-- BAD - not localizable -->\n\u003Cspan class=\"status\">Queued\u003C\u002Fspan>\n\n\u003C!-- GOOD - ViewModel provides localized value -->\n\u003Cspan class=\"status\">#(card.statusDisplayName)\u003C\u002Fspan>\n```\n\n### Concatenating Localized Values\n\n```html\n\u003C!-- BAD - breaks RTL languages and locale-specific word order -->\n#(conversation.messageCount) #(conversation.messagesLabel)\n\n\u003C!-- GOOD - ViewModel composes via @LocalizedSubs -->\n#(conversation.messageCountDisplay)\n```\n\nTemplate-level concatenation assumes left-to-right order. Use `@LocalizedSubs` in the ViewModel so YAML can define locale-appropriate ordering:\n\n```yaml\nen:\n  ConversationViewModel:\n    messageCountDisplay: \"%{messageCount} %{messagesLabel}\"\nar:\n  ConversationViewModel:\n    messageCountDisplay: \"%{messagesLabel} %{messageCount}\"\n```\n\n### Formatting Dates in Templates\n\n```html\n\u003C!-- BAD - hardcoded format, not locale-aware, concatenation issue -->\n\u003Cspan>#(content.createdPrefix) #date(content.createdAt, \"MMM d, yyyy\")\u003C\u002Fspan>\n\n\u003C!-- GOOD - LocalizableDate handles locale formatting, @LocalizedSubs composes -->\n\u003Cspan>#(content.createdDisplay)\u003C\u002Fspan>\n```\n\nUse `LocalizableDate` in the ViewModel - it formats according to user locale. If combining with a prefix, use `@LocalizedSubs`:\n\n```swift\npublic let createdAt: LocalizableDate\n\n@LocalizedSubs(\\.createdPrefix, \\.createdAt)\npublic var createdDisplay\n```\n\n### Mismatched Filenames\n\n```\n\u003C!-- BAD - filename doesn't match ViewModel -->\nViewModel: UserProfileCardViewModel\nTemplate:  ProfileCard.leaf\n\n\u003C!-- GOOD - aligned names -->\nViewModel: UserProfileCardViewModel\nTemplate:  UserProfileCardView.leaf\n```\n\n### Incorrect ViewModelId Initialization\n\n```swift\n\u002F\u002F ❌ BAD - Generic identity (breaks SwiftUI clients)\npublic var vmId: ViewModelId = .init()\n\n\u002F\u002F ✅ MINIMUM - Type-based identity\npublic var vmId: ViewModelId = .init(type: Self.self)\n\n\u002F\u002F ✅ IDEAL - Data-based identity (when id available)\npublic init(id: ModelIdType) {\n    self.id = id\n    self.vmId = .init(id: id)\n}\n```\n\nViewModels rendered by Leaf are often shared with SwiftUI clients. Correct `vmId` initialization is critical for SwiftUI's view identity system.\n\n---\n\n## Rendering Errors in Leaf Templates\n\nWhen a WebApp route catches an error, the error type is **known at compile time**. You don't need generic \"ErrorViewModel\" patterns:\n\n```swift\n\u002F\u002F WebApp route - you KNOW the request type, so you KNOW the error type\napp.post(\"move-idea\") { req async throws -> Response in\n    let body = try req.content.decode(MoveIdeaRequest.RequestBody.self)\n    let serverRequest = MoveIdeaRequest(requestBody: body)\n\n    do {\n        try await serverRequest.processRequest(mvvmEnv: req.application.mvvmEnv)\n        \u002F\u002F success path...\n    } catch let error as MoveIdeaRequest.ResponseError {\n        \u002F\u002F I KNOW this is MoveIdeaRequest.ResponseError\n        \u002F\u002F I KNOW it has .code and .message\n        return try await req.view.render(\n            \"Shared\u002FToastView\",\n            [\"message\": error.message.value, \"type\": \"error\"]\n        ).encodeResponse(for: req)\n    }\n}\n```\n\n**The anti-pattern (JavaScript brain):**\n```swift\n\u002F\u002F ❌ WRONG - treating errors as opaque\ncatch let error as ServerRequestError {\n    \u002F\u002F \"How do I extract the message? The protocol doesn't guarantee it!\"\n    \u002F\u002F This is wrong thinking. You catch the CONCRETE type.\n}\n```\n\nEach route handles its own specific error type. There's no mystery about what properties are available.\n\n---\n\n## How to Use This Skill\n\n**Invocation:**\n\u002Ffosmvvm-leaf-view-generator\n\n**Prerequisites:**\n- ViewModel structure understood from conversation context\n- Template type determined (full-page vs fragment)\n- Data attributes needed for JS interactions identified\n- HTML-over-the-wire pattern understood if using fragments\n\n**Workflow integration:**\nThis skill is used when creating Leaf templates for web clients. 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 template structure:\n\n### ViewModel Analysis\n\nFrom conversation context, the skill identifies:\n- **ViewModel type** (from prior discussion or server implementation)\n- **Properties** (what data the template will display)\n- **Localization** (which properties are Localizable types)\n- **Nested ViewModels** (child components)\n\n### Template Type Detection\n\nFrom ViewModel purpose:\n- **Page content** → Full-page template (extends layout)\n- **List item\u002FCard** → Fragment (no layout, single root)\n- **Modal content** → Fragment\n- **Inline component** → Fragment\n\n### Property Mapping\n\nFor each ViewModel property:\n- **`id: ModelIdType`** → `data-{entity}-id=\"#(vm.id)\"` (for JS)\n- **Raw enum** → `data-{field}=\"#(vm.field)\"` (for state)\n- **`LocalizableString`** → `#(vm.displayName)` (display text)\n- **`LocalizableDate`** → `#(vm.createdAt)` (formatted date)\n- **Nested ViewModel** → Embed fragment or access properties\n\n### Data Attributes Planning\n\nBased on JS interaction needs:\n- **Entity identifier** (for operations)\n- **State values** (enum raw values for requests)\n- **Drag\u002Fdrop attributes** (if interactive)\n- **Category\u002Fgrouping** (for filtering\u002Fsorting)\n\n### Template Generation\n\n**Full-page:**\n1. Layout extension\n2. Content export\n3. Embedded fragments for components\n\n**Fragment:**\n1. Single root element\n2. Data attributes for state\n3. Localized text from ViewModel\n4. No layout extension\n\n### Context Sources\n\nSkill references information from:\n- **Prior conversation**: Template requirements, user flows discussed\n- **ViewModel**: If Claude has read ViewModel code into context\n- **Existing templates**: From codebase analysis of similar views\n\n---\n\n## See Also\n\n- [Architecture Patterns](..\u002Fshared\u002Farchitecture-patterns.md) - Mental models (errors are data, type safety, etc.)\n- [FOSMVVMArchitecture.md](..\u002F..\u002Fdocs\u002FFOSMVVMArchitecture.md) - Full architecture\n- [fosmvvm-viewmodel-generator](..\u002Ffosmvvm-viewmodel-generator\u002FSKILL.md) - Creates the ViewModels this skill renders\n- [fosmvvm-serverrequest-generator](..\u002Ffosmvvm-serverrequest-generator\u002FSKILL.md) - Creates requests that return ViewModels\n- [reference.md](reference.md) - Complete template examples\n\n---\n\n## Version History\n\n| Version | Date | Changes |\n|---------|------|---------|\n| 1.0 | 2025-12-24 | Initial Kairos-specific skill |\n| 2.0 | 2025-12-27 | Generalized for FOSMVVM, added View-ViewModel alignment principle, full-page templates, architecture connection |\n| 2.1 | 2026-01-08 | Added Leaf Built-in Functions section (count, contains, loop variables). Clarified Codable\u002Fcomputed properties. Corrected earlier false claims about #count() not working. |\n| 2.2 | 2026-01-19 | Updated Pattern 3 to use stored LocalizableString for dynamic enum displays; linked to Enum Localization Pattern. Added anti-patterns for concatenating localized values and formatting dates in templates. |\n| 2.3 | 2026-01-20 | Added \"Rendering Errors in Leaf Templates\" section - error types are known at compile time, no need for generic ErrorViewModel patterns. Prevents JavaScript-brain thinking about runtime type discovery. |\n| 2.4 | 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-leaf-view-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-leaf-view-generator",{"tool":46,"command":47},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill fosmvvm-leaf-view-generator",{"tool":49,"command":50},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill fosmvvm-leaf-view-generator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffoscomputerservices\u002Ffosmvvm-leaf-view-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",[],[]]