What problem does it solve?
This Skill automates the implementation of business logic for a given domain within a Go project, ensuring consistency and adherence to architectural patterns.
Core Features & Use Cases
- Domain Logic Implementation: Generates Go code for service interfaces, sentinel errors, event constants, and operation-specific handlers.
- Transactional Outbox Pattern: Integrates event emission within database transactions for reliable asynchronous processing.
- Caching: Implements cache checks for read operations and cache updates for write operations.
- Use Case: When developing a new feature for a content management system, this Skill can generate the core business logic for creating, retrieving, updating, and deleting content entities, including handling unique constraints and emitting relevant events.
Quick Start
Use the do-domain skill to implement the business logic for the 'content' domain, focusing on creating and retrieving content.