ax-go-gen

Generate Go code for Ax structured generation workflows using ax-llm packages.

2.9k|186|Updated Feb 23, 2023
One-click install
npx skills add https://github.com/ax-llm/ax --skill ax-go-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ax-go-gen
Source: https://github.com/ax-llm/ax/tree/main/website/static/go/.well-known/agent-skills/ax-go-gen
Command: npx skills add https://github.com/ax-llm/ax --skill ax-go-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write correct Go code for Ax structured generation workflows without guessing the generated package API or mixing in TypeScript-only patterns.

Core Features & Use Cases

  • Structured generation: Build AxGen programs from signatures and produce typed outputs in Go.
  • Tools and MCP integration: Attach typed tools or MCP-derived tools to generation calls.
  • Runtime and transport patterns: Use real network providers or deterministic no-key examples for local validation, provider mapping, streaming, traces, and output parsing.
  • Use case: A developer can use this Skill to implement a Go assistant that forwards a question to an LLM, parses the structured response, and records usage and traces consistently.

Quick Start

Ask the assistant to create a Go example that uses github.com/ax-llm/ax/packages/go to build an AxGen program, call forward, and return a parsed structured result.

Frequently Asked Questions about ax-go-gen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate structured output in Go using Ax?

To generate structured output in Go, you build AxGen programs from signatures and use forward calls to produce typed outputs. This Skill generates the correct Go code for structured generation, ensuring you use the proper Ax package APIs instead of guessing or mixing in TypeScript patterns.

Can I attach typed tools and MCP integrations to Go AxGen calls?

Yes, you can attach typed tools and MCP-derived tools to Go AxGen generation calls. This Skill generates the Go code needed to integrate tools into your structured generation workflows, handling the specific API requirements for tool attachment and forward calls.

Does the Ax Go package support streaming responses and usage tracking?

Yes, the Ax Go package supports streaming responses, traces, and usage accounting. This Skill helps you implement these runtime and transport patterns in Go, allowing you to forward calls to network providers or use deterministic no-key examples for local validation.

How do I parse LLM responses in Go without guessing the Ax API?

You can parse LLM responses deterministically by using this Skill to generate aligned Go code. It requires generated Ax package APIs, package examples, and capability manifests to ensure your output parsing and provider-mapped implementations match the AxIR source-of-truth.

What is the best way to build a Go assistant with Ax structured generation?

The best way to build a Go assistant is to create an AxGen program that forwards a question to an LLM, parses the structured response, and records usage and traces. This Skill generates the exact Go code needed to implement this workflow consistently.