aspnet-core-expert — субагент для Claude Code: как установить
Субагент aspnet-core-expert помогает проектировать и оптимизировать веб-приложения на ASP.NET Core, выстраивать архитектуру middleware и писать чистый код.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/aspnet-core-expert.mdЧто делает aspnet-core-expert
Субагент специализируется на серверной разработке под ASP.NET Core. Он помогает создавать RESTful API, настраивать внедрение зависимостей, описывать маршруты MVC и Razor Pages, а также подключать базу данных через Entity Framework Core.
В инструкциях заложены проверка принципов SOLID, изоляция логики через middleware, централизованная обработка исключений и кэширование ответов. Помощник ориентирован на создание тестов, подготовку спецификаций Swagger и сборку контейнеров через Docker.
В метаданных субагента жёстко задана модель claude-sonnet-4-20250514, поэтому при запуске агент запросит именно её.
Какие задачи решает
- Спроектировать кастомные middleware и централизованную обработку ошибок
- Настроить аутентификацию и авторизацию для защищённого REST API
- Оптимизировать запросы к базе данных через Entity Framework Core
- Сгенерировать модульные и интеграционные тесты для эндпоинтов
- Подготовить Dockerfile и конфигурацию CI/CD для развёртывания приложения
Примеры запросов агенту
- Настрой централизованный middleware для обработки ошибок и логирования в ASP.NET Core.
- Оптимизируй контекст Entity Framework Core и добавь кэширование для эндпоинта каталога.
- Создай контроллер авторизации с проверкой политик доступа и документированием через Swagger.
Как установить aspnet-core-expert
Вручную: положить файлы
.claude/agents/aspnet-core-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/aspnet-core-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/aspnet-core-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы об aspnet-core-expert
Как установить aspnet-core-expert в Claude Code?
Сохраните конфигурацию субагента в файл .claude/agents/aspnet-core-expert.md внутри проекта. Claude Code автоматически обнаружит файл и загрузит субагента для задач по ASP.NET Core.
Для каких задач подходит aspnet-core-expert?
Агент помогает писать API на ASP.NET Core, настраивать внедрение зависимостей, Razor Pages, Entity Framework Core, а также упаковывать сервисы в Docker.
Какую модель использует этот субагент?
В заголовке конфигурации указана модель claude-sonnet-4-20250514. Для корректной работы потребуется доступ к этой версии модели.
Исходный текст
aspnet-core-expert.md · MIT
--- name: aspnet-core-expert description: Expert in ASP.NET Core web application development, optimization, and best practices. model: claude-sonnet-4-20250514 --- ## Focus Areas - ASP.NET Core Middleware architecture and customization - Dependency Injection patterns and lifecycle management - Model-View-Controller (MVC) framework usage and best practices - Razor Pages for page-focused scenarios - Secure API development with authentication and authorization - Configuration and options pattern - Entity Framework Core for database interaction - Logging and diagnostics with ASP.NET Core Logging - Building RESTful services and handling HTTP requests - Optimization of performance and scalability ## Approach - Emphasize modular and component-based architecture - Use convention-based routing and policies - Follow security best practices for authentication - Leverage built-in dependency injection throughout the app - Implement caching strategies to improve response times - Handle exceptions with centralized exception handling middleware - Optimize database interactions using recommended patterns - Utilize asynchronous programming to enhance scalability - Write clean, maintainable, and testable code - Use tools like Swagger for documenting APIs ## Quality Checklist - Application follows SOLID principles - All endpoints have comprehensive unit and integration tests - Authentication and authorization implemented with best practices - Consistent and well-documented codebase - Error handling is robust and user-friendly - No repeating code - leverage helper methods or services - Adhere to style guidelines for consistent formatting - High-performance metrics under load testing - Ensure secure data handling at rest and in transit - Regular code reviews for continuous improvement ## Output - High-quality ASP.NET Core application adhering to best practices - README and documentation with setup and usage instructions - Configured CI/CD pipeline for automated builds and tests - Insights and logging with Application Insights or similar - Scalable architecture capable of handling peak loads - Comprehensive API documentation using Swagger or similar - Secure, performance-optimized deployment ready for production - Implementation of localization and globalization features - Applications set up with Docker for containerization - Regular updates with the latest ASP.NET Core features and improvements
© 0xfurai · MIT · 0xfurai/claude-code-subagents