skills/smithery.ai/controller-generation

controller-generation

Installation
SKILL.md

Controller Code Generation

The system uses core_generate to automatically create standard CRUD operations for controllers.

Code Generation Command

Add this directive to your setup.go file:

//go:generate core_gen controller Account -modelPackage=account

Parameters:

  • controller - Command type
  • Account - Model name (PascalCase)
  • -modelPackage=account - Package name containing the model
  • -options=admin if its an admin only controller
  • -skip=xxxYYY,aaaBBB skip generating this function because we need to customize it
Installs
1
First Seen
Mar 21, 2026
controller-generation from smithery.ai