From go-studio
Add a new domain service with handler, service layer, repository, and Goose migration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/go-studio:build-serviceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Adds a complete domain feature: migration, repository, service, and HTTP handlers.
Adds a complete domain feature: migration, repository, service, and HTTP handlers.
Confirm with user:
serviceName — Go package/file name in snake_case (e.g. campaign, lead, subscription)Read patterns:
go-stack: pattern://database.mdgo-stack: pattern://handlers.mdgo-stack: pattern://migrations.mdWrite migration internal/migrations/NNN_{serviceName}.sql:
Write internal/models/{serviceName}.go:
db: tags for sqlx scanningWrite internal/repositories/{serviceName}.go:
List(ctx, userID) → []models.XGetByID(ctx, id, userID) → *models.XCreate(ctx, input) → *models.XUpdate(ctx, id, userID, input) → *models.XDelete(ctx, id, userID) → errorWrite internal/services/{serviceName}.go:
Write internal/handlers/{serviceName}.go:
GET /{plural} — list (with pagination)GET /{plural}/{id} — get onePOST /{plural} — createPUT /{plural}/{id} — updateDELETE /{plural}/{id} — deleteWrite Templ templates:
internal/ui/pages/{serviceName}_list.templinternal/ui/components/{serviceName}_card.templinternal/ui/components/{serviceName}_form.templRegister subrouter in cmd/server/main.go:
r.Route("/{plural}", func(r chi.Router) {
r.Use(middleware.RequireAuth)
// mount handler methods
})
Run go build ./... + templ generate
go build ./... passesnpx claudepluginhub dvrd/ui-studio --plugin dvrdProvides idiomatic Go patterns for backend APIs with Gin, Echo, Fiber: standard project structure, custom error handling, handler dependency injection, concurrency best practices.
Generates backend service implementations with business logic from OpenAPI specs, data models, and scaffold stubs. Use when implementing service layers from TODO stubs.
Generates production-ready CRUD scaffolding and API endpoints for entities, including validation (Zod), authorization, tests, and relational support. Detects and adapts to existing schema (Prisma, Drizzle, raw SQL) and framework (Next.js, Express, Hono).