Skip to content
Skillpedia
Interfaces (UI/UX)48k · #2233

avalonia-viewmodels-zafiro

Shows the best ways to create the parts that control the screen and workflows in Avalonia programs. Uses modern patterns.

What it does

This tool helps organize and create parts of desktop applications (called ViewModels and Wizards) using recommended patterns. It simplifies building multi-step workflows and in-app navigation.

When to use it

  • ✓When building a new graphical application.
  • ✓When you need a multi-step workflow (like an installation wizard).
  • ✓To better organize your application's code.

Example of what to ask your AI

“How can I create an installation wizard for my application using recommended patterns?”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/avalonia-viewmodels-zafiro/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/avalonia-viewmodels-zafiro/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

It uses libraries like ReactiveUI and Zafiro to define how user data and actions connect to the interface. This allows for smarter commands and organized step-by-step workflows.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add sickn33/agentic-awesome-skills --skill avalonia-viewmodels-zafiro

Or download just the file:

curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/avalonia-viewmodels-zafiro/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

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.
FAQ

What is a ViewModel?

It's a piece of code that manages the data and logic for a user interface screen or component.

What is a Wizard?

It's a sequence of screens or steps that guide a user through a process, like setting up software.

What is ReactiveUI?

It's a library that helps create more responsive and manageable user interfaces using a reactive programming style.

Details

Original description by the author

Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI.

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#2233
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills