Skip to main content
subagent CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/aspnet-core-expert.md
Open on GitHub

What 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.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

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

Similar subagents

All subagents for Backend and APIs →

From the same set137

The whole set →
ios-expert ios-expert is a Claude Code subagent for building iOS apps with Swift and SwiftUI. It handles app architecture and Swift optimization tasks. CX Codex ★ 1,029repo stars perl-expert perl-expert is a Claude Code subagent for Perl scripting, regular expressions, data parsing, and CPAN modules. CX Codex ★ 1,029repo stars nestjs-expert nestjs-expert is a Claude Code subagent for structuring NestJS applications and REST APIs. It handles architecture, validation, route protection, and tests. CX Codex ★ 1,029repo stars php-expert php-expert — a subagent for PHP work: PHP 8+ syntax, sessions, Composer and PDO, checked against a PSR and security checklist. CX Codex ★ 1,029repo stars sql-expert The sql-expert subagent handles complex SQL, execution plans, indexes, schemas, and transactions. Use it when a query or database design needs a closer review. CX Codex ★ 1,029repo stars docker-expert docker-expert — a Claude subagent for Docker work: Dockerfiles, Compose stacks, volumes, networking, health checks and registries. CX Codex ★ 1,029repo stars cockroachdb-expert cockroachdb-expert — a subagent for CockroachDB cluster setup, schema design, and distributed SQL query tuning. Helps configure multi-region replication and backup routines. CX Codex ★ 1,029repo stars react-expert react-expert is a Claude Code subagent for React refactoring, performance work, and complex state changes. It can handle tasks involving hooks, context, and unnecessary renders. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open