controller-patterns
CommunityThin, maintainable ASP.NET Core controllers.
Software Engineering#routing#validation#dto#api-design#clean-architecture#aspnet#controller-patterns
AuthorJoshua-Palamuttam
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Controllers in ASP.NET Core apps are often overloaded with business logic, making maintenance, testing, and evolution difficult. This Skill promotes thin controllers that delegate logic to services and adhere to consistent routing, parameter binding, and DTO-based responses.
Core Features & Use Cases
- Thin Controller Pattern: keep controllers focused on HTTP concerns; move business logic to services.
- Routing & Binding: standardizes route attributes, resource naming, and parameter binding (FromBody, FromQuery, FromRoute).
- DTOs & Responses: encourages separate Create/Update/Response DTOs to avoid exposing domain models.
- Real-World Use: when reviewing or implementing Task/Entity APIs, apply the patterns to ensure testability and clarity.
Quick Start
Refactor an existing API action to call a service and return a typed response using a DTO.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: controller-patterns Download link: https://github.com/Joshua-Palamuttam/claude-code-presentation/archive/main.zip#controller-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.