golang-docs - Document Go code and generate OpenAPI handlers
Defines Go doc-comment conventions, configures comment linting, and documents the spec-first OpenAPI handler generation workflow.
Tags
Updated: 2026-11-29Capabilities
Typical Outputs
What this skill does
- Apply Go doc comment conventions
- Map Javadoc patterns to Go
- Configure comment lint checks
- Maintain OpenAPI endpoint contracts
- Generate chi server interfaces
- Adapt generated error handling
Inputs
- Go source declarations
- golangci-lint configuration
- OpenAPI YAML contract
- Endpoint request definitions
- Endpoint response definitions
Outputs
- Go doc comments
- Package comments
- Lint configuration changes
- Generated API types
- Generated chi server interface
- OpenAPI contract changes
Requirements
- Go 1.27.0
- chi v5.3.2
- golangci-lint v2.13.1
- oapi-codegen v2.8.0
- oapi-codegen runtime v1.7.0
- Go 1.24+ for generated code
