What problem does it solve?
This Skill helps you create and maintain accurate Swagger and OpenAPI documentation for Go APIs so the generated spec matches your handlers, models, security rules, and runtime configuration.
Core Features & Use Cases
- Annotate handlers with summary, parameter, response, routing, and security metadata that Swagger UI can render correctly.
- Set up Swagger UI for Gin, Echo, Fiber, Chi, and net/http using the appropriate integration package and docs import pattern.
- Document models with struct tags for examples, enums, limits, ignored fields, and type overrides for timestamps and binary data.
- Handle advanced API documentation needs such as nested response envelopes, generic responses, API key and JWT security, OAuth2, and environment-specific host or base path overrides.
- Use the bundled CLI guidance to generate, format, filter, and maintain specs with swag init and swag fmt.
Quick Start
Use this skill to add or audit Swagger annotations for your Go API, then wire the correct generated docs package and Swagger UI route for your framework.