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, notnew AxGen(...). - Always pass an AI instance from
ai(...)as the first argument toforward(). - Streaming uses
streamingForward(), notforward()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).
stopFunctionaccepts a string or string[] for multiple stop functions.- Multi-step continues until: all outputs filled, stop function called, or
maxStepsreached.