quarkus-patterns
Quarkus 3.x LTS architecture patterns with Camel for messaging, RESTful API design, CDI services, data access with Panache, and async processing. Use for Java Quarkus backend work with event-driven architectures.
npx skills add mturac/everything-openai-codex --skill quarkus-patterns --agent codex
Same command for any agent — swap --agent for claude-code, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Implements Quarkus 3.x architecture patterns for cloud-native, event-driven services. It covers REST APIs, service and repository layering, event-driven Camel patterns, Panache data access, and async processing. It includes logging, event tracking, Camel publishing, file processing, REST resources, Panache repository usage, DTOs/validation, exception mapping, CompletableFuture async operations, caching, and YAML configuration. The skill provides concrete code examples for common patterns like service layer with multiple dependencies, custom logging context, event service, Camel routes, file processing, REST endpoints, repositories, transactional service methods, DTO validation, and async storage operations.
Key concrete actions include:
- Use of Lombok @RequiredArgsConstructor and @Slf4j; @Transactional on write operations.
- EventService methods to create SUCCESS and ERROR events with payload serialization.
- Camel publishers and routes to send messages to RabbitMQ and route in-memory Direct routes with error handling.
- REST API structure with JAX-RS annotations for listing, creating, and fetching documents.
- Panache repository methods for paging, finding by reference, and counting by status/date.
- DTOs for CreateDocumentRequest and DocumentResponse with from() mapping.
- Exception mappers for validation and generic errors.
- CompletableFuture-based async method in FileStorageService for S3 uploads with logging scope.
- Caching via @CacheResult and cache invalidation.
- Configuration examples in YAML for dev/test environments.
The skill is designed to be used by Java Quarkus backends in event-driven architectures and demonstrates a wide range of patterns and integration points.
How it works
- Activates for REST API development, layered architecture, event-driven patterns with Camel and RabbitMQ, and async processing.
- Defines a service layer (OrderProcessingService, DocumentService) with injected dependencies and transactional boundaries.
- Provides an EventService to persist success/error events with timestamps and serialized payloads.
- Uses Camel components: BusinessRulesPublisher to publish messages, and Route classes to configure in-memory direct routes and RabbitMQ publishing.
- Demonstrates REST endpoints in DocumentResource with list, create, and getById operations using a DocumentService.
- Shows a Panache-based repository (DocumentRepository) with paging, reference lookup, and date-based counts.
- Includes DTOs/validation for CreateDocumentRequest and DocumentResponse, ensuring input constraints and proper response shaping.
- Implements exception mappers to translate validation and unexpected errors into HTTP responses.
- Provides a CompletableFuture-based file upload flow in FileStorageService with scoped logging context.
- Adds a caching service for document retrieval to improve read performance.
- Contains YAML-based configuration blocks for dev/test deployments (datasource, Hibernate, RabbitMQ).
When to use it
- When you need a structured Quarkus 3.x pattern set for REST APIs, event-driven messaging, and data access via Panache.
- When building services with asynchronous processing, transactional service methods, and robust error/event handling.
- When you want documented examples of Camel integration with RabbitMQ and in-memory routes, plus logging context patterns.
What it can touch
- Java codebase with Quarkus, Lombok, Jackson, and Logback/Logstash encoder.
- Camel components (ProducerTemplate, RouteBuilder, direct routes) and RabbitMQ integration.
- Panache repositories, JAX-RS resources, DTOs, and validation annotations.
- S3 storage via S3Client, an ExecutorService, and CompletableFuture for async operations.
- Caching via CacheResult, CacheInvalidate, and CacheInvalidateAll annotations.
- YAML configuration files for application settings.
Caveats
- License: MIT.
- The skill provides example patterns and code; actual integration and behavior depend on project setup and environment.
- Some sections require further project wiring (e.g., actual dependencies, route wiring, and runtime configuration) beyond the snippets.
# Quarkus Development Patterns Quarkus 3.x architecture and API patterns for cloud-native, event-driven services with Apache Camel. ## When to Activate - Building REST APIs with JAX-RS or RESTEasy Reactive - Structuring resource → service → repository layers - Implementing event-driven patterns with Apache Camel and RabbitMQ - Configuring Hibernate Panache, caching, or reactive streams - Adding validation, exception mapping, or pagination - Setting up profiles for dev/staging/production environments (YAML config) - Custom logging with LogContext and Logback/Logstash encoder - Working with CompletableFuture for async operations - Implementing conditional flow processing - Working with GraalVM native compilation ## Service Layer with Multiple Dependencies ```java @Slf4j @ApplicationScoped @RequiredArgsConstructor public class OrderProcessingService { private final OrderValidator orderValidator; private final EventService eventService; private final OrderRepository orderRepository; private final FulfillmentPublisher fulfillmentPublisher; private final AuditPublisher auditPublisher; @Transactional public OrderReceipt process(CreateOrderCommand command) { ValidationResult validation = o
- When to Activate
- Service Layer with Multiple Dependencies
- Custom Logging Context Pattern (Logback)
- Event Service Pattern
- Camel Message Publishing (RabbitMQ)
- Camel Direct Routes (In-Memory)
- Camel File Processing
- Camel Bean Invocation
- REST API Structure
- Repository Pattern (Panache Repository)
- Service Layer with Transactions
- DTOs and Validation
- Exception Mapping
- CompletableFuture Async Operations
What does the quarkus-patterns skill do?
Quarkus 3.x LTS architecture patterns with Camel for messaging, RESTful API design, CDI services, data access with Panache, and async processing. Use for Java Quarkus backend work with event-driven architectures.
How do I install it?
Run `npx skills add mturac/everything-openai-codex --skill quarkus-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From mturac/everything-openai-codex, a repository with 84 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
