code-gen/axon5kotlin/write-slice

Generate Kotlin write slices for Axon Framework 5 with command handling and event sourcing.

6|3|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/proophboard/skills --skill code-gen-axon5kotlin-write-slice
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-gen/axon5kotlin/write-slice
Source: https://github.com/proophboard/skills/tree/main/skills/code-gen/axon5kotlin/write-slice
Command: npx skills add https://github.com/proophboard/skills --skill code-gen-axon5kotlin-write-slice

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers generate comprehensive Kotlin write slices for Axon Framework 5, simplifying the implementation of command, event, and state handling in event-sourced systems.

Core Features & Use Cases

  • Automated Code Generation: Produces Kotlin code templates for command handlers, event sourcing, and REST API layers based on event modeling slices.
  • Technical Flexibility: Supports both Spring Boot auto-discovery and explicit registration patterns, including multi-tag dynamic boundaries.
  • Use Case: A developer wants to quickly scaffold a Kotlin write slice for a new domain, ensuring best practices, testing, and modular design—saving time and reducing errors.

Quick Start

Ask the AI to generate a Kotlin write slice for your specified event model, including command, events, state, and API.

Frequently Asked Questions about code-gen/axon5kotlin/write-slice

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Kotlin command handlers and event sourcing code for Axon Framework 5?

To generate Kotlin command handlers and event sourcing code for Axon Framework 5, you can use this Skill to automatically scaffold write slices including state handling and REST API layers based on your event model.

What is a write slice in event-sourced architecture and how does Axon handle it?

A write slice in event-sourced architecture handles command processing, state evolution, and event persistence for a specific domain boundary. Axon Framework 5 manages this through command handlers and event sourcing repositories.

Can I use Spring Boot auto-discovery with Axon 5 Kotlin write slices?

Yes, generated Axon 5 Kotlin write slices support Spring Boot auto-discovery for component registration, alongside explicit registration patterns to handle multi-tag dynamic boundaries in complex enterprise architectures.

How do I scaffold an event-sourced domain slice in Kotlin with REST API endpoints?

You can scaffold an event-sourced domain slice in Kotlin by providing your event model to the generator, which produces modular command handlers, events, state, and REST API code following best practices.

Does Axon 5 support multi-tag dynamic boundaries for event sourcing in Kotlin?

Yes, Axon 5 supports multi-tag dynamic boundaries, and this Skill generates Kotlin write slices that explicitly register these boundaries to maintain modularity across complex enterprise event-sourced systems.

What are the limitations of automated code generation for Axon event-sourced systems?

Automated code generation for Axon event-sourced systems primarily scaffolds structural templates; developers must still implement complex domain logic and custom testing strategies beyond the generated modular boilerplate.