controller-generation

Generate standardized CRUD controllers and endpoints for Go projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/griffnb/claude-plugins --skill controller-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: controller-generation
Source: https://github.com/griffnb/claude-plugins/tree/main/plugins/backend/skills/controller-generation
Command: npx skills add https://github.com/griffnb/claude-plugins --skill controller-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the generation of CRUD controllers and endpoints for Go projects, eliminating boilerplate and reducing setup time.

Core Features & Use Cases

  • Generates admin and public CRUD handlers using a standard pattern
  • Supports go:generate directives to wire up controllers with models (e.g., -modelPackage)
  • Produces x_gen_admin.go and x_gen_auth.go with a consistent API surface
  • Includes guidance for customizing handlers and regenerating code
  • Provides options to skip specific endpoints and reuse generated code in future projects

Quick Start

Run go generate for the controller package to generate the admin and public CRUD endpoints.

Frequently Asked Questions about controller-generation

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

FAQPage Schema
How do I auto-generate CRUD controllers and endpoints for a Go backend service?

You can auto-generate CRUD controllers and endpoints by running go generate within your controller package to produce standardized admin and public handler files.

What is the best way to eliminate boilerplate when scaffolding new resources in Go?

Using automated code generation eliminates boilerplate by producing consistent admin and auth endpoint files, reducing manual setup time for new resources.

How does go:generate wiring work with model packages for CRUD code generation?

The go:generate directive wires controllers to models by passing a modelPackage option, allowing the generator to produce x_gen_admin.go and x_gen_auth.go files with a consistent API.

Can I skip specific endpoints or customize handlers after generating CRUD code?

Yes, the generator provides options to skip specific endpoints during creation and includes guidance for customizing handlers and managing regeneration workflows.

Does this CRUD scaffolding tool support both admin and public API endpoints?

Yes, the tool generates both admin and public CRUD handlers using a standard pattern, producing separate files for authenticated and public-facing API surfaces.

What are the limitations of regenerating CRUD code after customizing handlers?

Regeneration workflows require careful management to avoid overwriting customizations, though the tool provides guidance and skip controls to preserve specific handler modifications.