ax-go-signature

Generate Go signatures and JSON schemas for Ax-generated package code.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write Go code against the generated Ax package for typed signatures, schema generation, validation, and tool argument shapes without drifting into TypeScript-only APIs.

Core Features & Use Cases

  • Typed Signatures: Define input and output contracts using the generated Go package API.
  • Schema and Validation: Produce JSON-schema-compatible shapes for prompts, outputs, and tool inputs.
  • Use Case: A developer building a Go agent can turn a natural-language signature into a validated request and response model that matches the generated Ax runtime.

Quick Start

Use this skill to draft Go code that creates an Ax signature and converts it into a JSON schema using the generated package API.

Frequently Asked Questions about ax-go-signature

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

FAQPage Schema
How do I generate JSON schema definitions for Go signatures in Ax?

This Skill generates Go signature and schema definitions for Ax-generated package code. It applies to typed inputs, typed outputs, and tool argument shapes to produce JSON-schema-compatible structures aligned with the compiled runtime.

How do I create typed signatures for a Go agent using Ax?

You define input and output contracts using the generated Go package API. This allows you to turn a natural-language signature into a validated request and response model that matches the generated Ax runtime.

How does Ax handle validation for Go tool argument shapes?

The Skill produces JSON-schema-compatible shapes for tool argument inputs. This ensures that tool arguments passed to the generated Go package API are validated against the defined contracts within the Ax runtime.

Can I use TypeScript APIs instead of Go for Ax signature generation?

This Skill helps you write Go code against the generated Ax package without drifting into TypeScript-only APIs. It ensures your typed signatures, schema generation, and validation remain strictly aligned with the Go runtime.

Do I need native package APIs and AxIR manifests to write Go signatures?

Yes, you require native package APIs, package examples, and generated AxIR manifests. These inputs are necessary to keep your Go code for typed signatures and schema generation aligned with the compiled runtime.