go-add-entity

Generate a complete CRUD vertical slice for a new domain entity in a Go microservice.

21|4|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/JotJunior/claude-ai-tips --skill go-add-entity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-add-entity
Source: https://github.com/JotJunior/claude-ai-tips/tree/main/language-related/go/skills/go-add-entity
Command: npx skills add https://github.com/JotJunior/claude-ai-tips --skill go-add-entity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate a complete CRUD vertical slice for a new domain entity in an existing Go microservice, standardizing architecture, reducing boilerplate, and accelerating feature delivery.

Core Features & Use Cases

  • Generate a multi-file scaffold including Domain model, DTOs, Repository interface and implementation, Service, HTTP Handler, and migrations.
  • Wire the new entity through the existing service layer and HTTP API, ensuring consistent naming, JSON/DB tags, and error handling.
  • Use Case: add a new entity like User or Product and immediately have a working CRUD cycle ready to extend.

Quick Start

Create a new entity named MyEntity in an existing Go microservice to automatically generate the full CRUD vertical slice.

Frequently Asked Questions about go-add-entity

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

FAQPage Schema
How do I generate CRUD scaffolding for a new entity in a Go microservice?

To generate CRUD scaffolding in a Go microservice, define a new domain entity and the tool auto-creates the repository, service, handler, DTOs, and migrations. This standardized vertical slice reduces boilerplate and accelerates feature delivery.

What layers are included when scaffolding a Go domain entity?

Scaffolding a Go domain entity includes the domain model, DTOs, repository interface and implementation, service logic, HTTP handlers, and database migrations. The generated files apply consistent naming, JSON and DB tags, and error handling conventions.

Can I automatically wire a new entity into an existing Go service layer?

Yes, the generated CRUD scaffold automatically wires the new entity through the existing service layer and HTTP API. It updates the main wiring to ensure the new domain model integrates immediately with project conventions.

What is the best way to reduce boilerplate when adding a new entity to a Go repository?

The best way to reduce boilerplate is using automated CRUD scaffolding that generates the complete vertical slice. This standardizes architecture across the repository, service, and handler layers while ensuring consistent error handling and JSON or DB tagging.

Does CRUD scaffolding work with existing Go microservice conventions?

Yes, the scaffolding applies to existing Go microservices by following established project conventions. It implements repository patterns and domain models that match your current architecture, ensuring the generated code integrates seamlessly.

When do I need to generate a full CRUD vertical slice for a Go microservice?

You need to generate a full CRUD vertical slice when adding a new domain entity to a Go microservice and requiring immediate working create, read, update, and delete cycles. This ensures all layers from repository to HTTP handler are consistently wired.