go-gen-jsonschema
Installation
SKILL.md
go-gen-jsonschema
Code generator that turns Go structs into JSON Schema files plus Go accessors
(Schema(), optionally ValidateJSON()) and selectable JSON/YAML decoding for
registered interfaces. Built for LLM function calling:
properties are emitted in struct field order (deterministic, prompt-controllable),
additionalProperties: false, ordinary and nullable fields required,
Optional[T] fields optional, and Go doc comments become the schema
description fields.
Import path: github.com/tylergannon/go-gen-jsonschema (library markers) and
github.com/tylergannon/go-gen-jsonschema/gen-jsonschema (CLI).