bootstrap-go-openapi
Installation
SKILL.md
Bootstrap Go OpenAPI Client
Add oapi-codegen client generation to an existing Go project. Assumes go.mod already exists.
Prerequisites
Verify before starting:
go.modexists in the project root- User has an OpenAPI 3.0 spec (local file or URL)
If the spec is OpenAPI 3.1, warn the user: oapi-codegen has partial 3.1 support. Recommend converting to 3.0 or testing carefully.
Gather Input
Ask the user for:
- OpenAPI spec path — path to their
.yaml/.jsonspec file (e.g.api/openapi.yaml) - Client package name — Go package for generated code (e.g.
petstore,acmeapi). Suggest deriving from the API name in the spec.