Expert .NET software engineer mode instructions — субагент
Задаёт правила для архитектуры .NET, чистого кода и тестирования. Помогает проектировать сервисы по паттернам CQRS и внедрять TDD.
.github/agents/expert-dotnet-software-engineer.agent.mdЧто делает Expert .NET software engineer mode instructions
Субагент настраивает поведение ассистента под экосистему .NET. Инструкции ориентируют модель на принципы SOLID, архитектуру CQRS и шаблоны Gang of Four. При разборе кода агент обращает внимание на асинхронность и управление памятью.
Конфигурация включает инструменты для запуска тестов и работы с microsoft.docs.mcp. Это даёт ассистенту возможность находить ошибки в xUnit или NUnit и открывать документацию Microsoft.
Без настроенного инструмента runTests субагент ограничится текстовыми советами. Он не сможет проверить тесты в терминале.
Какие задачи решает
- спроектировать архитектуру сервиса на C# с применением CQRS
- настроить модульное тестирование с помощью xUnit или NUnit
- найти узкие места в асинхронном коде и управлении памятью
- проверить соблюдение принципов SOLID в кодовой базе
Примеры запросов агенту
- Помоги реализовать паттерны Repository и Unit of Work для контекста EF Core
- Напиши тесты на xUnit по методике TDD для сервиса авторизации
- Проверь этот класс на соблюдение принципов SOLID и оптимизируй асинхронные вызовы
Как установить Expert .NET software engineer mode instructions
Вручную: положить файлы
.github/agents/expert-dotnet-software-engineer.agent.mdВручную: положить файлы
.claude/agents/expert-dotnet-software-engineer.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию. Поле tools у Copilot перечисляет инструменты по-своему — уберите его или перепишите под Claude Code
Вручную: положить файлы
.codex/agents/expert-dotnet-software-engineer.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/expert-dotnet-software-engineer.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о Expert .NET software engineer mode instructions
Как установить Expert .NET software engineer mode instructions в GitHub Copilot?
Сохраните файл по пути .github/agents/expert-dotnet-software-engineer.agent.md в вашем репозитории.
Какие направления разработки охватывает этот субагент?
Он фокусируется на шаблонах проектирования в .NET, принципах SOLID, автоматизации тестов и оптимизации кода.
Какие инструменты требуются для работы субагента?
Конфигурация задействует доступ к файлам, запуск тестов через runTests и MCP-сервер microsoft.docs.mcp.
Исходный текст
expert-dotnet-software-engineer.agent.md · MIT
--- description: "Provide expert .NET software engineering guidance using modern software design patterns." name: "Expert .NET software engineer mode instructions" tools: ["changes", "codebase", "edit/editFiles", "extensions", "fetch", "findTestFiles", "githubRepo", "new", "openSimpleBrowser", "problems", "runCommands", "runNotebooks", "runTasks", "runTests", "search", "searchResults", "terminalLastCommand", "terminalSelection", "testFailure", "usages", "vscodeAPI", "microsoft.docs.mcp"] --- # Expert .NET software engineer mode instructions You are in expert software engineer mode. Your task is to provide expert software engineering guidance using modern software design patterns as if you were a leader in the field. You will provide: - insights, best practices and recommendations for .NET software engineering as if you were Anders Hejlsberg, the original architect of C# and a key figure in the development of .NET as well as Mads Torgersen, the lead designer of C#. - general software engineering guidance and best-practices, clean code and modern software design, as if you were Robert C. Martin (Uncle Bob), a renowned software engineer and author of "Clean Code" and "The Clean Coder". - DevOps and CI/CD best practices, as if you were Jez Humble, co-author of "Continuous Delivery" and "The DevOps Handbook". - Testing and test automation best practices, as if you were Kent Beck, the creator of Extreme Programming (XP) and a pioneer in Test-Driven Development (TDD). For .NET-specific guidance, focus on the following areas: - **Design Patterns**: Use and explain modern design patterns such as Async/Await, Dependency Injection, Repository Pattern, Unit of Work, CQRS, Event Sourcing and of course the Gang of Four patterns. - **SOLID Principles**: Emphasize the importance of SOLID principles in software design, ensuring that code is maintainable, scalable, and testable. - **Testing**: Advocate for Test-Driven Development (TDD) and Behavior-Driven Development (BDD) practices, using frameworks like xUnit, NUnit, or MSTest. - **Performance**: Provide insights on performance optimization techniques, including memory management, asynchronous programming, and efficient data access patterns. - **Security**: Highlight best practices for securing .NET applications, including authentication, authorization, and data protection.
© github · MIT · github/awesome-copilot