uno-mvux-commands

Convert public Model methods into MVUX ViewModel commands.

9|1|Updated Dec 10, 2024
One-click install
npx skills add https://github.com/unoplatform/studio --skill uno-mvux-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uno-mvux-commands
Source: https://github.com/unoplatform/studio/tree/main/plugins/uno-platform-studio/skills/uno-mvux-commands
Command: npx skills add https://github.com/unoplatform/studio --skill uno-mvux-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MVUX allows public methods on a Model to automatically become commands in the generated ViewModel; this skill helps manage and customize that behavior for predictable, testable UI command logic.

Core Features & Use Cases

  • Automatic generation of commands from Model methods.
  • Support for implicit/explicit command configuration and feed/state parameter injection.
  • Guidance on can-execute logic and disabling generation with [ImplicitCommands].

Quick Start

Use this skill to map a Model method named Save to a command named Save in the ViewModel.

Frequently Asked Questions about uno-mvux-commands

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

FAQPage Schema
How do I automatically generate commands from MVUX Model methods?

Automatic command generation in MVUX converts public Model methods into commands within the generated ViewModel. This Skill guides configuration for predictable, testable UI command logic without manual boilerplate.

How does can-execute logic work with MVUX implicit commands?

Can-execute logic for MVUX implicit commands manages UI interaction availability based on application state. The Skill helps implement this logic alongside feed and state parameter injection for generated commands.

How do I disable implicit command generation for an MVUX Model?

Disable implicit command generation by applying the [ImplicitCommands] attribute to your MVUX Model. This restricts automatic command creation, requiring explicit command configuration instead.

Can I inject feed and state parameters into generated MVUX commands?

Feed and state parameter injection is supported for generated MVUX commands. The Skill guides mapping Model methods to commands while ensuring only writable types are mutated across UI interactions.

What is the difference between implicit and explicit commands in MVUX?

Implicit commands in MVUX are generated automatically from public Model methods, while explicit commands require manual configuration. The Skill helps manage both approaches for customized ViewModel command behavior.