react-vm

Define VM interfaces and layers for React UIs using Effect and Effect-Atom.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/front-depiction/claude-setup --skill react-vm
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: react-vm
Source: https://github.com/front-depiction/claude-setup/tree/main/skills/react-vm
Command: npx skills add https://github.com/front-depiction/claude-setup --skill react-vm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill introduces a reusable VM (View Model) pattern for React applications, enabling UI components to stay pure while VMs bridge domain services and UI layers.

Core Features & Use Cases

  • Architecture discipline: enforce UI logic separation by keeping formatting and derived state in VMs.
  • Composable layers: integrate with Effect and Effect-Atom to model state, services, and actions.
  • Testability: enable VM-first testing with mock services and scoped layers.

Quick Start

Define a VM for a component using the React VM pattern, wire it into a React component via the VM runtime, and write a small test that renders the VM with a mock service.

Frequently Asked Questions about react-vm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I separate domain logic from UI components in React?โ–ผ

To separate domain logic in React, use a View Model pattern to bridge domain services and UI layers, enforcing components to handle UI-only rendering while VMs manage formatting and derived state.

How do I test React state management logic without rendering components?โ–ผ

You can test state management logic without rendering by writing VM-first tests that inject mock services into scoped Effect layers, verifying the View Model behavior independently of the React component tree.

Does this React VM pattern work with Effect and Atom for state management?โ–ผ

Yes, this React VM pattern integrates with Effect and Effect-Atom to model application state, services, and actions through composable layers, bridging domain services directly to the UI.

What is a View Model pattern for React frontend architecture?โ–ผ

A View Model pattern for React is an architectural approach that turns domain inputs into UI-ready View Models, keeping UI components pure by moving formatting and derived state into a dedicated VM layer.

How do I wire a View Model into a React component?โ–ผ

To wire a View Model into a React component, define the VM interface, connect it through the VM runtime, and enforce the component to strictly handle UI-only rendering using the provided Effect layers.