con un clic
slice-builder
Transform slice definitions from config.json into executable Java code
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Transform slice definitions from config.json into executable Java code
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Generate event-driven automation processors for AUTOMATION slices
Generate projection integration tests from STATE_VIEW specifications
Generate commands, events, aggregates, REST controllers (POST), and tests for STATE_CHANGE slices
Generate read models, projectors, queries, and REST controllers (GET) for STATE_VIEW slices
| name | slice-builder |
| description | Transform slice definitions from config.json into executable Java code |
Transform slice definitions from config.json into Java code following CQRS/Event Sourcing patterns with Axon Framework.
{
"slices": [
{
"title": "slice: <Name>",
"context": "<BoundedContext>",
"sliceType": "STATE_CHANGE|STATE_VIEW|UNDEFINED",
"commands": [...],
"events": [...],
"readmodels": [...],
"processors": [...],
"specifications": [...]
}
]
}
| sliceType | Skill | Generates |
|---|---|---|
STATE_CHANGE | state-change-slice | Commands, Events, Aggregate, REST Controller (POST), Tests |
STATE_VIEW | state-view-slice | ReadModel, Projector, Query, QueryHandler, REST Controller (GET), Migration, Tests |
UNDEFINED | Skip | - |
If slice contains processors with type: "AUTOMATION", also apply automation-slice.
de.eventmodelers/
├── common/ # Shared interfaces
├── domain/ # Aggregates and Commands
│ ├── <Aggregate>Aggregate.java
│ └── commands/
│ └── <CommandName>Command.java
├── events/ # All events (shared)
└── <context>/
├── ProcessingGroups.java
└── slices/<slicename>/ # All slice artifacts
├── Controller
├── ReadModel, Query (STATE_VIEW)
└── internal/ (Projector, QueryHandler, Processor)
| Type | Location |
|---|---|
| Commands | domain/commands/<CommandName>Command.java |
| Events | events/<EventName>Event.java |
| Aggregates | domain/<Aggregate>Aggregate.java |
| Slice artifacts | <context>/slices/<slicename>/ |
| Internal (Projector, QueryHandler, Processor) | <context>/slices/<slicename>/internal/ |
| Migrations | resources/db/migration/ |
| Tests | test/<context>/slices/<slicename>/ |
| config.json Type | Java Type |
|---|---|
| UUID | UUID |
| String | String |
| Date | LocalDate |
| Integer | Integer |
| Boolean | Boolean |
| Decimal | BigDecimal |
| Multiple cardinality | List |
| optional: true | @Nullable T |
| Slice Title | Class Name | Package Name |
|---|---|---|
| "Register Customer" | RegisterCustomer | registercustomer |
| "Customer Registered" | CustomerRegistered | customerregistered |
Rules: