This walks you through implementing Clean Architecture and Hexagonal Architecture patterns in Spring Boot 3.5+ apps, focusing on keeping your domain logic completely framework-free. You get concrete package structures, instructions for organizing domain entities and value objects separate from JPA entities, and guidance on setting up ports and adapters so infrastructure stays swappable. The skill emphasizes putting business logic in rich domain models rather than anemic services, using Java records for immutable value objects, and includes ArchUnit tests to enforce the dependency rules. It's opinionated about transaction boundaries and includes a validation checklist to grep for Spring annotations leaking into your domain layer, which honestly feels necessary given how easy it is to let framework concerns creep inward.

skills.sh installs
4.1K
GitHub stars
369
last updated
Aug 21, 2026

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill clean-architecture --agent claude-code

Installs into .claude/skills of the current project.

Files

Clean Architecture, Hexagonal Architecture & DDD for Spring Boot

Overview

This skill provides comprehensive guidance for implementing Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design tactical patterns in Java 21+ Spring Boot 3.5+ applications. It ensures clear separation of concerns, framework-independent domain logic, and highly testable codebases through proper layering and dependency management.

When to Use

  • Architecting new Spring Boot applications with clear separation of concerns
  • Refactoring tightly coupled code into testable, layered architectures
  • Implementing domain logic independent of frameworks and infrastructure
  • Designing ports and adapters for swappable implementations
  • Applying Domain-Driven Design tactical patterns (entities, value objects, aggregates)
  • Creating testable business logic without Spring context dependencies

Instructions

1. Understand the Core Concepts

Clean Architecture Layers (Dependency Rule)

Dependencies flow inward. Inner layers know nothing about outer layers.

Sponsors

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Code Review & Quality, Java & JVM, Design & UI/UX
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 102
1giuseppe-trisciuoglio avatarnextjs-code-reviewgiuseppe-trisciuoglio/developer-kitProvides comprehensive code review capability for Next.js applications, validates Server Components, Client Components, Server Actions, caching strategies, meta3.9Kskills.sh installs
2langgenius avatarcomponent-refactoringlanggenius/difyRefactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component --json` shows complexity > 50 or lineCount > 300, when the user ask3.7Kskills.sh installs
3actionbook avatarrust-refactor-helperactionbook/rust-skillsSafe Rust refactoring with LSP analysis. Triggers on: /refactor, rename symbol, move function, extract, 重构, 重命名, 提取函数, 安全重构3.6Kskills.sh installs
4tradermonty avatardata-quality-checkertradermonty/claude-trading-skillsValidate data quality in market analysis documents and blog articles before publication. Use when checking for price scale inconsistencies (ETF vs futures), ins3.6Kskills.sh installs
5tradermonty avatarkanchi-dividend-review-monitortradermonty/claude-trading-skillsMonitor dividend portfolios with Kanchi-style forced-review triggers (T1-T5) and convert anomalies into OK/WARN/REVIEW states without auto-selling. Use when use3.4Kskills.sh installs
6anthropics avatarbrand-reviewanthropics/knowledge-work-pluginsReview content against your brand voice, style guide, and messaging pillars, flagging deviations by severity with specific before/after fixes. Use when checking3.3Kskills.sh installs