Use when writing Go code with `github.com/ax-llm/ax/packages/go` for string signatures, field descriptors, JSON schema output, validation, and typed tool argument shapes.
This skill helps an agent write Go code with the generated Ax package github.com/ax-llm/ax/packages/go. Use the generated package API, examples, and manifests; do not import TypeScript-only APIs unless you are editing the TypeScript package.
github.com/ax-llm/ax/packages/go.API.md and axir-api.json.axir-capabilities.json.examples/.javascript-goja.import ax "github.com/ax-llm/ax/packages/go"
sig := ax.NewSignature("question:string -> answer:string")
schema := sig.ToJSONSchema(nil)Use the string form when field names and types are enough.
program := ax.NewAx("questionText:string -> answerText:string", nil)A class field constrains the model to a known label set.
router := ax.NewAx(
"messageText:string -> routeClass:class \"support, sales, engineering\"",
nil,
)Go exposes generated signature and field records directly.
signature := ax.AxSignature{
Inputs: []ax.Field{{
Name: "contactEmail",
Type: ax.FieldType{Name: "string", Format: "email"},
}},
Outputs: []ax.Field{{
Name: "partySize",
Type: ax.FieldType{Name: "number", Minimum: 1, Maximum: 12},
}},
}Render the native signature for tools, validators, or external consumers.
schema := signature.ToJSONSchema(nil)Attach the native signature to AxGen before the forward call.
program := ax.NewAx("contactEmail:string -> partySize:number", nil)
program.Signature = signature
output, err := program.Forward(ctx, client, inputs, nil)Start from the complete programs under examples/, then browse the larger gallery at https://axllm.dev/go/subsystems/s/.
axllm.S, axllm.FieldType, axllm.AxSignatureaxllm.Fn, axllm.Toolprovider-api examples only when the user explicitly has provider credentials available.no-key examples for deterministic local checks and provider request mapping.tools/*/skills/ into user packages.If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.