event-sourcing-architect
Design Event-Sourced Systems
Build audit-ready systems with complete change history. This skill helps architects implement event sourcing, CQRS, and event-driven patterns for systems requiring temporal queries and reliable audit trails.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez Ă utiliser
Tester
Utilisation de "event-sourcing-architect". Design an event store for an order management system
Résultat attendu:
- Event Store Schema: events table with aggregate_id, event_type, payload (JSON), metadata, timestamp, version
- Aggregate Table: tracks current state, last event version for optimistic locking
- Event Types: OrderCreated, ItemAdded, PaymentProcessed, OrderShipped, OrderCancelled
- Indexes: By aggregate_id for replay, By timestamp for audit queries, By correlation_id for saga tracing
Utilisation de "event-sourcing-architect". How do I handle eventual consistency in my read models?
Résultat attendu:
- Use asynchronous projection updates - commands commit to event store, projections update separately
- Implement 'read-your-writes' consistency at UI level by querying own writes first
- Add correlation IDs to link commands to their resulting read model updates
- Consider read model prefixes or versioning to indicate freshness to users
- Provide feedback mechanisms when data may be stale (e.g., 'updating...' indicators)
Audit de sécurité
SûrStatic analysis flagged 8 instances of 'weak cryptographic algorithm' pattern in SKILL.md. Upon evaluation, all findings are FALSE POSITIVES - the scanner incorrectly matched software architecture terms like 'event sourcing', 'event store', 'event versioning', and 'command handlers' as potential cryptographic issues. This is a documentation-only skill with no executable code. No security concerns identified.
Problèmes à risque élevé (1)
Score de qualité
Ce que vous pouvez construire
Financial Transaction Systems
Build systems requiring complete audit trails for compliance. Perfect for banking, accounting, or regulatory reporting where every state change must be traceable.
E-commerce Order Management
Implement complex order workflows with saga patterns. Handle multi-step processes like payment, inventory reservation, and shipping with compensating transactions.
Temporal Analytics Platforms
Enable 'what-if' analysis and historical state reconstruction. Allow business users to query system state at any point in time for reporting and debugging.
Essayez ces prompts
Design an event store schema for [DOMAIN]. What tables or collections do I need? How should I structure events?
Show me how to implement CQRS for a [ENTITY] aggregate. Include command side and query side separation.
Design a saga pattern for [BUSINESS_PROCESS] that involves [STEPS]. How do I handle compensation if a step fails?
Create a projection strategy for [QUERY_REQUIREMENT]. What read models should I build and how do I keep them in sync?
Bonnes pratiques
- Design events as immutable facts about what happened, not as state changes or commands
- Start event versioning from day one - even if schema seems stable, future changes will need it
- Use correlation IDs and causation IDs to trace events across aggregates and sagas
Éviter
- Deleting or mutating committed events - this destroys audit integrity and breaks projections
- Using events directly in queries instead of building optimized read projections
- Implementing strong consistency requirements in event-sourced systems - embrace eventual consistency
Foire aux questions
When should I choose event sourcing over traditional CRUD?
How do I handle schema changes in event-sourced systems?
What is the relationship between event sourcing and CQRS?
How do I rebuild projections without affecting production?
Can event sourcing work with microservices?
How do I handle duplicate events in event sourcing?
Détails du développeur
Auteur
sickn33Licence
MIT
Dépôt
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/event-sourcing-architectRéf
main
Structure de fichiers
đź“„ SKILL.md