- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 233
Add scoped agent guidelines for Snap Hutao repo #3241
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: develop
Are you sure you want to change the base?
Add scoped agent guidelines for Snap Hutao repo #3241
Conversation
| Summary of Pull RequestThis PR by Masterain introduces scoped agent guidelines for the Snap Hutao repository. It adds an  Changes by feature
 Key Change Highlights
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a comprehensive set of scoped agent guidelines (AGENTS.md files) throughout the Snap Hutao repository to provide targeted context for AI coding assistants. The guidelines establish consistent coding standards, architectural patterns, and best practices at multiple levels - from repository-wide policies down to individual subsystem requirements.
Key Changes:
- Establishes repository-wide development standards for dependencies, code style, localization, and testing
- Defines solution-level build and configuration requirements
- Documents project-specific guidelines for major architectural layers (Core, Service, Web, UI, ViewModel, Model, etc.)
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description | 
|---|---|
| AGENTS.md | Repository root guidelines covering project positioning, global development standards, workflow, and PR conventions | 
| res/AGENTS.md | Guidelines for non-packaged design and promotional assets in the res directory | 
| src/Snap.Hutao/AGENTS.md | Solution-level guidelines for build configuration, NuGet management, and file organization | 
| src/Snap.Hutao/Snap.Hutao.Test/AGENTS.md | Test project standards for MSTest framework usage, structure, and coverage requirements | 
| src/Snap.Hutao/Snap.Hutao/AGENTS.md | Main app project architectural principles covering MVVM, WinUI/XAML, performance, and localization | 
| src/Snap.Hutao/Snap.Hutao/Core/AGENTS.md | Core infrastructure layer guidelines for cross-cutting concerns, performance optimization, and dependency restrictions | 
| src/Snap.Hutao/Snap.Hutao/Extension/AGENTS.md | Extension methods standards emphasizing generality, documentation, and dependency limitations | 
| src/Snap.Hutao/Snap.Hutao/Factory/AGENTS.md | Factory pattern guidelines for object creation, testability, and dependency injection | 
| src/Snap.Hutao/Snap.Hutao/Migrations/AGENTS.md | EF Core migration management practices and naming conventions | 
| src/Snap.Hutao/Snap.Hutao/Model/AGENTS.md | Model layer design principles for domain data, nullability handling, and documentation | 
| src/Snap.Hutao/Snap.Hutao/Resource/AGENTS.md | Resource directory organization covering localization, images, and version control practices | 
| src/Snap.Hutao/Snap.Hutao/Service/AGENTS.md | Service layer responsibilities including DI patterns, async operations, and testing requirements | 
| src/Snap.Hutao/Snap.Hutao/UI/AGENTS.md | UI layer standards for XAML, code-behind, performance, and accessibility | 
| src/Snap.Hutao/Snap.Hutao/ViewModel/AGENTS.md | ViewModel MVVM patterns, async command handling, and state management | 
| src/Snap.Hutao/Snap.Hutao/Web/AGENTS.md | Web layer specifications for HTTP clients, DTOs, JSON serialization, and WebView2 integration | 
| src/Snap.Hutao/Snap.Hutao/Win32/AGENTS.md | Win32 interop standards for P/Invoke, resource management, and error handling | 
| Generally all test related text should be removed. | 
Deleted .github/copilot-instructions.md and revised AGENTS.md files across the repository for improved clarity, consistency, and maintainability. Updates include enhanced localization instructions, clarified validation and testing requirements, and refined coding and contribution guidelines. These changes ensure better alignment with current development practices and repository policies.
Summary
Testing
https://chatgpt.com/codex/tasks/task_b_68fc902032e88321884591df939fc392