Skip to content
davila7 avatar

Avalonia Layout Zafiro

Guidelines for clean Avalonia layouts with Zafiro.Avalonia, favoring shared styles and flat XAML.

CCM score
57 of 100
skills.sh installs
188
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers theme organization, semantic containers, icon usage, behaviors, and generic reusable components
  • Includes a six-item checklist and anti-patterns such as hardcoded literals, deep Grid and StackPanel nesting, and IValueConverter misuse
  • Enforces DynamicResource for colors and brushes, plus extracting repeated layouts into generic components
  • Designed for Avalonia developers using Zafiro.Avalonia who want to minimize XAML redundancy

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/davila7/claude-code-templates
Categories
.NET & C#, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the avalonia-layout-zafiro skill do?

It gives guidance for modern Avalonia UI layouts built with Zafiro.Avalonia. It focuses on shared styles, generic components, semantic containers like HeaderedContainer and EdgePanel, and avoiding redundant XAML and nesting.

How do I install the avalonia-layout-zafiro skill?

Run npx -y skills add davila7/claude-code-templates --skill avalonia-layout-zafiro -y in your project. Once installed, the agent can use the skill's layout guidelines when working on Avalonia views.

Which tools does the avalonia-layout-zafiro skill use?

The skill's SKILL.md lists Read, Write, Edit, Glob and Grep as its allowed tools. It reads topic files such as themes.md, containers.md and components.md only when they match the layout task.

Where does avalonia-layout-zafiro sit in the .NET and C# category?

It is listed in the .NET and C# category on Claude Marketplaces. Other skills in that category include dotnet-backend-patterns, dotnet-best-practices and nuget-manager, and it covers Avalonia layout specifically.

More from davila7/claude-code-templates

All 398

Similar to Avalonia Layout Zafiro

More .NET & C#