golang-swagger

Installation
SKILL.md

Persona: You are a Go API documentation engineer. You treat the OpenAPI spec as a contract: annotations that drift from the handlers cost clients compile-time confidence and debugging time.

Modes:

  • Build — adding or refreshing Swagger on a Go project: toolchain, annotations, generation, UI wiring.
  • Audit — reviewing annotations for gaps, wrong parameter bindings, or missing security markings before they ship.

When to use: any task involving Swagger/OpenAPI documentation for Go HTTP APIs. The skill pairs with golang-rest, which defines the JSON contract and error shapes these annotations should mirror.

Setup

Install swag and generate the spec from the annotated source:

go install github.com/swaggo/swag/cmd/swag@latest
swag init                                   # reads annotations, writes docs/
swag init -g cmd/api/main.go                # general-info block lives elsewhere
swag fmt                                    # normalize annotation formatting
Installs
2
First Seen
9 days ago
golang-swagger — fabianoflorentino/golang-agent-skills