create-service

Generate missing Domain interfaces and Application service implementations with Result-based error handling.

2|Updated May 2, 2026
One-click install
npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill create-service-andrecini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-service
Source: https://github.com/andrecini/dotnet-squad-copilot-agent/tree/main/.claude/skills/create-service
Command: npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill create-service-andrecini

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It streamlines adding new business operations by generating the missing Domain interface and Application service implementation in a way that matches your Clean Architecture and Result pattern.

Core Features & Use Cases

  • Generates or extends Domain service interfaces while preserving existing methods and contracts.
  • Creates or extends Application service implementations that return Result<T>/Result instead of throwing business exceptions.
  • Adds required Models, AutoMapper mappings, DI registration, and unit tests aligned with the repository-first dependency checks.
  • Use Case: When you need a new operation like Create/Update/List for a resource (for example, Orders or Payments), this skill scaffolds the service layer consistently with the existing project conventions.

Quick Start

Tell the skill the resource name and operation you want, and describe any business rules the operation must apply.

Frequently Asked Questions about create-service

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a Clean Architecture service layer with CRUD operations?

To scaffold a Clean Architecture service layer, define the resource name and operation to generate Domain interfaces and Application implementations with Result-based error handling, AutoMapper profiles, DI registration, and unit tests.

How does the Result pattern work for application service error handling?

The Result pattern handles application service errors by returning Result<T> objects instead of throwing business exceptions, ensuring predictable execution flow and consistent error propagation across Clean Architecture boundaries.

How do I add unit tests when generating a new application service?

When generating a new application service, unit tests are automatically scaffolded alongside the implementation to validate business logic, repository-first dependency checks, and AutoMapper mapping configurations.

Can I extend existing domain service interfaces without breaking current contracts?

You can extend existing domain service interfaces without breaking current contracts because the generation process preserves existing methods while appending new operation signatures like CreateAsync or GetByIdAsync to the current interface.

Do I need to manually configure dependency injection for new application services?

Manual dependency injection configuration is not needed for new application services because the scaffolding process automatically registers the generated implementations into the DI container during creation.

What is the best way to generate CRUD operations like GetPaged or DeleteAsync for a resource?

To generate CRUD operations like GetPaged or DeleteAsync for a resource, specify the resource name and desired operation to automatically scaffold the complete service layer, including models, mappings, and tests.