MR
Mayur Rathi
@mayurrathi
⭐ 40.7k GitHub stars

Avalonia Viewmodels Zafiro

Avalonia Viewmodels Zafiro is an code AI skill with a core value of Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

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

Last verified on: 2026-07-08

Quick Facts

Category code
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 40.7k
Last Verified 2026-07-08
Risk Level Low
mkdir -p ./skills/avalonia-viewmodels-zafiro && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/avalonia-viewmodels-zafiro/SKILL.md -o ./skills/avalonia-viewmodels-zafiro/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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](viewmodels.md): Creating robust ViewModels and handling commands.

- [Wizards & Flows](wizards.md): Building multi-step wizards with `SlimWizard`.

- [Navigation & Sections](navigation_sections.md): Managing navigation and section-based UIs.

- [Composition & Mapping](composition.md): 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.

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • Software engineers
  • Development teams

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • React component optimization
  • Hook dependency audits

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Avalonia Viewmodels Zafiro to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Is Avalonia Viewmodels Zafiro compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Avalonia Viewmodels Zafiro?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Avalonia Viewmodels Zafiro?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/avalonia-viewmodels-zafiro/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills