Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates AxGen code for @ax-llm/ax, covering forward, streaming, validation, assertions, step hooks, and self-tuning.
16% 100%+84 ptsof test cases passed
Passed 25 of 25 test cases with the skill, and 4 of 25 without it.
Construct an Ax generator signature where the input accepts a structured product search payload containing query (string) and filters (array of strings), and output returns matching item IDs (array of strings). Use standard Zod schema objects rather than string signature syntax.
Uses f().input() with a Zod object schema for inputs.
This test ran on v6. v16 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
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.
ax(...) factory, not new AxGen(...).ai(...) as the first argument to forward().streamingForward(), not forward() with a stream option.addAssert(...) for whole-output hard invariants with correction retries.addStreamingAssert(...) for partial streaming hard invariants with fail-fast per-attempt correction retries.bestOfN(...) / refine(...) for reward-scored complete outputs.stopFunction accepts a string or string[] for multiple stop functions.maxSteps reached.import { ai, ax, s } from '@ax-llm/ax';
const llm = ai({
name: 'openai',
apiKey: process.env.OPENAI_APIKEY!,
});
// Inline signature
const gen = ax('input:string -> output:string, reasoning:string');
// Reusable signature
const sig = s('question:string, context:string[] -> answer:string');
const gen2 = ax(sig);
// With options
const gen3 = ax('input -> output', {
description: 'A helpful assistant',
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.