Agent Skills: Avalonia Zafiro Development

Mandatory skills, conventions, and behavioral rules for Avalonia UI development using the Zafiro toolkit.

UncategorizedID: davila7/claude-code-templates/avalonia-zafiro-development

Install this agent skill to your local

pnpm dlx add-skill https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/avalonia-zafiro-development

Skill Files

Browse the full folder contents for avalonia-zafiro-development.

Download Skill

Loading file tree…

cli-tool/components/skills/development/avalonia-zafiro-development/SKILL.md

Skill Metadata

Name
avalonia-zafiro-development
Description
Mandatory skills, conventions, and behavioral rules for Avalonia UI development using the Zafiro toolkit.

Avalonia Zafiro Development

This skill defines the mandatory conventions and behavioral rules for developing cross-platform applications with Avalonia UI and the Zafiro toolkit. These rules prioritize maintainability, correctness, and a functional-reactive approach.

Core Pillars

  1. Functional-Reactive MVVM: Pure MVVM logic using DynamicData and ReactiveUI.
  2. Safety & Predictability: Explicit error handling with Result types and avoidance of exceptions for flow control.
  3. Cross-Platform Excellence: Strictly Avalonia-independent ViewModels and composition-over-inheritance.
  4. Zafiro First: Leverage existing Zafiro abstractions and helpers to avoid redundancy.

Guides

Procedure Before Writing Code

  1. Search First: Search the codebase for similar implementations or existing Zafiro helpers.
  2. Reusable Extensions: If a helper is missing, propose a new reusable extension method instead of inlining complex logic.
  3. Reactive Pipelines: Ensure DynamicData operators are used instead of plain Rx where applicable.