avalonia

avalonia is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 101 tokens per session (1,643 once invoked), scanned A, original, MIT.

A development guide for Avalonia 11 and 12, a .NET framework for building desktop and cross-platform user interfaces. It covers XAML views, data binding, MVVM, custom controls, application lifetimes, and publishing.

In plain words
What is it for?
It is for building or debugging Avalonia applications, including views, commands, themes, platform publishing, trimming, and Native AOT. It does not apply to WPF, WinUI, MAUI, Uno, or Avalonia XPF compatibility work.
Why use it?
Avalonia versions and application targets have different APIs and startup patterns. The guide helps avoid incompatible packages, incorrect bindings, and UI updates from the wrong thread.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for building or debugging Avalonia applications, including views, commands, themes, platform publishing, trimming, and Native AOT. It does not apply to WPF, WinUI, MAUI, Uno, or Avalonia XPF compatibility work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/avalonia
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add managedcode/dotnet-skills --skill avalonia
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for avalonia

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/avalonia/github.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/avalonia)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/avalonia"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/avalonia/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for avalonia

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/avalonia"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/avalonia.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,643 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.01643
Opus 5.5 $0.00040 $0.00657
Sonnet 5.5 $0.00020 $0.00329
Haiku 4.5 $0.00010 $0.00164

Measured 1mo ago against content hash 9dce77b6314e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

avalonia scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

catalog/Frameworks/Avalonia/skills/avalonia/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Avalonia

Workflow

  1. Inspect the SDK, target frameworks, Avalonia package versions, .axaml files, entrypoint, and supported OS/RIDs. Keep Avalonia packages on one compatible version. Use the Avalonia 12 docs for 12 and the Avalonia 11 docs for 11; do not copy 12-only APIs into 11.
  2. Keep Program.BuildAvaloniaApp, App.axaml, views, view models, and domain/services separate. Desktop hosts use StartWithClassicDesktopLifetime and create MainWindow in OnFrameworkInitializationCompleted; single-view targets require their own lifetime. The previewer can have no application lifetime.
  3. Use typed compiled bindings and explicit binding modes. x:DataType describes the binding type; it does not set the runtime DataContext. Avalonia 12 enables compiled bindings by default; explicitly enable them on 11. Read references/bindings-and-controls.md for templates, properties, resources, and command patterns.
  4. Use CommunityToolkit.Mvvm for observable state and commands when appropriate. Prefer cancellable asynchronous service operations, surface errors, and marshal background updates to the UI dispatcher. Keep services independent of controls.
  5. Choose StyledProperty for styleable/animatable values and DirectProperty for backed state without style precedence. Use DataTemplate to display data and ControlTemplate/ControlTheme to change a control's visual structure. Use UserControl for application composition, TemplatedControl for reusable skinnable controls, and custom rendering only when needed.
  6. Validate native integrations, dialogs, resources, shutdown, DPI, accessibility, and packaging on each supported platform. Read references/platforms-and-publishing.md before trimming or Native AOT. Read the documentation map only for the selected topic.
flowchart LR
  Packages[Installed Avalonia major] --> Docs[Matching 11 or 12 documentation]
  Docs --> VM[View model and service]
  VM --> Bindings[Typed bindings and commands]
  Bindings --> UI[Views, templates, property system]
  UI --> Desktop[Desktop lifetime and UI dispatcher]
  Desktop --> Verify[Headless tests + native OS checks]
  Verify --> Publish[RID-specific publish and packaging]

Read the full file on GitHub · 125 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 125 lines · 101 tokens per session scan A 9dce77b6314e

Subscribe to this mod's changes

avalonia is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 101 tokens to every session and 1,643 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.

Related

avalonia compared with skills from other repositories

avalonia next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
avaloniamanagedcode/dotnet-skillsSkill52716d agoMITA101Claude Code, Codex
clean-architecture-dotnetSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A50Claude Code, Codex
creating-dotnet-mcp-serversSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A43Claude Code, Codex
dotnetAterDev/Perigon.CLISkill544d agoApache-2.0A61Claude Code, Codex
blazorAterDev/Perigon.CLISkill544d agoApache-2.0A45Claude Code, Codex
cliAterDev/Perigon.CLISkill544d agoApache-2.0A52Claude Code, Codex
codegenAterDev/Perigon.CLISkill544d agoApache-2.0A53Claude Code, Codex