Skip to content

Using AI to Work on .NET MAUI

Shane Neuville edited this page Dec 8, 2025 · 1 revision

This guide helps you use GitHub Copilot effectively when working on the .NET MAUI repository.

Table of Contents


Custom Agents

The .NET MAUI repository includes specialized AI agents designed to help with specific development tasks. These agents are available through GitHub Copilot and provide expert assistance for common workflows.

How to Use Custom Agents

In VS Code: Custom Agents in VS Code

In GitHub Copilot CLI: GitHub Copilot CLI

Available Agents

Purpose: Conduct thorough, constructive code reviews of pull requests.

When to use: When you need a comprehensive code review that checks for best practices, test coverage, code quality, and potential issues.

Example prompts:

  • review PR #12345
  • does PR #12345 have adequate test coverage?
  • review this PR focusing on thread safety

Purpose: Write new UI tests for .NET MAUI with proper syntax, style, and conventions.

When to use: When creating new UI tests or updating existing ones for the TestCases.HostApp and TestCases.Shared.Tests projects.

Example prompts:

  • write UI test for issue #12345
  • create UI test that verifies Button click updates a Label
  • write UI test for CollectionView item selection

Purpose: Test and validate PR functionality using the Sandbox app with automated deployment and testing.

When to use: When you want to manually verify a fix works on device/simulator, reproduce an issue, or validate PR functionality.

Example prompts:

  • test PR #12345 on Android
  • reproduce issue #12345 in Sandbox
  • test this PR on iOS

Using Copilot with Git

GitHub Copilot can handle git operations for you - committing changes, squashing commits, rebasing branches, resolving conflicts, and creating PR descriptions.

See the Using Copilot with Git Guide for detailed examples and prompts.

Clone this wiki locally