mobile-dotnet-maui
Use when the user asks about .NET MAUI apps, MAUI Shell navigation, MVVM with CommunityToolkit, data binding, CollectionView, handlers or migrating from…
от j4flmao★ 47 звёзд на GitHub
Установить mobile-dotnet-maui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Mobile .NET MAUI
Purpose
Guide for building cross-platform mobile apps with .NET MAUI using MVVM, Shell navigation, and platform-specific customization.
Agent Protocol
Trigger
Phrases: ".NET MAUI", "MAUI app", "Xamarin", "MAUI Shell", "MAUI page", "MAUI MVVM", "MAUI data binding", "MAUI collection view"
Input Context
- Target platforms (Android, iOS, Windows, macOS)
- Pages and navigation structure
- Data models and service interfaces
- Required platform-specific features
Output Artifact
MAUI solution with: AppShell, Pages with ViewModels, Services, Platform-specific code in Platforms/ folder, CommunityToolkit.Mvvm integration.
Response Format
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- AppShell navigation works on all targets
- MVVM bindings resolve without code-behind
- CollectionView renders with DataTemplate
- Platform-specific code compiles under correct target
- App deploys and runs on iOS simulator and Android emulator
Max Response Length
8000 tokens
Architecture Decision Trees
Shell vs NavigationPage
App navigation structure?
├── Tab bar + flyout menu → Shell (FlyoutItem, TabBar, Tab)
│ Pros: Built-in navigation bar, flyout, tabs, search, back behavior
├── Simple stack navigation → NavigationPage
│ Push/pop modal stack, simpler API
└── Tabbed app without flyout → TabbedPage
Simpler than Shell, but less flexible
MVVM Framework
Team preference?
├── CommunityToolkit.Mvvm → Source generators, [ObservableProperty], [RelayCommand]
│ Pros: Minimal boilerplate, compile-time binding validation
├── Prism.Maui → Full MVVM framework, navigation service, DI integration
│ Pros: Navigation service, regions, platform service abstraction
└── Manual INotifyPropertyChanged → Lightweight, no dependency
Cons: More code, no source generators
Platform-Specific Code Strategy
Volume of platform code?
├── Small (1-5 specialized views) → #if ANDROID / #if IOS preprocessor
├── Medium → Platform handlers in MauiProgram.cs ConfigureMauiHandlers
│ Preferred approach — maps cross-platform properties to native views
└── Large → Conditional compilation with partial class files per platform
Use Platforms/Android/, Platforms/iOS/ folders for large blocks
Workflow
MAUI project architecture — .NET MAUI uses a single-project structure targeting Android, iOS, Windows, and macOS from one codebase. Solution layout:
App.xaml(global styles, resource dictionaries, theme definitions),AppShell.xaml(navigation container with flyout/tabs),Pages/(XAML views with code-behind minimal),ViewModels/(business logic with CommunityToolkit.Mvvm),Models/(data entities, DTOs),Services/(interfaces + implementations registered in DI),Resources/(colors, fonts, images, styles),Platforms/(Android with MainActivity/MainApplication/AndroidManifest, iOS with AppDelegate/Info.plist, Windows, Mac).MauiProgram.csconfigures the app builder, registers services, and sets up handlers.Shell navigation — Shell provides flyout (hamburger menu) and TabBar (bottom tabs) navigation containers. Define structure in
AppShell.xaml:FlyoutItemfor menu items,TabBarfor bottom navigation,ShellContentfor pages. Register detail routes withRouting.RegisterRoute("route/name", typeof(Page))in AppShell constructor. Navigate viaShell.Current.GoToAsync("route/name?param=value"). Receive parameters with[QueryProperty(nameof(Param), "param")]attribute orIQueryAttributableinterface. Handle navigation events viaShell.Current.Navigatedevent. Shell provides built-in back button behavior, search handlers, and flyout customization (header template, icon, content templates).MVVM with CommunityToolkit.Mvvm — ViewModel base class
ObservableObjectfrom CommunityToolkit.Mvvm. Source generators[ObservableProperty](auto-generates INotifyPropertyChanged),[RelayCommand](auto-generates IRelayCommand from method),[NotifyPropertyChangedFor](notify dependent property on change). Data binding in XAML via{Binding Property}expressions.x:DataTypefor compile-time binding validation. Converters for value transformations (IValueConverter). ViewModel registered as transient in DI — new instance per navigation. Constructor injection for services. Messenger pattern (WeakReferenceMessenger) for cross-ViewModel communication.XAML and data binding — XAML markup extensions:
{Binding},{StaticResource},{DynamicResource},{TemplateBinding},{RelativeSource}. Compiled bindings enabled withx:DataTypeon page/control level — compile-time errors for invalid paths.x:Arrayandx:Staticfor static resources. Data templates for item rendering. Control templates for custom control structure. Styles in ResourceDictionary withBasedOn,TargetType,Setter. Triggers:DataTrigger
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/dotnet-maui-advanced.md
- references/dotnet-maui-fundamentals.md
- references/maui-architecture.md
- references/maui-controls.md
- references/maui-mvvm.md
- references/maui-structure.md
FAQ
Что делает скилл mobile-dotnet-maui?
Use when the user asks about .NET MAUI apps, MAUI Shell navigation, MVVM with CommunityToolkit, data binding, CollectionView, handlers or migrating from Xamarin.Forms. Produces cross-platform C#/XAML app structure, platform code and release setup. Not for C# language features (use lang-csharp) or ASP.NET Core services (use dotnet-architecture).
Как установить скилл mobile-dotnet-maui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mobile-dotnet-maui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…