Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
sickn33 avatar

Avalonia Viewmodels Zafiro

  • 544 installs
  • 44k repo stars
  • Updated July 27, 2026
  • sickn33/antigravity-awesome-skills

Avalonia-viewmodels-zafiro is an agent skill that wires Avalonia desktop UI to Zafiro ViewModels with DataTypeViewLocator, DI composition roots, and scoped ViewModel registration so developers who build .NET desktop apps

About

Avalonia-viewmodels-zafiro is a .NET desktop development skill for Zafiro on Avalonia. It documents registering DataTypeViewLocator in App.axaml, including Zafiro data templates, and setting up dependency-injection composition roots with scoped ViewModel lifetimes so each view resolves the correct ViewModel by type. Developers reach for avalonia-viewmodels-zafiro when Avalonia screens fail to resolve views, DI scopes leak state, or ViewModel-to-View conventions need alignment with Zafiro naming patterns.

  • Registers DataTypeViewLocator in App.axaml for automatic ViewModel-to-View mapping by data type
  • Includes Zafiro.Avalonia DataTemplateInclude for shared framework templates
  • Defines a CompositionRoot that builds ServiceCollection, AddViewModels, AddUIServices, and resolves IShellViewModel
  • Shows ViewModel DI registration with Transient, Scoped, or Singleton lifetimes
  • Documents naming conventions and source-generator registration patterns used in Zafiro projects

Avalonia Viewmodels Zafiro by the numbers

  • 544 all-time installs (skills.sh)
  • +2 installs in the week ending Jul 27, 2026 (Skillselion tracking)
  • Ranked #27 of 154 .NET & C# skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill avalonia-viewmodels-zafiro

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs544
repo stars44k
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositorysickn33/antigravity-awesome-skills

How do you map Avalonia views to Zafiro ViewModels?

Wire Avalonia desktop UI to Zafiro ViewModels with DataTypeViewLocator, DI composition root, and scoped ViewModel registration.

Who is it for?

C# developers building Avalonia desktop apps with the Zafiro toolkit who need reliable ViewModel resolution and DI wiring.

Skip if: WPF-only apps, MAUI mobile projects, or Avalonia apps without the Zafiro ViewModel conventions.

When should I use this skill?

A developer sets up Zafiro ViewModels, DataTypeViewLocator, or DI scopes in a new Avalonia desktop project.

What you get

App.axaml DataTypeViewLocator setup, ViewModel-to-View mappings, and DI composition root with scoped registrations.

  • App.axaml locator config
  • DI registration pattern
  • ViewModel mapping setup

Files

SKILL.mdMarkdownGitHub ↗

Avalonia ViewModels with Zafiro

This skill provides a set of best practices and patterns for creating ViewModels, Wizards, and managing navigation in Avalonia applications, leveraging the power of ReactiveUI and the Zafiro toolkit.

Core Principles

1. Functional-Reactive Approach: Use ReactiveUI (ReactiveObject, WhenAnyValue, etc.) to handle state and logic. 2. Enhanced Commands: Utilize IEnhancedCommand for better command management, including progress reporting and name/text attributes. 3. Wizard Pattern: Implement complex flows using SlimWizard and WizardBuilder for a declarative and maintainable approach. 4. Automatic Section Discovery: Use the [Section] attribute to register and discover UI sections automatically. 5. Clean Composition: map ViewModels to Views using DataTypeViewLocator and manage dependencies in the CompositionRoot.

Guides

  • ViewModels & Commands: Creating robust ViewModels and handling commands.
  • Wizards & Flows: Building multi-step wizards with SlimWizard.
  • Navigation & Sections: Managing navigation and section-based UIs.
  • Composition & Mapping: Best practices for View-ViewModel wiring and DI.

Example Reference

For real-world implementations, refer to the Angor project:

  • CreateProjectFlowV2.cs: Excellent example of complex Wizard building.
  • HomeViewModel.cs: Simple section ViewModel using functional-reactive commands.

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Related skills

How it compares

Choose avalonia-viewmodels-zafiro for Zafiro-specific Avalonia MVVM wiring; use general Avalonia docs for apps not using Zafiro conventions.

FAQ

How does avalonia-viewmodels-zafiro map views to ViewModels?

Avalonia-viewmodels-zafiro uses Zafiro's DataTypeViewLocator in App.axaml so Avalonia automatically selects Views based on each ViewModel's CLR type, following project naming conventions.

Where is DataTypeViewLocator registered?

Avalonia-viewmodels-zafiro registers DataTypeViewLocator inside Application.DataTemplates in App.axaml alongside Zafiro.Avalonia DataTemplateInclude sources for shared templates.

Is Avalonia Viewmodels Zafiro safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

.NET & C#frontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.