chunking-strategy
Provides chunking strategies for RAG systems. Generates chunk size recommendations (256-1024 tokens), overlap percentages (10-20%), and semantic boundary…
Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in Java 21+ Spring Boot 3.5+ applications. Use when structuring layered architectures, separating domain logic from frameworks, implementing ports and
$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill clean-architecture --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/clean-architectureContext preview
The summary Claude sees to decide when to auto-load this skill.
Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in Java 21+ Spring Boot 3.5+ applications. Use when structuring layered architectures, separating domain logic from frameworks, implementing ports and
name: clean-architecture description: Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in Java 21+ Spring Boot 3.5+ applications. Use when structuring layered architectures, separating domain logic from frameworks, implementing ports and adapters, creating entities/value objects/aggregates, or refactoring monolithic codebases for testability and maintainability. allowed-tools: Read, Write, Edit, Bash, Glob, Grep
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.
Dependencies flow inward. Inner layers know nothing about outer layers.
| Layer | Responsibility | Spring Boot Equivalent | |-------|---------------|----------------------| | **Domain** | Entities, value objects, domain events, repository interfaces | `domain/` - no Spring annotations | | **Application** | Use cases, application services, DTOs, ports | `application/` - `@`Service, `@`Transactional | | **Infrastructure** | Frameworks, database, external APIs | `infrastructure/` - `@`Repository, `@`Entity | | **Adapter** | Controllers, presenters, external gateways | `adapter/` - `@`RestController |
Follow this feature-based package organization:
com.example.order/
├── domain/
│ ├── model/ # Entities, value objects
│ ├── event/ # Domain events
│ ├── repository/ # Repository interfaces (ports)
│ └── exception/ # Domain exceptions
├── application/
│ ├── port/in/ # Driving ports (use case interfaces)
│ ├── port/out/ # Driven ports (external service interfaces)
│ ├── service/ # Application services
│ └── dto/ # Request/response DTOs
├── infrastructure/
│ ├── persistence/ # JPA entities, repository adapters
│ └── external/ # External service adapters
└── adapter/
└── rest/ # REST controllersThe domain layer must have zero dependencies on Spring or any framework.
1. **Dependency Rule**: Domain has zero dependencies on Spring or other frameworks 2. **Immutable Value Objects**: Use Java records for value objects with built-in validation 3. **Rich Domain Models**: Place business logic in entities, not services 4. **Repository Pattern**: Domain defines interface, infrastructure implements 5. **Domain Events**: Decouple side effects from primary operations 6. **Constructor Injection**: Mandatory dependencies via final fields 7. **DTO Mapping**: Separate domain models from API contracts 8. **Transaction Boundaries**: Place `@`Transactional in application services 9. **Factory Methods**: Use `Entity.create()` for invariant enforcement during construction 10. **Separate JPA Entities**: Keep domain entities separate from JPA entities with mappers
After implementing each layer, verify the dependency rules are respected:
Modular plugin marketplace for Claude Code and agentic CLIs, with validated, spec-driven skills, agents, commands, and workflows for Java, TypeScript, Python, PHP, AWS, and AI.
Repo: giuseppe-trisciuoglio/developer-kit
Provides chunking strategies for RAG systems. Generates chunk size recommendations (256-1024 tokens), overlap percentages (10-20%), and semantic boundary…
Provides workflows to write, debug, and optimize prompts for LLMs, including few-shot example selection, chain-of-thought structuring, system prompt design,…
Implements document chunking, embedding generation, vector storage, and retrieval pipelines for Retrieval-Augmented Generation systems. Use when building RAG…
Provides AWS CloudFormation patterns for Auto Scaling including EC2, ECS, and Lambda. Use when creating Auto Scaling groups, launch configurations, launch…
Provides AWS CloudFormation patterns for Amazon Bedrock resources including agents, knowledge bases, data sources, guardrails, prompts, flows, and inference…
Provides AWS CloudFormation patterns for CloudFront distributions, origins (ALB, S3, Lambda@Edge, VPC Origins), CacheBehaviors, Functions, SecurityHeaders,…