Back to Skill Hub
Download Skill Package

System Prompt / Instructions

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.

Frequently Asked Questions

What is avalonia-viewmodels-zafiro?

avalonia-viewmodels-zafiro is an expert AI persona designed to improve your coding workflow. Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI. It provides senior-level context directly within your IDE.

How do I install the avalonia-viewmodels-zafiro skill in Cursor or Windsurf?

To install the avalonia-viewmodels-zafiro skill, download the package, extract the files to your project's .cursor/skills directory, and type @avalonia-viewmodels-zafiro in your editor chat to activate the expert instructions.

Is avalonia-viewmodels-zafiro free to download?

Yes, the avalonia-viewmodels-zafiro AI persona is completely free to download and integrate into compatible Agentic IDEs like Cursor, Windsurf, Github Copilot, and Anthropic MCP servers.

@

avalonia-viewmodels-zafiro

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

Download Skill Package

IDE Invocation

@avalonia-viewmodels-zafiro
COPY

Platform

IDE Native

Price

Free Download

Setup Instructions

Cursor & Windsurf

  1. Download the zip file above.
  2. Extract to .cursor/skills
  3. Type @avalonia-viewmodels-zafiro in editor chat.

Copilot & ChatGPT

Copy the instructions from the panel on the left and paste them into your custom instructions setting.

"Adding this avalonia-viewmodels-zafiro persona to my Cursor workspace completely changed the quality of code my AI generates. Saves me hours every week."

A
Alex Dev
Senior Engineer, TechCorp