avalonia-viewmodels-zafiro – Other skill for AI agents
Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI.
Install the avalonia-viewmodels-zafiro skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/avalonia-viewmodels-zafiro-4e68a.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /avalonia-viewmodels-zafiro – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/avalonia-viewmodels-zafiro-4e68a.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $avalonia-viewmodels-zafiro – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/avalonia-viewmodels-zafiro-4e68a.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /avalonia-viewmodels-zafiro – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/avalonia-viewmodels-zafiro-4e68a.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /avalonia-viewmodels-zafiro – then describe the task you want done.
SKILL.md 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.
Integration boundaries
Guide snippets omit imports, interfaces and application services; verify APIs/source-generator syntax against the installed Zafiro/ReactiveUI version. Do not mix field-based and partial-property generator styles without checking compatibility. Use one actual section registration method rather than assuming both are required. Keep the service provider alive for the app lifetime and dispose it and subscriptions on shutdown; handle wizard cancellation/failure before committing side effects. Angor files named below are external examples, not bundled prerequisites.
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
- skill-creator – Guide for creating effective skills. This skill should be used when users want to create…
- evm – Read-only EVM client: wallets, tokens, gas across 8 chains.
- hunt-mass-assignment – Hunt mass assignment via sensitive field injection and ORM framework exploitation.
- excalidraw – Hand-drawn Excalidraw JSON diagrams (arch, flow, seq).
- hunt-metrics-exposure – Hunt public /metrics, /health, and actuator endpoints leaking AI usage, DB pools, and…
- hybrid-search-implementation – Combine vector and keyword search for improved retrieval. Use when implementing RAG…
- transcribe – Transcribe audio files to text with optional diarization and known-speaker hints. Use…
- findmy – Track Apple devices/AirTags via FindMy.app on macOS.