new-domain

Generate a DDD domain scaffold with standardized folder layout and template files.

3|2|Updated Jun 25, 2024
One-click install
npx skills add https://github.com/Hopin-inc/civicship-api --skill new-domain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-domain
Source: https://github.com/Hopin-inc/civicship-api/tree/main/.claude/skills/new-domain
Command: npx skills add https://github.com/Hopin-inc/civicship-api --skill new-domain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation of a complete Domain-Driven Design (DDD) domain scaffold and Clean Architecture structure, including template files and dependencies, enabling rapid bootstrap of new domains.

Core Features & Use Cases

  • Complete domain scaffold: generates a full directory structure for a new domain under src/application/domain/{category}/{domain-name}/ with controller, data, schema, usecase, service, and presenter components.
  • Template-driven boilerplate: provides ready-to-fill templates for controllers, use cases, repositories, converters, presenters, and GraphQL schemas.
  • Configurable domain-name and parent category: supports creation under any allowed category with a specified domain name.

Quick Start

Create a new domain scaffold by specifying a domain name and a parent category to bootstrap the full architecture quickly.

Frequently Asked Questions about new-domain

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

FAQPage Schema
How do I generate a Clean Architecture domain scaffold for a new DDD project?

To generate a Clean Architecture domain scaffold, specify a domain name and parent category. This creates a standardized directory layout with controller, usecase, service, repository, converter, and presenter components to accelerate domain bootstrap.

What is included in a DDD domain scaffold structure?

A DDD domain scaffold includes template files for controllers, data, schemas, use cases, repositories, converters, presenters, and GraphQL types. It also bootstraps dependency injection wiring under src/application/domain/{category}/{domain-name}/.

Can I configure the domain name and parent category when scaffolding a new domain?

Yes, you can configure both the domain-name and the parent category. This allows you to bootstrap the full domain-driven design architecture quickly under any chosen category within your project's structure.

Does the generated domain scaffold include GraphQL schema templates?

Yes, the generated domain scaffold includes ready-to-fill GraphQL schema templates alongside other boilerplate files for use cases, repositories, and presenters to ensure complete domain architecture coverage.

What is the best way to bootstrap dependency injection wiring for a new DDD domain?

The best way to bootstrap DI wiring is to use a template-driven scaffolding tool that automatically generates the folder layout and wires the controller, service, and repository components together during domain creation.