Improve AI agent documentation and testing instructions#32485
Merged
Conversation
Copilot
AI
changed the title
[WIP] Update pr-reviewer.md with recent changes
Extract pr-reviewer.md updates from PR #32405
Nov 10, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR extracts documentation improvements for the PR review workflow from PR #32405, specifically updating .github/agents/pr-reviewer.md to introduce dynamic branch tracking instead of hardcoded branch references.
Key changes:
- Introduces
ORIGINAL_BRANCHvariable to capture and preserve the reviewer's starting branch context - Updates all cleanup sections to use this variable for reliable return to starting state
- Improves clarity with fallback instructions when the variable isn't available
91a607a to
ffe8f71
Compare
Member
Contributor
Author
Updated the PR description to reflect all changes made across the 6 commits. The PR has evolved significantly beyond the original pr-reviewer.md updates to include:
Total: 1,034 additions, 566 deletions across 12 files. |
Copilot
AI
changed the title
Extract pr-reviewer.md updates from PR #32405
Improve AI agent documentation and testing instructions
Nov 12, 2025
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
# Conflicts: # AGENTS.md
ffe8f71 to
6d7d825
Compare
mattleibow
approved these changes
Nov 12, 2025
Member
|
/azp run MAUI-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
This PR consolidates and improves AI agent documentation and testing instructions for the .NET MAUI repository. It includes comprehensive improvements to testing workflows, instruction organization, and new guidance documents.
Major Changes
1. New Instruction Files
📄
.github/instructions/appium-control.instructions.md(369 lines)📄
.github/instructions/common-testing-patterns.md(397 lines)2. Enhanced Existing Instructions
.github/agents/pr-reviewer.md(+98 lines)ORIGINAL_BRANCHvariable to replace hardcoded "pr-reviewer" references.github/instructions/uitests.instructions.md(+118 lines).github/instructions/instrumentation.instructions.md(+47 lines).github/copilot-instructions.md(+32 lines)3. Repository Organization
Removed:
AGENTS.md(-521 lines).github/instructions/directoryUpdated:
.github/README-AI.md(+2 lines)Updated:
.gitignore(+1 line)4. Documentation Updates
docs/UITesting-Guide.md(+8 lines)docs/PR-Test-Validation-Guide.md(+5 lines)5. Sample Code Updates
src/Controls/samples/Controls.Sample.Sandbox/Platforms/Android/MainActivity.cs(+2 lines)Statistics
Benefits
✅ Better organization - Focused instruction files instead of monolithic documents
✅ Reduced duplication - Common patterns extracted to reusable reference document
✅ Improved discoverability - Cross-references between related instructions
✅ Enhanced testing workflows - Comprehensive Appium and testing guidance
✅ Easier maintenance - Single source of truth for common patterns
✅ Better agent guidance - Clearer, more actionable instructions
Issues Fixed
N/A - Documentation and instruction improvements
Includes pr-reviewer.md updates from PR #32405
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.