java

Enforce Clean Architecture and multi-tenant design in Spring Boot or Quarkus projects.

4|2|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/hiimtrung/coder --skill java-hiimtrung
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java
Source: https://github.com/hiimtrung/coder/tree/main/.agents/skills/java
Command: npx skills add https://github.com/hiimtrung/coder --skill java-hiimtrung

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the problem of inconsistent enterprise Java development by enforcing Clean Architecture, strong typing, and multi-tenant design.

Core Features & Use Cases

  • Clean Architecture: Domain → Application → Presentation separation.
  • Strict Typing and Modern Java: Records, Generics, and sealed classes; avoids nulls with Optional.
  • Dependency Injection and Testing: Constructor-based DI, testable boundaries.
  • Multi-tenant Isolation: Tenant context extraction and isolation in queries.

Quick Start

Create a minimal Spring Boot or Quarkus project following Clean Architecture and multi-tenant guidelines.

Frequently Asked Questions about java

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

FAQPage Schema
How do I structure a Spring Boot backend with Clean Architecture?

Structure a Spring Boot backend using Clean Architecture by separating layers into Domain, Application, and Presentation. This approach enforces strict boundaries, constructor-based dependency injection, and explicit error handling for maintainable enterprise Java services.

What's the best way to enforce multi-tenant isolation in Java backends?

Enforce multi-tenant isolation in Java backends by extracting tenant context and isolating database queries. This Skill provides structured guidelines for tenant context management across Spring Boot and Quarkus projects to ensure secure data separation.

Does this Java Clean Architecture approach work with Quarkus and Gradle?

Yes, this Java Clean Architecture approach works with Quarkus and Gradle. It applies to both Spring Boot and Quarkus projects across Gradle or Maven builds, ensuring consistent domain logic and infrastructure boundaries regardless of your build tool.

How do I handle error handling and nulls in modern Java enterprise applications?

Handle error handling and nulls in modern Java enterprise applications by applying explicit error handling and using Optional to avoid nulls. The Skill mandates strict typing with Records, Generics, and sealed classes for robust backend domain logic.

Why use constructor-based dependency injection in Java enterprise projects?

Use constructor-based dependency injection in Java enterprise projects to establish testable boundaries and enforce strict typing. This method ensures dependencies are explicitly declared, making domain and infrastructure layers highly maintainable and unit-testable.

When do I need to separate domain and infrastructure boundaries in a Java backend?

Separate domain and infrastructure boundaries in a Java backend when building maintainable enterprise services. This isolation prevents business logic leakage into infrastructure layers, ensuring strong typing and testability across complex multi-tenant applications.