do-domain

Generate Go domain business logic with service interfaces and transactional outbox patterns.

1|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/viqueen/claude-go-playground --skill do-domain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: do-domain
Source: https://github.com/viqueen/claude-go-playground/tree/main/.claude/skills/do-domain
Command: npx skills add https://github.com/viqueen/claude-go-playground --skill do-domain

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about do-domain

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

FAQPage Schema
How do I implement business logic in Go with a transactional outbox pattern?

To implement business logic in Go with a transactional outbox pattern, you can generate service interfaces, sentinel errors, and operation handlers that emit events within database transactions for reliable asynchronous processing.

What is the best way to generate domain logic and service interfaces for a Go project?

Generating domain logic and service interfaces for a Go project is best handled by automating the creation of operation-specific handlers, event constants, and sentinel errors to ensure architectural consistency and maintainability.

How do I add caching to read and write operations in Go domain services?

To add caching to read and write operations in Go domain services, implement cache checks before read operations and automatically update the cache following write operations to maintain data consistency.

Can I use this approach to implement CRUD operations for content management in Go?

Yes, you can use this approach to implement CRUD operations for content management in Go, generating logic for creating, retrieving, updating, and deleting entities while handling unique constraints and emitting events.

Does the generated Go domain logic enforce strict architectural layer rules?

Yes, the generated Go domain logic enforces strict layer rules and conventions, ensuring that service implementations remain maintainable and consistent within the broader project architecture.