/spring-boot-template:event-drivenfrom Spring Boot Template
Implements CQRS and Event Sourcing for Spring Boot 4.x: command/query handlers, read models from domain events, transactional outbox with Kafka or Spring Modulith, PostgreSQL event store with upcasting and rebuildable projections, or Axon Framework.
Ships in Spring Boot Template. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
CQRS for Spring Boot 4.x: the write side and the read side are separate models, and the read side is updated from domain events. With Event Sourcing the write side stores those events instead of the current state.
Load this skill only when the architecture decision (conventions skill, "Architecture Decision") is not layered CRUD:
CLAUDE.md (AGENTS.md in Codex and OpenCode) has style: cqrs or style: cqrs-event-sourcing in its ## Architecture block.A project without the block is layered CRUD: do not apply this skill to it, and do not start the dialog here. The dialog and the block belong to conventions.
| Style | Status |
|---|---|
| Layered CRUD | Default; this skill does not apply |
| CQRS (no event sourcing) | Supported: references/cqrs.md |
| CQRS + Event Sourcing (PostgreSQL event store) | Supported: references/event-sourcing.md |
| CQRS + Event Sourcing (Axon Framework) | Supported as a procedure: references/axon.md. The code comes from the Axon reference of the version selected for the project |
CQRS or Event Sourcing for an API built for a UI (spring-boot skill, references/ui-contract.md) | Not yet supported |
For a style that is not yet supported, say so and stop. Do not approximate it with another style, and never use Kafka as an event store.
style, scope, topology, transport, read-store and, for Event Sourcing, event-store from the architecture block. Aggregates outside scope stay layered CRUD.references/topology.md.references/cqrs.md).version.references/kafka.md), or the Spring Modulith event publication registry for in-process events (references/cqrs.md).references/testing.md; run ./mvnw clean verify and confirm the integration tests ran.With style: cqrs-event-sourcing, steps 3 to 6 follow references/event-sourcing.md: event store and migration, events, a plain aggregate that returns events, handlers that load, decide and append, then projections with a checkpoint. With event-store: axon, follow references/axon.md from its first step, before any code.
| Topic | Reference | When to Load |
|---|---|---|
| Topology | references/topology.md | Always: modules, packages, databases, Compose, deployment, CI |
| CQRS rules | references/cqrs.md | Always: commands, queries, handlers, read models; for style: cqrs also events, projections, in-process events; review signals |
| Event Sourcing | references/event-sourcing.md | style: cqrs-event-sourcing: event store, events and upcasting, aggregates, handlers, projections with checkpoints, snapshots, personal data, review signals |
| Axon Framework | references/axon.md | event-store: axon: version selection, event store question, what Axon replaces, what still applies |
| Kafka | references/kafka.md | transport: kafka: outbox, relay, topics, consumers, dead-letter topic; relay from the event store for Event Sourcing |
| Testing | references/testing.md | Always: handler, outbox, projection and end-to-end tests; aggregate, event store and upcaster tests for Event Sourcing |
@Version and 409 on a stale version (jpa-patterns skill, Optimistic Locking); every event carries the aggregate id, the aggregate's version and its state after the change<Resource>Response records in a PagedModel, with the version a client sends back on an updateconventions skill that the architecture decision does not replacequery or projection code depend on command code or on the write-side entitiesPage or a read model from a command endpointWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/code-qualityReview checklist for Java / Spring Boot code - correctness, security, performance, Spring signals, REST semantics, and code smells; project rules are referenced from conventions, not repeated. Use when user says "review code", "check this PR", "refactor", "check API", or before merging changes./conventionsSpring Boot project conventions and mandatory rules. Auto-loads when working with Spring Boot, Java, or Maven projects, and before a new Spring Boot project or REST API is generated - it asks for the architecture style (layered CRUD, CQRS, Event Sourcing) first. Enforces No-Lombok, constructor injection, RestClient, Flyway for relational databases, Problem Details errors, and other standards; adds OpenAPI contract rules when the API is built for a UI./npx claudepluginhub piomin/claude-ai-spring-boot --plugin spring-boot-templateOther plugins' skills for the same job