$npx -y skills add SamarthaKV29/antigravity-god-mode --skill avalonia-zafiro-developmentMandatory skills, conventions, and behavioral rules for Avalonia UI development using the Zafiro toolkit.
| 1 | # Avalonia Zafiro Development |
| 2 | |
| 3 | 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. |
| 4 | |
| 5 | ## Core Pillars |
| 6 | |
| 7 | 1. **Functional-Reactive MVVM**: Pure MVVM logic using DynamicData and ReactiveUI. |
| 8 | 2. **Safety & Predictability**: Explicit error handling with `Result` types and avoidance of exceptions for flow control. |
| 9 | 3. **Cross-Platform Excellence**: Strictly Avalonia-independent ViewModels and composition-over-inheritance. |
| 10 | 4. **Zafiro First**: Leverage existing Zafiro abstractions and helpers to avoid redundancy. |
| 11 | |
| 12 | ## Guides |
| 13 | |
| 14 | - [Core Technical Skills & Architecture](core-technical-skills.md): Fundamental skills and architectural principles. |
| 15 | - [Naming & Coding Standards](naming-standards.md): Rules for naming, fields, and error handling. |
| 16 | - [Avalonia, Zafiro & Reactive Rules](avalonia-reactive-rules.md): Specific guidelines for UI, Zafiro integration, and DynamicData pipelines. |
| 17 | - [Zafiro Shortcuts](zafiro-shortcuts.md): Concise mappings for common Rx/Zafiro operations. |
| 18 | - [Common Patterns](patterns.md): Advanced patterns like `RefreshableCollection` and Validation. |
| 19 | |
| 20 | ## Procedure Before Writing Code |
| 21 | |
| 22 | 1. **Search First**: Search the codebase for similar implementations or existing Zafiro helpers. |
| 23 | 2. **Reusable Extensions**: If a helper is missing, propose a new reusable extension method instead of inlining complex logic. |
| 24 | 3. **Reactive Pipelines**: Ensure DynamicData operators are used instead of plain Rx where applicable. |