avalonia-viewmodels-zafiro
Implements optimal patterns for Avalonia ViewModels, multi-step wizards, and navigation using ReactiveUI and Zafiro.
Install
mkdir -p .claude/skills/avalonia-viewmodels-zafiro && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/7917" && unzip -o skill.zip -d .claude/skills/avalonia-viewmodels-zafiro && rm skill.zipInstalls to .claude/skills/avalonia-viewmodels-zafiro
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI.Key capabilities
- →Create reactive ViewModels
- →Implement multi-step wizard flows
- →Manage UI navigation logic
- →Register UI sections automatically
How it works
Uses ReactiveUI for state management and Zafiro patterns for declarative wizard flows and automatic section discovery.
Inputs & outputs
When to use avalonia-viewmodels-zafiro
- →Create reactive ViewModels
- →Implement multi-step wizard flows
- →Manage UI navigation logic
- →Register UI sections automatically
About this skill
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
- Functional-Reactive Approach: Use ReactiveUI (
ReactiveObject,WhenAnyValue, etc.) to handle state and logic. - Enhanced Commands: Utilize
IEnhancedCommandfor better command management, including progress reporting and name/text attributes. - Wizard Pattern: Implement complex flows using
SlimWizardandWizardBuilderfor a declarative and maintainable approach. - Automatic Section Discovery: Use the
[Section]attribute to register and discover UI sections automatically. - Clean Composition: map ViewModels to Views using
DataTypeViewLocatorand manage dependencies in theCompositionRoot.
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 not to use it
- →Simple single-view applications
Prerequisites
Limitations
- →Requires Avalonia UI framework
- →Dependent on Zafiro toolkit
How it compares
Provides a functional-reactive architecture for Avalonia compared to standard imperative UI patterns.
Compared to similar skills
avalonia-viewmodels-zafiro side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| avalonia-viewmodels-zafiro (this skill) | 0 | 6mo | No flags | Intermediate |
| dotnet-blazor | 0 | 3mo | No flags | Intermediate |
| orchardcore-theme-creator | 1 | 6mo | Review | Beginner |
| csharp-developer | 43 | 2mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by davila7
View all by davila7 →You might also like
dotnet-blazor
managedcode
Build and review Blazor applications across server, WebAssembly, web app, and hybrid scenarios with correct component design, state flow, rendering, and hosting choices.
orchardcore-theme-creator
OrchardCMS
Creates new OrchardCore themes with proper structure, manifest, layouts, and assets. Use when the user needs to create a new theme, customize layouts, or set up frontend assets.
csharp-developer
zenobi-us
Expert C# developer specializing in modern .NET development, ASP.NET Core, and cloud-native applications. Masters C# 12 features, Blazor, and cross-platform development with emphasis on performance and clean architecture.
csharp-pro
sickn33
Write modern C# code with advanced features like records, pattern matching, and async/await. Optimizes .NET applications, implements enterprise patterns, and ensures comprehensive testing. Use PROACTIVELY for C# refactoring, performance optimization, or complex .NET solutions.
performance-benchmark
dotnet
Generate and run ad hoc performance benchmarks to validate code changes. Use this when asked to benchmark, profile, or validate the performance impact of a code change in dotnet/runtime.
dotnet-backend-patterns
wshobson
Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.