-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add MAUI-specific C# Expert agent with comprehensive instruction file integration #32538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@copilot we already have copilot instructions Can you review all of our instruction files as well and see where those fit in here? |
I've completed a comprehensive review of all instruction files. Here's the analysis: Created Analysis Document (commit 412e862):
Key Findings: ✅ No Major Conflicts - The only potential conflict (interface usage) is explicitly resolved in the MAUI agent ✅ Intentional Overlap - Files serve different purposes:
Cross-References Added: All files now reference each other appropriately:
Bottom Line: Existing instruction files are well-organized and don't conflict with new agents. They're complementary:
|
|
Why would I use this at a customer agent vs just mix this into our instructions? |
Custom Agent vs Instructions - Key Differences: Agents (domain expertise):
Instructions (contextual procedures):
Why Custom Agent Makes Sense:
When Instructions Would Be Better: If this was purely procedural (build steps, file locations) or path-specific (only applies to certain directories), then yes, instructions would be better. Recommendation: You could merge these into instructions if:
Keep as agent if:
Both approaches are valid - this is an architectural preference question. |
Updated agent configuration with C# Expert details and guidelines for .NET development.
Co-authored-by: PureWeen <[email protected]>
- Created comprehensive analysis of all instruction files vs agents - Enhanced copilot-instructions.md with testing framework clarification - Added mobile development considerations to AGENTS.md - Added cross-references in MAUI C# Expert agent to specialized guides Co-authored-by: PureWeen <[email protected]> # Conflicts: # AGENTS.md
Co-authored-by: PureWeen <[email protected]>
fe1fd7b to
1dd7feb
Compare
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
Analyzed how generic C# Expert agent instructions apply to MAUI's architecture and created a specialized agent that handles MAUI's unique patterns correctly. Additionally conducted comprehensive review of all existing instruction files to ensure proper integration without conflicts or duplication.
Analysis Documents
MAUI-Specific Analysis (
.github/agents/csharp-expert-maui-analysis.md)Identified 8 areas where generic C# guidance conflicts with or misses MAUI patterns:
.Android.cs,.iOS.cs) and conditional compilation patterns not coveredCross-File Analysis (
.github/agents/instruction-files-analysis.md)Comprehensive 21KB analysis of all instruction and agent files including:
Key Finding: No major conflicts. All content is complementary - agents provide domain expertise while instruction files provide context-specific procedures.
MAUI C# Expert Agent (
.github/agents/maui-csharp-expert.agent.md)Extends generic C# Expert with MAUI-specific guidance:
Includes cross-references to specialized instruction files for instrumentation, SafeArea testing, and template development.
Enhanced Existing Files
.github/copilot-instructions.mdAGENTS.mdNavigation and Documentation
Directory README (
.github/agents/README.md)Implementation Summary (
.github/agents/SUMMARY.md)Agent vs Instructions Architecture
Agents provide domain expertise that can be explicitly invoked:
Instructions provide contextual procedures that auto-apply:
Both approaches are complementary - agents offer explicit domain invocation ("use MAUI C# Expert for handlers") while instructions provide always-active contextual guidance.
Enables AI assistants to provide accurate MAUI-appropriate guidance instead of generic .NET patterns that don't apply. All files work together to provide comprehensive guidance without duplication or conflict.
Issues Fixed
N/A - Enhancement to AI assistant guidance infrastructure
💡 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.