Skip to content

a5c-ai/babysitter / library/specializations/desktop-development/skills/avalonia-ui-setup

avalonia-ui-setup

Verified

Set up Avalonia UI project with cross-platform XAML for Windows, macOS, and Linux

FileKindSize
README.mdmarkdown511 B
SKILL.mdskill md1.9 KB
---
name: avalonia-ui-setup
description: Set up Avalonia UI project with cross-platform XAML for Windows, macOS, and Linux
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
tags: [avalonia, dotnet, cross-platform, xaml, ui]
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:desktop-development]
  skillAreas: [skill-area:desktop-ui-frameworks, skill-area:cross-platform-desktop]
  roles: [role:desktop-developer, role:fullstack-engineer]
  workflows: [workflow:feature-development, workflow:release-management]
---

# avalonia-ui-setup

Set up Avalonia UI project with cross-platform XAML for true cross-platform desktop development on Windows, macOS, and Linux with a single codebase.

## Capabilities

- Create Avalonia project structure
- Configure MVVM with ReactiveUI
- Set up platform-specific features
- Configure Fluent/Simple themes
- Set up native menu integration
- Configure build for all platforms
- Set up hot reload
- Generate platform-specific publishing

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "projectName": { "type": "string" },
    "theme": { "enum": ["fluent", "simple", "custom"] },
    "mvvmFramework": { "enum": ["reactiveui", "community-toolkit", "custom"] }
  },
  "required": ["projectPath", "projectName"]
}
```

## Project Structure

```
MyAvaloniaApp/
├── App.axaml
├── MainWindow.axaml
├── ViewModels/
├── Views/
├── Models/
└── Program.cs
```

## MainWindow.axaml

```xml
<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="My Avalonia App">
    <StackPanel>
        <TextBlock Text="{Binding Greeting}"/>
        <Button Command="{Binding ClickCommand}">Click Me</Button>
    </StackPanel>
</Window>
```

## Related Skills

- `wpf-xaml-style-generator`
- `cross-platform-test-matrix`
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall