aspnet-core-expert — Claude Code subagent: setup and usage
aspnet-core-expert — a subagent for designing, debugging, and optimizing ASP.NET Core web services, middleware, and database access.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/aspnet-core-expert.mdWhat aspnet-core-expert does
This subagent assists with backend engineering in ASP.NET Core. It covers middleware pipelines, dependency injection setup, MVC patterns, Razor Pages, and database interactions through Entity Framework Core.
The system prompt instructs the assistant to follow SOLID principles, implement centralized error handling, and write unit or integration tests for each endpoint. It also includes instructions for Swagger API documentation, caching mechanisms, and Docker container packaging.
The agent profile explicitly specifies the claude-sonnet-4-20250514 model, which Claude Code will invoke when executing tasks.
What it helps with
- Structure custom middleware and global exception handling
- Configure authentication and authorization policies for REST APIs
- Tune database queries and contexts with Entity Framework Core
- Generate unit and integration tests for web endpoints
- Set up Dockerfiles and CI/CD pipelines for service deployment
Example prompts for the agent
- Set up centralized error handling middleware and logging in ASP.NET Core.
- Refactor the Entity Framework Core repository and apply response caching.
- Generate an authenticated API controller with Swagger documentation.
How to install aspnet-core-expert
Manually: put the files in place
.claude/agents/aspnet-core-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/aspnet-core-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/aspnet-core-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about aspnet-core-expert
How to install aspnet-core-expert in Claude Code?
Add the agent configuration file to .claude/agents/aspnet-core-expert.md in your project repository. Claude Code will identify and load the subagent automatically.
What does the aspnet-core-expert subagent do?
It guides ASP.NET Core architecture, dependency injection setups, RESTful API design, Entity Framework Core patterns, and Docker packaging.
Which AI model powers this subagent?
The frontmatter declares claude-sonnet-4-20250514 as the underlying model for all agent actions.
Source text
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