技能 编程开发 Avalonia Zafiro 开发规范

Avalonia Zafiro 开发规范

v20260509
avalonia-zafiro-development
本技能集定义了使用 Avalonia UI 和 Zafiro 工具包进行开发时必须遵循的核心开发规范和行为准则。它指导开发者采用功能-反应式 MVVM 架构,强调代码的可维护性、可预测性,并要求优先使用 Zafiro 的抽象层,确保构建高质量的跨平台应用程序。
获取技能
138 次下载
概览

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.

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.
信息
Category 编程开发
Name avalonia-zafiro-development
版本 v20260509
大小 5.31KB
更新时间 2026-05-10
语言