modular-desktop-mvvm

Implement modular Meridian WPF desktop changes with MVVM boundaries and focused tests.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/rodoHasArrived/Meridian-main --skill modular-desktop-mvvm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modular-desktop-mvvm
Source: https://github.com/rodoHasArrived/Meridian-main/tree/main/.codex/skills/modular-desktop-mvvm
Command: npx skills add https://github.com/rodoHasArrived/Meridian-main --skill modular-desktop-mvvm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents Meridian desktop WPF changes from becoming tightly coupled, hard to test, and resource-heavy by enforcing reusable MVVM boundaries across views, view models, and services.

Core Features & Use Cases

  • Modular MVVM implementation: Build desktop workstation features as reusable modules with clear ownership between view, view model, services, commands, DTO/read models, and tests.
  • Behavior-preserving workflow wiring: Add async orchestration with cancellation, duplicate-execution guards, progress, and recovery states while preserving routes, automation IDs, and operator-facing text.
  • Focused validation and testing: Prefer view-model and service tests that run without launching the UI, and verify critical bindings with narrow WPF test filters and an MVVM compliance check.

Quick Start

Use modular-desktop-mvvm to implement this Meridian WPF desktop change by turning the nearest screen logic into reusable MVVM primitives with focused view-model/service tests and resource-conscious behavior.

Frequently Asked Questions about modular-desktop-mvvm

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

FAQPage Schema
How do I keep WPF desktop workstation features modular and testable?

Apply MVVM boundaries by separating views, view models, and services into reusable seams. Move decisions, labels, and progress logic into view models or services so that core behavior can be validated through focused tests without launching the UI.

How do I add cancellable async orchestration to WPF view models?

Wire cancellable async orchestration directly in view models with duplicate-execution guards and recovery states. This preserves workflow routes and automation IDs while ensuring long-running commands do not block or trigger duplicate executions.

What is the best way to unit test WPF MVVM logic without launching the UI?

Prefer view-model and service tests that execute independently of the WPF visual tree. Validate critical bindings using narrow WPF test filters and run an MVVM compliance check to verify that logic remains decoupled from the view layer.

When do I need to refactor WPF screens into shared services and reusable view models?

Refactor when desktop workstation changes become tightly coupled or resource-heavy. Inventory the nearest WPF artifacts, extract the smallest reusable seam, and shift operator-facing text and workflow state into shared services or view models.

Does this MVVM approach work for modifying existing desktop shell workflows?

Yes, it applies to both new and changed desktop screens, commands, and shell workflow states. It preserves existing routes, automation IDs, and operator-facing text while introducing behavior-preserving async orchestration and resource-conscious management.

Why does my WPF command orchestration lack duplicate-execution guards?

Command orchestration needs explicit duplicate-execution guards wired during view-model construction. Without these guards, rapid operator interactions can trigger multiple overlapping async commands, causing resource contention and inconsistent workflow state.