ax-gen

Installation
SKILL.md

AxGen Codegen Rules (@ax-llm/ax)

Use this skill to generate AxGen code. Prefer short, modern, copyable patterns. Do not write tutorial prose unless the user explicitly asks for explanation.

Use the ax-mcp skill when AxGen attaches native MCP clients or consumes MCP prompts, resources, tools, tasks, subscriptions, authentication, or events.

Use These Defaults

  • Use ax(...) factory, not new AxGen(...).
  • Always pass an AI instance from ai(...) as the first argument to forward().
  • Streaming uses streamingForward(), not forward() with a stream option.
  • Use schema validation for field shape and constraints.
  • Use addAssert(...) for whole-output hard invariants with correction retries.
  • Use addStreamingAssert(...) for partial streaming hard invariants with fail-fast per-attempt correction retries.
  • Use bestOfN(...) / refine(...) for reward-scored complete outputs.
  • Step hook mutations are applied at the next step boundary (pending pattern).
  • stopFunction accepts a string or string[] for multiple stop functions.
  • Multi-step continues until: all outputs filled, stop function called, or maxSteps reached.
Installs
49
First Seen
Jun 17, 2026
ax-gen from ax-llm.github.io