OpenParable
Skip to content
← Back to skills

Avalonia UI Setup

Development
avalonia-ui-setup

Avalonia UI Setup is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/desktop-development/skills/avalonia-ui-setup/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/avalonia-ui-setup, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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

{
  "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

<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