LaunchKit · 2026
Back to Skills

fosmvvm-react-view-generator

Generate React components that render FOSMVVM ViewModels.

2
420 downloads
by @foscomputerservices

Setup & Installation

openclaw skills install @foscomputerservices/fosmvvm-react-view-generator

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install fosmvvm-react-view-generator

What This Skill Does

Scaffolds React components that render FOSMVVM ViewModels following the ViewModelView pattern. Generates test files first, then implementation files, using the viewModelComponent() wrapper and intent-based navigation. Components stay as thin rendering layers with no business logic or HTTP calls.

Enforces the ViewModelView pattern consistently across a team, preventing common mistakes like fetch() calls in components or mismatched filenames that break discoverability.

When to use it

  • Generating a form component with validation for a FOSMVVM app
  • Scaffolding a list view that composes child components via .bind()
  • Creating display-only cards from ViewModel properties
  • Migrating Leaf templates to React while preserving ViewModel alignment
  • Adding error ViewModel handling to an existing component

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Generate a TaskListView component that renders a TaskListViewModel with empty state and child TaskCard bindings

AGENT
  1. 1Identifies component category as list type from conversation context
  2. 2Generates TaskListView.test.js with tests for empty state, populated list, and child binding — tests fail at this stage
  3. 3Generates TaskListView.jsx using FOSMVVM.viewModelComponent() wrapper with isEmpty check and TaskCard.bind() calls
  4. 4Verifies both files exist and component accesses FOSMVVM from global namespace
OUTPUT

TaskListView.test.js and TaskListView.jsx written to src/components/Tasks/, ready for npm test