Axir language backend

From ax-llm/ax · View interactive version

Axir language backend is an AI agent skill from the GitHub repository ax-llm/ax. Use when adding or changing generated AxIR language backends in this repo, including target registration, codegen templates, package metadata, examples, conformance, and verification. This is a repo-maintainer skill and must not be emitted into generated Ax packages.

How to use this skill

Skill file

AxIR Language Backend

Use this for work on generated Ax libraries such as Python, Java, C++, Go, or future Rust. This is not an Ax product skill from src/ax/skills/; it is repo-local guidance for compiler/backend implementation.

First Checks

Backend Implementation Rules

Required Touchpoints

Acceptance Bar

Avoid

Session validation and cancellation

Raw session schema patterns are defined in ir/axcore/regex.axir; see regex.md

for UTF-16 semantics and matcher invariants. Keep pattern decisions in Core and

run the TypeScript-derived session-ecmascript-pattern-validation.json fixture

in every target. Native agent tests must also exercise valid invocation after

invalid-argument correction, not only pattern matching in isolation.

For cancellation changes, run the native transport tests as well as scripted

session tests. C++ release verification builds a second session test binary with

libcurl enabled so stalled HTTP cleanup is exercised; the core-only binary cannot

prove that behavior. Delegated MCP tests abort only after the child starts its

imported tool and assert settlement, retained usage, and closed parent callbacks.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.