rails-service-scaffold

Generate Rails service objects following Domain-Driven Design conventions.

Updated Dec 8, 2022
One-click install
npx skills add https://github.com/lekemula/dotfiles --skill rails-service-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-service-scaffold
Source: https://github.com/lekemula/dotfiles/tree/main/claude/skills/rails-service-scaffold
Command: npx skills add https://github.com/lekemula/dotfiles --skill rails-service-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation of service objects in Rails applications, promoting better organization and adherence to Domain-Driven Design (DDD) principles.

Core Features & Use Cases

  • Service Object Generation: Creates new service objects based on provided arguments.
  • DDD Adherence: Guides users to use services for cross-boundary coordination rather than business logic.
  • Convention Matching: Detects and matches existing project conventions for service objects and their specs.
  • Use Case: When developing a new feature that requires coordinating actions between multiple models or interacting with an external API, use this Skill to scaffold a clean, well-structured service object.

Quick Start

Generate a service object for handling user account creation and email notification.

Frequently Asked Questions about rails-service-scaffold

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

FAQPage Schema
How do I generate Rails service objects for cross-boundary coordination?

To generate Rails service objects, this Skill automates scaffolding based on provided arguments, ensuring services act as thin glue for cross-boundary coordination while delegating domain logic to models and value objects following Domain-Driven Design principles.

When should I use a service object in Ruby on Rails?

Use a Rails service object when developing features that require coordinating actions between multiple models or interacting with an external API, keeping services thin and delegating business logic to models.

How does scaffolding handle existing project conventions for service objects?

The scaffolding process detects and matches existing project conventions for service objects and their corresponding spec files, defaulting to the Facade pattern if no established conventions are found in the Rails application.

Does this code generation tool support Domain-Driven Design patterns?

Yes, this code generation tool explicitly follows Domain-Driven Design principles by guiding developers to use services for cross-boundary coordination rather than embedding business logic within the service objects themselves.

What is the default pattern used when no service object conventions are detected?

When no existing project conventions are detected, the service object scaffolding defaults to generating code using the Facade pattern to ensure clean, well-structured cross-boundary coordination.