davila7 avatar

Avalonia Layout Zafiro

This one's all about cleaning up Avalonia XAML using the Zafiro.Avalonia library. It pushes you toward semantic containers like HeaderedContainer and EdgePanel instead of manually nesting Borders and Grids everywhere. The skill includes a structured content map covering themes, icons, behaviors, and components, plus it references the Angor project as a working example. The core philosophy is clear: use shared styles, avoid converters when ViewModels can handle it, and stop repeating yourself in markup. If you're tired of maintaining bloated XAML files or you're adopting Zafiro specifically, this gives you the patterns and anti-patterns to keep layouts maintainable.

skills.sh installs
188
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill avalonia-layout-zafiro --agent claude-code

Installs into .claude/skills of the current project.

Files

Avalonia Layout with Zafiro.Avalonia

Master modern, clean, and maintainable Avalonia UI layouts. Focus on semantic containers, shared styles, and minimal XAML.

🎯 Selective Reading Rule

Read ONLY files relevant to the layout challenge!


πŸ“‘ Content Map

FileDescriptionWhen to Read
themes.mdTheme organization and shared stylesSetting up or refining app themes
containers.mdSemantic containers (HeaderedContainer, EdgePanel, Card)Structuring views and layouts
icons.mdIcon usage with IconExtension and IconOptionsAdding and customizing icons
behaviors.mdXaml.Interaction.Behaviors and avoiding ConvertersImplementing complex interactions
components.mdGeneric components and avoiding nestingCreating reusable UI elements

πŸ”— Related Project (Exemplary Implementation)

For a real-world example, refer to the Angor project: /mnt/fast/Repos/angor/src/Angor/Avalonia/Angor.Avalonia.sln


βœ… Checklist for Clean Layouts

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Frontend Development
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1charleswiltgen avataraxiom-swiftui-layout-refcharleswiltgen/axiomReference β€” Complete SwiftUI adaptive layout API guide covering ViewThatFits, AnyLayout, Layout protocol, onGeometryChange, GeometryReader, size classes, and iO187skills.sh installs
2oguzhan18 avatarangular-clioguzhan18/angular-ecosystem-skillsALWAYS use when working with Angular CLI, generating components, services, building applications, or workspace configuration in Angular projects.187skills.sh installs
3nexu-io avatarhtml-ppt-course-modulenexu-io/open-designA first-30-days onboarding module for new hospitality hires β€” the behaviors, the practice, the checks, and the manager follow-up. Built as a decision-grade prof186skills.sh installs
4nexu-io avatarhtml-ppt-obsidian-claude-gradientnexu-io/open-designGitHub ζš—η΄«ζΈε˜ deck β€” GitHub-dark186skills.sh installs
5nexu-io avatarhtml-ppt-hermes-cyber-terminalnexu-io/open-designζš—η»ˆη«― honest-review deck β€”185skills.sh installs
6oguzhan18 avatarangular-httpoguzhan18/angular-ecosystem-skillsALWAYS use when working with Angular HttpClient, HTTP requests, interceptors, error handling, or API communication in Angular applications.185skills.sh installs