create-use-case

Generate a Use Case scaffold with explicit request/response models and unit tests.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ESPlotter/ESPlotter --skill create-use-case-esplotter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-use-case
Source: https://github.com/ESPlotter/ESPlotter/tree/main/.github/skills/create-use-case
Command: npx skills add https://github.com/ESPlotter/ESPlotter --skill create-use-case-esplotter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a standardized approach to create domain-focused Use Cases that coordinate entities without embedding core business logic, ensuring clear separation between domain, application, and infrastructure layers.

Core Features & Use Cases

  • Orchestrates entities and applies application-level rules without containing essential business logic.
  • Defines explicit Input (Request) and Output (Response) models to enable testing and integration.
  • Supplies a recommended folder structure and practical code examples to accelerate implementation and validation.

Quick Start

Create a CreateOrder use-case following the recommended structure under application/use-cases/CreateOrder.ts and include a unit test.

Frequently Asked Questions about create-use-case

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

FAQPage Schema
How do I structure a use case in hexagonal architecture without coupling business logic?

A use case in hexagonal architecture orchestrates domain entities without embedding core business logic. Define explicit request and response models to ensure testable workflows and strict separation between application, domain, and infrastructure layers.

What is the role of a use case in domain-driven design?

In domain-driven design, a use case coordinates entities and applies application-level rules. It acts as a clean orchestrator that ensures essential business logic remains isolated within the domain layer rather than the application layer.

How do I generate a testable use case scaffold for a DDD project?

Generate a testable use case scaffold by defining explicit input and output models. Apply a recommended folder structure under application/use-cases and include unit tests to validate orchestration workflows across your application layer.

Can I use ORM frameworks inside my hexagonal architecture use cases?

No, you should not use ORM frameworks inside hexagonal architecture use cases. The approach enforces no framework coupling and no ORM usage to maintain clean separation between domain logic and infrastructure layers.

Does this use case approach require explicit input and output models?

Yes, this use case approach requires explicit input and output models. Defining Request and Response models enables straightforward testing and integration across the domain, application, and infrastructure layers.