Simplify agent instructions and consolidate sandbox testing workflow#32950
Simplify agent instructions and consolidate sandbox testing workflow#32950
Conversation
|
Update description and title to summarize latest changes |
Updated PR title and description to reflect the actual changes: New Title: Simplify agent instructions and consolidate sandbox testing workflow Summary of changes:
Net result: Much simpler, more maintainable agent configuration with ~10k fewer lines. |
|
@copilot can you assess all the changes and make any recommendations for changes? Don't change anything yet just analyze the changes and tell me your opinion. Don't be agreeable be as honest and deeply analyze as much as you can Make sure to understand the purpose of each change and file and then deep think about the changes |
Deep Analysis of ChangesI've analyzed all 38 changed files (~10k lines removed, ~2k added). Here's my honest assessment: ✅ What Works Well1. Massive reduction in cognitive load
2. Consolidation is effective
3. Smart preservation
|
…dency Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
6dae6df to
fca377a
Compare
There was a problem hiding this comment.
Pull request overview
This PR dramatically simplifies the .NET MAUI agent instruction system by consolidating scattered documentation into focused, self-contained files. The change removes approximately 10,000 lines of nested instructions across 20+ files and consolidates them into 4 core instruction files.
Key Changes:
- Consolidated all sandbox testing patterns into single
sandbox.instructions.md(882 lines) - Moved CollectionView handler detection to main instructions directory as
collectionview-handler-detection.instructions.md - Streamlined
uitests.instructions.mdby removing redundant manual command patterns (now references BuildAndRunHostApp.ps1 script) - Updated all cross-references in prompt files and common testing patterns
- Deleted 20 nested instruction files from
pr-reviewer-agent/,issue-resolver-agent/, andshared/directories - Added
applyTofrontmatter to specify when instructions apply
Reviewed changes
Copilot reviewed 38 out of 38 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
sandbox.instructions.md |
New comprehensive 882-line guide consolidating all sandbox testing workflows, validation rules, troubleshooting, and platform patterns |
collectionview-handler-detection.instructions.md |
Moved from pr-reviewer-agent directory to main instructions; simplified to focus on Items vs Items2 handler status |
uitests.instructions.md |
Streamlined by removing manual command patterns, now focuses on BuildAndRunHostApp.ps1 script usage |
xaml-unittests.instructions.md |
Added applyTo frontmatter for better scope definition |
RunWithAppiumTest.template.cs |
Updated screenshot paths to be relative (script runs from Sandbox directory) |
*.prompt.md files |
Updated references to point to new consolidated instruction files |
common-testing-patterns.md |
Updated documentation references to new agent file locations |
| Deleted files | Removed 20 nested instruction files totaling ~10,000 lines |
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
Dramatically simplifies the agent instruction system by consolidating scattered instruction files into agent files directly and creating a single comprehensive sandbox testing workflow.
Major Changes:
pr-reviewer-agent/,issue-resolver-agent/, andshared/directories.github/agents/pr-reviewer.md(392 lines, self-contained with complete workflow, checkpoints, and examples).github/agents/issue-resolver.md(619 lines, complete lifecycle from reproduction to PR submission)sandbox.instructions.md(882 lines) replacing scattered sandbox testing patterns across multiple filessandbox-agent.mdas explicit agent (workaround for GitHub Copilot CLI limitations with frontmatter pattern matching)collectionview-handler-detection.mdto main instructions directory for broader accessuitests.instructions.mdto focus on core testing patterns (reduced from 542 to 343 lines)PR-Test-Validation-Guide.md(355 lines)Files Deleted:
Result:
Trade-offs:
Issues Fixed
Fixes #
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.