app-ui-mvvm

Implement MVVM and Dependency Injection for Unity App UI with bindings.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/IAFahim/com.unity.dt.app-ui --skill app-ui-mvvm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: app-ui-mvvm
Source: https://github.com/IAFahim/com.unity.dt.app-ui/tree/main/Plugins~/skills/app-ui-mvvm
Command: npx skills add https://github.com/IAFahim/com.unity.dt.app-ui --skill app-ui-mvvm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity developers often struggle to implement robust UI with MVVM patterns, data binding, and Dependency Injection in App UI, leading to boilerplate code and fragile lifecycles.

Core Features & Use Cases

  • MVVM pattern and DI integration for Unity App UI
  • ObservableProperty and RelayCommand support for clean ViewModel code
  • AppBuilder-based app configuration and service registration
  • Data binding for UXML and programmatic bindings, enabling dynamic UI updates
  • Lifecycle hooks via IDependencyInjectionListener to initialize after injection
  • Support for DI lifetimes (Singleton, Transient, Scoped) and service injection patterns

Quick Start

Describe your UI scenario and I will scaffold a MVVM-enabled Unity App UI, register services, and bind a ViewModel to a View using Data Binding.

Frequently Asked Questions about app-ui-mvvm

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

FAQPage Schema
How do I implement MVVM and data binding in Unity App UI?

To implement MVVM and data binding in Unity App UI, you need to configure AppBuilder for dependency injection and bind ViewModels to Views using ObservableProperty and UXML data bindings.

What's the best way to configure dependency injection lifetimes for Unity App UI ViewModels?

Configuring dependency injection lifetimes for Unity App UI ViewModels is done via AppBuilder service registration, which supports Singleton, Transient, and Scoped lifetimes to manage service injection patterns.

How do I initialize a ViewModel after dependency injection in Unity App UI?

To initialize a ViewModel after dependency injection in Unity App UI, implement the IDependencyInjectionListener interface to trigger post-injection lifecycle hooks safely.

Can I use RelayCommand and ObservableProperty without writing boilerplate in Unity?

Yes, you can use RelayCommand and ObservableProperty in Unity to enable clean ViewModel code, replacing fragile lifecycles and manual boilerplate with structured data binding.

Does Unity App UI support binding ViewModels directly to UXML files?

Unity App UI supports binding ViewModels directly to UXML files, enabling dynamic UI updates through both UXML-defined and programmatic data bindings.