/backend-golang:golang-frameworksfrom backend-golang
Use when implementing Go HTTP services — enforces patterns for Gin, Echo, or Chi routers including middleware chains, handler structure, request validation, response formatting, and graceful shutdown
Ships in backend-golang. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
func NewRouter(svc *OrderService) *gin.Engine {
r := gin.New()
r.Use(gin.Recovery(), gin.Logger())
v1 := r.Group("/api/v1")
{
orders := v1.Group("/orders")
orders.POST("", createOrderHandler(svc))
orders.GET("/:id", getOrderHandler(svc))
}
return r
}
func createOrderHandler(svc *OrderService) gin.HandlerFunc {
return func(c *gin.Context) {
var req CreateOrderRequest
if err := c.ShouldBindJSON(&req); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
order, err := svc.Create(c.Request.Context(), req)
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": "internal error"})
return
}
c.JSON(http.StatusCreated, order)
}
}
func NewRouter(svc *OrderService) *echo.Echo {
e := echo.New()
e.Use(middleware.Recover(), middleware.Logger())
v1 := e.Group("/api/v1")
v1.POST("/orders", createOrderHandler(svc))
v1.GET("/orders/:id", getOrderHandler(svc))
return e
}
func NewRouter(svc *OrderService) chi.Router {
r := chi.NewRouter()
r.Use(middleware.Recoverer, middleware.Logger)
r.Route("/api/v1/orders", func(r chi.Router) {
r.Post("/", createOrderHandler(svc))
r.Get("/{id}", getOrderHandler(svc))
})
return r
}
HandlerFuncsignal.NotifyContext with http.Server.Shutdown/health returning 200 with dependency statusWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gagandeepp/software-agent-teams --plugin backend-golang4 skills in this plugin
/golang-codingUse when writing or reviewing Go code — enforces idiomatic Go patterns including error handling with explicit checks, interface-based design, goroutine safety, naming conventions, and effective Go principles/golang-project-structureUse when scaffolding or reviewing Go project layout — standard Go project structure with cmd, internal, pkg directories, module organization, and build conventions/golang-testingUse when writing tests for Go code — table-driven tests with the testing package, testify assertions, httptest for handlers, and interface-based mocking patterns