service-patterns

Community

Structured service patterns for robust apps

AuthorJoshua-Palamuttam
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Services contain all business logic. They are the heart of the application, orchestrating operations between controllers and data access.

Core Features & Use Cases

  • Interface-Based Design: Always define an interface for each service
  • ServiceResult Pattern: Use a result wrapper that indicates success/failure and error type
  • Business Logic Encapsulation: Place all business rules in services, not controllers
  • Structured Logging: Employ semantic logging with named parameters and appropriate levels
  • Error Handling: Let unexpected exceptions bubble to a global handler
  • Mapping & Registration: Map domain models to responses and register services in DI

Quick Start

Register the service in your DI container and begin using the service methods in your controllers

Dependency Matrix

Required Modules

None required

Components

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: service-patterns
Download link: https://github.com/Joshua-Palamuttam/claude-code-presentation/archive/main.zip#service-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.