MR
Mayur Rathi
@mayurrathi
⭐ 40.7k GitHub stars

Avalonia Layout Zafiro

Avalonia Layout Zafiro is an design AI skill with a core value of Guidelines for modern Avalonia UI layout using Zafiro. It helps developers solve real-world problems in the design domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Guidelines for modern Avalonia UI layout using Zafiro.Avalonia, emphasizing shared styles, generic components, and avoiding XAML redundancy.

Last verified on: 2026-07-08

Quick Facts

Category design
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 40.7k
Last Verified 2026-07-08
Risk Level Low
mkdir -p ./skills/avalonia-layout-zafiro && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/avalonia-layout-zafiro/SKILL.md -o ./skills/avalonia-layout-zafiro/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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


| File | Description | When to Read |

|------|-------------|--------------|

| `themes.md` | Theme organization and shared styles | Setting up or refining app themes |

| `containers.md` | Semantic containers (`HeaderedContainer`, `EdgePanel`, `Card`) | Structuring views and layouts |

| `icons.md` | Icon usage with `IconExtension` and `IconOptions` | Adding and customizing icons |

| `behaviors.md` | `Xaml.Interaction.Behaviors` and avoiding Converters | Implementing complex interactions |

| `components.md` | Generic components and avoiding nesting | Creating 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


- [ ] **Used semantic containers?** (e.g., `HeaderedContainer` instead of `Border` with manual header)

- [ ] **Avoided redundant properties?** Use shared styles in `axaml` files.

- [ ] **Minimized nesting?** Flatten layouts using `EdgePanel` or generic components.

- [ ] **Icons via extension?** Use `{Icon fa-name}` and `IconOptions` for styling.

- [ ] **Behaviors over code-behind?** Use `Interaction.Behaviors` for UI-logic.

- [ ] **Avoided Converters?** Prefer ViewModel properties or Behaviors unless necessary.


---


❌ Anti-Patterns


**DON'T:**

- Use hardcoded colors or sizes (literals) in views.

- Create deep nesting of `Grid` and `StackPanel`.

- Repeat visual properties across multiple elements (use Styles).

- Use `IValueConverter` for simple logic that belongs in the ViewModel.


**DO:**

- Use `DynamicResource` for colors and brushes.

- Extract repeated layouts into generic components.

- Leverage `Zafiro.Avalonia` specific panels like `EdgePanel` for common UI patterns.


When to Use

This skill is applicable to execute the workflow or actions described in the overview.

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • Designers
  • Creative professionals

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • Design system documentation
  • Component specification creation

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Avalonia Layout Zafiro to Your Work

    Provide context for your task — paste source material, describe your audience, or share existing work to guide the AI.

  4. 4

    Review and Refine

    Edit the AI output for accuracy, tone, and completeness. Add human insight where the AI lacks context.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Does Avalonia Layout Zafiro generate production-ready design specs?

It generates detailed specifications that developers can use directly. Review and adjust for your specific design system.

How do I install Avalonia Layout Zafiro?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/avalonia-layout-zafiro/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Not reading the full skill

Skills contain important context and edge cases beyond the quick start.

🔗 Related Skills