logic-implementing

Implement domain models and business logic for backend systems using clean architecture.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/michsindlinger/specwright --skill logic-implementing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logic-implementing
Source: https://github.com/michsindlinger/specwright/tree/main/specwright/templates/skills/dev-team/backend/logic-implementing
Command: npx skills add https://github.com/michsindlinger/specwright --skill logic-implementing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured approach to implementing complex business logic and domain models for backend systems, ensuring maintainability and adherence to best practices.

Core Features & Use Cases

  • Domain Model Design: Create robust entities, value objects, and aggregates.
  • Business Logic Implementation: Develop service objects, use cases, and policies.
  • Validation & Error Handling: Implement comprehensive validation and domain-specific error management.
  • Use Case: Implementing the core logic for user registration, including validation, profile creation, and sending welcome emails, following established design patterns.

Quick Start

Implement the user registration service object in Ruby on Rails.

Frequently Asked Questions about logic-implementing

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

FAQPage Schema
How do I implement backend business logic using clean architecture?

Implement backend business logic by structuring your code around domain models, service objects, and use cases that adhere to SOLID principles and clean architecture. This approach separates core rules from external frameworks.

What is the best way to structure domain models and service objects in Ruby on Rails?

Structure domain models in Ruby on Rails by extracting complex operations into dedicated service objects and use cases. This isolates business logic from ActiveRecord models, creating robust entities and enforcing domain rules.

Does this approach support implementing business logic in TypeScript and Python Django?

Yes, this approach supports implementing business logic in TypeScript and Python Django, alongside Ruby on Rails. It provides specific pattern examples for service orchestration, validation, and domain-specific error management across these stacks.

How do I handle validation and domain-specific errors when implementing backend logic?

Handle validation and domain-specific errors by implementing comprehensive validation rules within your service objects and domain models. Use structured error handling to manage domain-specific failures, ensuring robust orchestration of use cases.

When should I use service objects and domain models instead of framework controllers?

Use service objects and domain models when your backend business logic becomes complex, such as orchestrating multi-step processes like user registration. This clean architecture approach prevents bloated controllers and maintains strict separation of concerns.