Claude Code skill for structuring an AvaloniaUI solution
Plan project boundaries for core code, abstractions, view models, and the AvaloniaUI application so ordinary .NET tests can cover the business logic.
中文Install in Claude Code
Use Claude Code to plan a new AvaloniaUI solution. Have the .NET SDK and project templates available, with a small independent domain use case for the first test.
- Review `.claude/skills/structuring-avalonia-projects/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/structuring-avalonia-projects/` in your project and save the reviewed file as `.claude/skills/structuring-avalonia-projects/SKILL.md`.
- Start Claude Code from that project's root, then select `/structuring-avalonia-projects` in the slash menu.
Example task
Design a small trail duration logger. Put minute formatting in pure C# Core, define a replaceable read interface, and expose display text in ViewModels for AvaloniaUI.
`TrailLog.Core` · `TrailLog.Abstractions` · `TrailLog.ViewModels` · `TrailLog.AvaloniaApp`What to check
The project map includes `TrailLog.Core` and `TrailLog.Core.Tests`. A core formatting test can check that `90` minutes produces `1 h 30 min` without loading the UI.
Original SKILL.md on GitHub · Updated
Frequently asked question
Which project should own a replaceable read interface?
Define the interface in Abstractions and supply its implementation at application startup. Verify domain computation directly in the core test project.