Go SDK Generator: task guides
go-sdk-generator turns a validated YAML or JSON operation contract into a Go SDK, an optional CLI, and supporting project files. Use these guides to move from a manifest to a working project. The generated command reference lists every CLI option; the guides explain when and how to use them.
Choose a task
- Install and inspect the tool: choose a package or OCI image, check the CLI, and inspect the schema.
- Write a manifest: define a focused project, choose types and constraints, and validate the contract.
- What the generator produces: SDK, CLI, action and documentation outputs, and what remains to implement.
- Types, formats and defaults: choose built-in
lang_typevalues and generated default behaviour. - Define validation constraints: constrain arguments and fields, express relationships, and fail fast when CLI configuration loads.
- Collections, lists and iterators: choose collection shapes, validate items and counts, and understand CLI parsing.
- Configure functional options: enable option values and expose them through CLI flags.
- Generate and regenerate a project: run generation, implement operations, and preserve handwritten work.
- Generate selected parts of a project: combine file and group selections with exclusions for granular regeneration.
- Use the GitHub Actions: run generation in a workflow or install the binary for later steps.
- Manage secrets in a generated CLI: mark secret inputs, use keyring-backed commands and understand security boundaries.
- Evolve a contract safely: deprecate incompatible manifest and generated-surface changes.
Further reference
- Manifest schema reference: describes the schema, its fields and supported values.
- Schema source: authoritative manifest field definitions.
- This repository's manifest: a real generator input.
- Generated SDK and CLI reference: configuration, commands, and Go interfaces.
- Repository README: purpose, quick start and design decisions.
- Agent Skills guide: discovery, agent setup, packaged skills and local validation. See the skills reference for installation and the catalogue. The tool can also install its embedded product skills with
go-sdk-generator agent --init. - Embedded Agent Skills: how the generator renders, mirrors, embeds and installs its product skills, including rebuild and overwrite behaviour.
The Markdown in guides/ is the source. cd-generate-docs renders it alongside the API documentation in docs/guides/ when documentation is rebuilt; edit the Markdown rather than the rendered output.