Create Entity ViewModel

Generate Entity ViewModel scaffolds with MobX and label converters.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/biggs3d/Tools --skill create-entity-viewmodel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Create Entity ViewModel
Source: https://github.com/biggs3d/Tools/tree/main/.ai-guidance/.claude/skills/create-entity-viewmodel
Command: npx skills add https://github.com/biggs3d/Tools --skill create-entity-viewmodel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates scaffolding of an Entity ViewModel with appropriate property VMs, label converters, and MobX support to rapidly expose data models in UI.

Core Features & Use Cases

  • Determine the correct base class (EntityViewModel, GeoEntityBaseVM, etc.) based on model.
  • Create property VMs mapping to ValueProperty, CommandedProperty, and related patterns.
  • Add enum label converters and ensure MobX support with makeObservable.

Quick Start

Generate an Entity ViewModel for a given model, including property VMs and enum converters. Example: "Create OrderEntityViewModel with status and totalVM."

Frequently Asked Questions about Create Entity ViewModel

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

FAQPage Schema
How do I generate a complete Entity ViewModel with property VMs and MobX support?

Entity ViewModel generation automates scaffold creation by selecting the appropriate base class (EntityViewModel, GeoEntityBaseVM, or GeoPointBaseVM), mapping each model property to corresponding property VMs, adding enum label converters, and enforcing makeObservable() initialization to expose data models in UI with full MobX reactivity.

What's the difference between EntityViewModel, GeoEntityBaseVM, and GeoPointBaseVM base classes?

Base class selection depends on your model type: EntityViewModel for standard data models, GeoEntityBaseVM for models with geographic properties, and GeoPointBaseVM for geographic point-specific entities. The Skill automatically determines the correct base class during scaffold generation.

How do property VMs and label converters work in Phoenix MVVM patterns?

Property VMs wrap model properties with UI-specific logic using ValueProperty and CommandedProperty patterns, while label converters format enum values for display. The Skill generates both, applies @computed where appropriate, and ensures MobX observability through makeObservable() in the constructor.

Can I use Entity ViewModel scaffolding to wrap existing data models?

Yes. Entity ViewModel generation handles both new model creation and wrapping existing models with UI logic. It maps existing model properties to property VMs, adds converters for enum types, and updates barrel exports automatically.

What property types does Entity ViewModel scaffolding support?

The Skill supports a variety of property types including geographic properties, enum properties with label converters, ValueProperty and CommandedProperty patterns. It applies type mappings for each property and enforces @computed usage where appropriate.

Does Entity ViewModel generation update barrel exports automatically?

Yes. Barrel export updates are included in the scaffold generation process, ensuring the generated ViewModel, property VMs, and converters are properly exported and discoverable within your module structure.