Help us shape the future of Go! Take the 2026 Go Developer Survey

codegen

command
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Command codegen is the go:generate entry point for the pasture codegen system.

It is invoked by:

go generate ./internal/codegen/...

which runs:

go run ../../tools/codegen

from the internal/codegen/ package directory.

This binary wires all three generators:

  1. GenerateSchemaToFile — writes schema.xml
  2. GenerateSkill — writes skills/{role}/SKILL.md headers (marker-bounded)
  3. GenerateSubSkill — writes skills/{dir}/SKILL.md sub-skill headers
  4. GenerateAgent — writes agents/{role}.md definitions (fully generated)

Exits non-zero if any generator returns an error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL