npx skills add smithery/rimblehelm --skill maui-project-setup
rimblehelm/.net-maui-skills · Archived
maui-project-setup
A brief description of what this skill does
Installation
npx skills add rimblehelm/.net-maui-skills --skill maui-project-setup
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Defines recommended UI/UX patterns, layout strategies, styling conventions, accessibility rules…
40 installsA brief description of what this skill does
11 installsA brief description of what this skill does
7 installsProvides best practices and patterns for data storage in .NET MAUI apps, including SQLite, EF C…
7 installsSimilar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Guidance for distinctive, intentional visual design when building new UI or reshaping an existi…
866.4K installsBrowser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe …
568.9K installsAlso in this package
Other skills from rimblehelm/.net-maui-skills.
npx skills add rimblehelm/.net-maui-skills
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
master
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md3,439 B -
docs
SUMMARY.md69 B
History
- First seen on skills.sh
- First recorded snapshot · 9 installs
SKILL.md
.NET MAUI — Project Setup Skill
Purpose
This skill provides agents with a standardized, production-ready approach to creating and structuring .NET MAUI applications. It defines folder conventions, MVVM architecture defaults, dependency injection patterns, and cross-platform considerations that should be applied whenever a new MAUI project is initialized.
The goal is to ensure that all generated MAUI projects follow consistent, maintainable, and scalable patterns.
Core Principles
- MVVM-first architecture
Use ViewModels, observable properties, and commands as the primary interaction pattern.
- Dependency Injection
Register services in MauiProgram.cs using the built-in DI container.
- Separation of Concerns
Keep UI, business logic, and data access isolated in clear folder structures.
- Cross-platform awareness
Prefer abstractions over platform-specific code unless required.
- Scalable folder structure
Organize code into predictable, discoverable modules.
Recommended Folder Structure
[root]
├─ Models
│ └─ [Add model classes here]
├─ Platforms
│ └─ [Add platform-specific setup and code here]
├─ Resources
│ ├─ AppIcon
│ │ └─ [Add application icon files here]
│ ├─ Fonts
│ │ └─ [Add font files here]
│ ├─ Images
│ │ └─ [Add image files here]
│ ├─ raw
│ │ └─ [Add raw files here]
│ ├─ Splash
│ │ └─ [Add splash screen files here]
│ └─ Styles
│ └─ [Add style files here]
├─ Services
│ ├─ Interfaces
│ │ └─ [Add service interfaces here]
│ └─ [Add service classes here]
├─ ViewModels
│ ├─ MainViewModel.cs
│ └─ [Add other ViewModels here]
├─ Views
│ ├─ Controls
│ │ └─ [Add custom controls here]
│ ├─ MainPage.xaml
│ │ └─ MainPage.xaml.cs
│ └─ Templates
│ └─ [Add custom templates here]
├─ App.xaml
│ └─ App.xaml.cs
└─ MauiProgram.cs
Project Initialization Steps
- Create a new MAUI project:
``code dotnet new maui -n [ProjectName] ``
- Add MVVM base classes:
- BaseViewModel - ObservableObject or INotifyPropertyChanged implementation - AsyncCommand helpers
- Register services in
MauiProgram.cs:
``code builder.Services.AddSingleton<INavigationService, NavigationService>(); builder.Services.AddTransient<MainViewModel>(); builder.Services.AddTransient<MainPage>(); ``
- Configure global styles in
Resources/Styles/Styles.xaml. - Add platform assets:
- App icons - Splash screens - Permissions manifests
Agent Usage Guidelines
- Always scaffold new MAUI apps using the folder structure above (Change it after project creation).
- When generating code, place files in the correct folders.
- When asked to “create a new page,” generate both:
- Views/MyPage.xaml - ViewModels/MyPageViewModel.cs
- When asked to “add a service,” create:
- Services/Interfaces/IServiceName.cs - Services/ServiceName.cs
- Register it in
MauiProgram.cs.
Out of Scope
- Deep UI best practices (covered in
maui-ui-best-practices) - Authentication flows (covered in
maui-authentication) - Deployment (covered in
maui-deployment)