new-aggregate

Scaffold a domain aggregate with base class, Saga and Causal variants, factories, repositories, and service stub.

5|2|Updated Jun 28, 2023
One-click install
npx skills add https://github.com/socialsoftware/microservices-simulator --skill new-aggregate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-aggregate
Source: https://github.com/socialsoftware/microservices-simulator/tree/main/.claude/skills/new-aggregate
Command: npx skills add https://github.com/socialsoftware/microservices-simulator --skill new-aggregate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a new domain aggregate in the microservices-simulator quizzes application, providing a consistent base class, SagaXxx and CausalXxx variants, factories, repositories, and a service stub to accelerate domain development.

Core Features & Use Cases

  • Generates a complete scaffold for a new domain aggregate including base class, Saga and Causal variants, factories, repositories, and a service stub.
  • Enforces consistent package structure and wiring across sagas and TCC implementations to reduce boilerplate and integration errors.
  • Use Case: Add a new aggregate like Tournament or Submission to rapidly bootstrap domain logic in the quizzes module.

Quick Start

Provide an aggregate name and a brief description to generate a complete scaffold (base class, SagaXxx, CausalXxx, factories, repositories, and service stub) in the quizzes module.

Frequently Asked Questions about new-aggregate

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

FAQPage Schema
How do I scaffold a DDD aggregate with Saga and TCC variants in a microservices project?

Scaffolding a DDD aggregate generates a base abstract class with fields, constructors, invariants, Saga and Causal variants, factories, repositories, and service stubs to accelerate microservices domain development.

What is domain aggregate scaffolding and when do I need it in microservices?

Domain aggregate scaffolding automates boilerplate creation by generating base classes and structural wiring for sagas and TCC implementations, needed when adding new aggregates like Tournament to reduce integration errors.

Can I generate repository and service stubs alongside the base aggregate class?

Generating repository and service stubs is supported directly, producing factories, bean configuration wiring, and test scaffolds alongside the aggregate base class and its Saga and Causal variants.

What's the best way to bootstrap a new aggregate in a microservices-simulator quizzes module?

Bootstrapping a new aggregate requires providing an aggregate name and description to generate consistent package structure, wiring, and base logic for the microservices-simulator quizzes module.

Does aggregate scaffolding enforce consistent package structure for sagas and TCC implementations?

Aggregate scaffolding enforces consistent package structure and wiring across sagas and TCC implementations, reducing boilerplate and integration errors when adding new domain aggregates.