avalonia-zafiro-development
Apply Avalonia Zafiro Development Conventions
This skill enforces mandatory conventions for Avalonia UI development with Zafiro toolkit, ensuring maintainable functional-reactive MVVM code that follows industry best practices.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "avalonia-zafiro-development". Write a ViewModel for a list of items that can be filtered and refreshed.
Resultado esperado:
A ViewModel using RefreshableCollection with DynamicData Connect/Filter/Transform operators, proper DisposeWith lifecycle management, and Zafiro validation rules.
Usando "avalonia-zafiro-development". Convert this error handling to use Result types.
Resultado esperado:
Code refactored to use CSharpFunctionalExtensions Result type with proper Success/Failure handling pipelines instead of exceptions for flow control.
Usando "avalonia-zafiro-development". Show the Zafiro shortcut for Replay(1).RefCount().
Resultado esperado:
Use ReplayLastActive() extension method from Zafiro.Reactive.ObservableMixin.
Auditoría de seguridad
SeguroAll static findings are false positives. This skill contains only markdown documentation for Avalonia UI development conventions. The flagged patterns (backtick execution, weak crypto, system reconnaissance) are triggered by markdown syntax and development terminology in documentation context, not actual executable code. No scripts, network calls, file system access, or environment variable usage present.
Patrones detectados
Puntuación de calidad
Lo que puedes crear
New Avalonia Project Setup
Apply Zafiro conventions when starting a new Avalonia UI project to establish proper architecture from the beginning.
Code Review and Refactoring
Use the skill to review existing code against Zafiro patterns and identify areas needing refactoring.
Learning Reactive Patterns
Reference the shortcuts and patterns when implementing DynamicData pipelines or reactive commands.
Prueba estos prompts
Apply the Avalonia Zafiro development conventions to review and improve this code. Focus on MVVM purity, DynamicData usage, and Zafiro helper methods.
Identify and fix reactive anti-patterns in this code using Zafiro best practices. Look for ad-hoc SourceList creation, logic in Subscribe, and improper operator usage.
Implement validation using Zafiro ValidationRule and extensions. Show the proper pattern for validating dynamic collections.
Apply RefreshableCollection pattern and DynamicData operators to optimize collection handling in this code.
Mejores prácticas
- Prefer DynamicData operators over plain Rx operators when working with collections
- Use Result types from CSharpFunctionalExtensions for error handling instead of exceptions
- Keep ViewModels strictly Avalonia-independent for cross-platform compatibility
Evitar
- Creating SourceList or SourceCache on the fly for local problems instead of using existing helpers
- Placing business logic inside Subscribe blocks instead of in the reactive pipeline
- Using plain System.Reactive operators when DynamicData equivalents exist
Preguntas frecuentes
What is Zafiro in Avalonia development?
Why use DynamicData over plain Rx?
What does pure MVVM mean in this context?
When should I use Result types?
What is RefreshableCollection?
How do I handle errors in reactive pipelines?
Detalles del desarrollador
Autor
sickn33Licencia
MIT
Repositorio
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/avalonia-zafiro-developmentRef.
main
Estructura de archivos