hex-usecase-scaffold-kotlin-spring-jpa

Generate a hexagonal UseCase scaffold in Kotlin, Spring Boot, and JPA.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/zdpk/skills --skill hex-usecase-scaffold-kotlin-spring-jpa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hex-usecase-scaffold-kotlin-spring-jpa
Source: https://github.com/zdpk/skills/tree/main/hex-usecase-scaffold-kotlin-spring-jpa
Command: npx skills add https://github.com/zdpk/skills --skill hex-usecase-scaffold-kotlin-spring-jpa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of a hexagonal architecture scaffold for a new UseCase in Kotlin + Spring Boot + JPA, reducing boilerplate and ensuring consistent boundaries.

Core Features & Use Cases

  • Automatic generation of InPort, UseCase service, and OutPort and their corresponding adapters following the Ports & Adapters pattern.
  • Configurable by naming and project conventions to enforce a uniform project structure.
  • Dry-run and apply modes to preview changes before writing.

Quick Start

Provide a short requirement and optional naming, then run the scaffold generator to produce a complete hexagonal UseCase skeleton.

Frequently Asked Questions about hex-usecase-scaffold-kotlin-spring-jpa

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

FAQPage Schema
How do I generate a hexagonal architecture scaffold for a new Kotlin Spring Boot UseCase?

To generate a hexagonal architecture scaffold, provide a short requirement and optional naming to the generator, which then produces an end-to-end file plan with InPort, UseCase service, OutPorts, adapters, and tests for Kotlin + Spring Boot + JPA.

What is the best way to structure ports and adapters consistently across bounded contexts in Spring Boot?

Structuring ports and adapters consistently is achieved by using a scaffold generator that enforces a uniform project structure with repeatable InPort, OutPort, and adapter files across all bounded contexts in your Kotlin + JPA project.

Can I preview hexagonal scaffolding files before writing them to my Kotlin project?

Yes, you can preview hexagonal scaffolding files before writing them by using the dry-run mode, which outputs the planned InPort, UseCase service, and adapter files without applying changes to your Spring Boot project.

Does the hexagonal scaffold generator work with Kotlin and JPA dependencies?

The hexagonal scaffold generator works specifically with Kotlin, Spring Boot, and JPA, creating the necessary ports and adapters structure tailored to these frameworks without requiring external dependencies.

What files are included when scaffolding a hexagonal UseCase in Spring Boot?

Scaffolding a hexagonal UseCase includes generating an InPort, a UseCase service, OutPorts, corresponding adapters, and tests, ensuring a complete end-to-end file plan for your Kotlin + JPA project.

Why should I use a scaffold generator for hexagonal architecture instead of manually creating ports and adapters?

Using a scaffold generator for hexagonal architecture reduces boilerplate and ensures consistent boundaries, automatically enforcing a repeatable ports and adapters structure across bounded contexts instead of relying on manual file creation.