BigHugger
sk Skill · samber

golang-swagger

Golang OpenAPI/Swagger documentation with swaggo/swag — annotation comments (@Summary, @Param, @Success, @Router, @Security), swag init code generation, framework integrations (gin, echo, fiber, chi, net/http), security definitions (Bearer/JWT, OAuth2, API key), and struct tags (swaggertype, enums, example, swaggerignore). Apply when adding or maintaining Swagger/OpenAPI docs in a Go project, or when the codebase…

installs 8w
3,925
30-day movement
starts with the next reading
Related entries
1
Connections
0
gobashGo

An agent skill (SKILL.md) that guides AI coding agents in writing and maintaining OpenAPI/Swagger documentation for Go projects using swaggo/swag. It covers annotation comments, `swag init` code generation, framework integrations, security definitions, and struct tags for model enrichment.

Use it when your Go codebase needs Swagger docs generated from annotations or already imports swaggo packages.

Use it to

  • Add swagger annotation comments to HTTP handlers
  • Run swag init code generation
  • Configure Bearer/JWT, OAuth2, or API key security definitions
  • Enrich model structs with swaggertype, enum, example, and swaggerignore tags
  • Wire swagger handlers into gin, echo, fiber, chi, or net/http

For Go developers adding or maintaining OpenAPI documentation

Host repository
samber/cc-skills-golang
Version
1.1.2
Installs, lifetime
36k
Installs, 8 weeks
3,925
Compatible with
Designed for Claude Code, Codex or similar harness. Requires go and swag CLI.
Licence
MIT
Invocable by
user
Host stars
3,273
Host language
Go
topicsgolangswaggeropenapiswaggoagent-skilldocumentation