Agent skill
event-sourcing-migrator
Migrate to event-sourcing architecture with event extraction, store setup, and CQRS implementation
Install this agent skill to your Project
npx add-skill https://github.com/a5c-ai/babysitter/tree/main/library/specializations/code-migration-modernization/skills/event-sourcing-migrator
SKILL.md
Event Sourcing Migrator Skill
Migrates applications to event-sourcing architecture, handling event extraction from existing data, event store setup, and CQRS implementation.
Purpose
Enable event sourcing migration for:
- Event extraction from existing data
- Event store setup
- Projection generation
- CQRS implementation
- Snapshot management
Capabilities
1. Event Extraction from Existing Data
- Analyze current state
- Derive historical events
- Generate event streams
- Handle data gaps
2. Event Store Setup
- Configure event store
- Set up partitioning
- Define retention
- Implement subscriptions
3. Projection Generation
- Create read models
- Build projections
- Handle updates
- Manage consistency
4. CQRS Implementation
- Separate read/write
- Implement commands
- Handle queries
- Manage eventual consistency
5. Snapshot Management
- Define snapshot strategy
- Generate snapshots
- Handle restoration
- Optimize performance
6. Event Replay
- Replay events
- Rebuild projections
- Handle migrations
- Test consistency
Tool Integrations
| Tool | Purpose | Integration Method |
|---|---|---|
| EventStore | Event database | CLI/API |
| Axon Framework | Java event sourcing | Library |
| Marten | .NET event store | Library |
| EventStoreDB | Event store | CLI |
| Custom stores | PostgreSQL/Kafka | Library |
Output Schema
{
"migrationId": "string",
"timestamp": "ISO8601",
"eventStore": {
"type": "string",
"streams": "number",
"events": "number"
},
"projections": [
{
"name": "string",
"status": "string",
"lastPosition": "number"
}
],
"snapshots": {
"enabled": "boolean",
"count": "number"
}
}
Integration with Migration Processes
- monolith-to-microservices: Event-driven architecture
- database-schema-migration: Data transformation
Related Skills
domain-model-extractor: Event discovery
Related Agents
data-architect-agent: Event architecture
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-tools
Central utility skill for GSD operations. Provides config parsing, slug generation, timestamps, path operations, and orchestrates calls to other specialized skills. Acts as the unified entry point that the original gsd-tools.cjs provided via its lib/ modules (commands, config, core, init).
model-profile-resolution
Resolve model profile (quality/balanced/budget) at orchestration start and map agents to specific models. Enables cost/quality tradeoffs by selecting appropriate AI models for each agent role.
verification-suite
Plan structure validation, phase completeness checks, reference integrity verification, and artifact existence confirmation. Provides the structured verification layer ensuring GSD artifacts are well-formed and complete.
state-management
STATE.md reading, writing, and field-level updates. Provides cross-session state persistence via .planning/STATE.md with structured fields for current task, completed phases, blockers, decisions, and quick tasks.
git-integration
Git commit patterns, formats, and conventions for GSD methodology. Provides atomic commits per task, structured commit messages, planning file commits, branch management, and milestone tag operations.
frontmatter-parsing
YAML frontmatter parsing and manipulation for .planning/ documents. Provides read, write, update, query, and validation operations on frontmatter blocks in GSD markdown artifacts.
Didn't find tool you were looking for?