axir-language-backend

axir-language-backend is a skill for Claude Code, Codex from ax-llm/ax. It costs 57 tokens per session (1,748 once invoked), scanned A, original, Apache-2.0.

A maintainer guide for adding generated-language backends to the AxIR code generator, including Rust, Python, Java, C++, and Go.

In plain words
What is it for?
Use it when registering a target language, changing code-generation templates, adding examples, or checking generated-package conformance.
Why use it?
It keeps compiler behavior consistent while allowing each generated library to use natural language-specific wrappers and packaging.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when registering a target language, changing code-generation templates, adding examples, or checking generated-package conformance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ax-llm/ax/axir-language-backend
About the project

Ax is a TypeScript-first programming framework for building applications with large language models through typed generation, agents, workflows, and optimization tools. It is intended for developers who want one model for LLM programs across TypeScript, Python, Java, C++, Go, Rust, and other runtimes.

ax-llm/ax · 2,998 stars · on GitHub · axllm.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ax-llm/ax --skill axir-language-backend
Clone the repo
git clone --depth 1 https://github.com/ax-llm/ax

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for axir-language-backend

README.md
[![agentmods](https://agentmods.dev/badge/skills/ax-llm/ax/axir-language-backend/github.svg)](https://agentmods.dev/skills/ax-llm/ax/axir-language-backend)
Your own site
<a href="https://agentmods.dev/skills/ax-llm/ax/axir-language-backend"><img src="https://agentmods.dev/badge/skills/ax-llm/ax/axir-language-backend/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for axir-language-backend

Your own site · 80×15
<a href="https://agentmods.dev/skills/ax-llm/ax/axir-language-backend"><img src="https://agentmods.dev/badge/skills/ax-llm/ax/axir-language-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,748 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01748
Opus 5.5 $0.00023 $0.00699
Sonnet 5.5 $0.00011 $0.00350
Haiku 4.5 $0.00006 $0.00175

Measured 1mo ago against content hash 2bd503ab2e2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

axir-language-backend scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tools/axir/skills/axir-language-backend/SKILL.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  • Confirm the target is a generated Ax user library, not a public AxIR API.
  • Inspect current target seams before editing: tools/axir/internal/axir/codegen.go, verify.go, runtime_model.go, the existing *_core_emit.go files, and target templates.
  • Check user-facing package names in docs before choosing names. Do not expose axir, ax-go, or compiler-internal branding in generated library metadata.

Backend Implementation Rules

  • Keep semantics Core-owned. Provider mapping, Agent context/runtime behavior, Flow graph semantics, optimizer/GEPA behavior, envelopes, state, logs, and traces should come from Core helpers/descriptors.
  • GEPA baseline reports must come from the original program's capped validation pass before bootstrap, survive seed domination, and use selection's objective averaging/scalarization. Count baseline and seeded validation against the same metric budget; bootstrap generation has its own limits. Build demos from fresh training evaluation rows, never a retained trace tree.
  • Keep target code idiomatic but thin. Target templates own language wrappers, dynamic value representation, transports, error boundary shape, package metadata, and examples.
  • Error catch/rethrow conversions must preserve the concrete generation error type and its nested causes, including provider status and request metadata. Exercise both agent forward and streaming boundaries with failures in each stage.
  • Prefer standard-library dependencies for base packages. Optional runtime profiles may remain dependency-bearing and opt-in.
  • Use deterministic ordering for generated output, JSON/string rendering, prompt fields, snapshots, catalogs, action logs, and conformance output.
  • Public APIs should feel native in the target language while preserving Ax concepts. Document unavoidable naming differences in generated README/examples.
  • Capability manifests must be truthful. Do not list unsupported_capabilities for a generated package that is included in default verification; either implement the surface or remove the public/manifest claim.
  • Concrete public generated methods must never be placeholder-only bodies such as pass, return None, return null, return nil, Value::Null, empty vectors, or generic "not implemented"/"unsupported" fallbacks. Validation errors remain acceptable for invalid inputs, unknown provider names, and unknown runtime protocol ops.
  • Abstract/base interfaces may describe fallible boundaries, but every concrete generated class/struct that is advertised by the manifest must implement claimed provider, router, balancer, runtime session, AxGen, AxAgent, AxFlow, and optimizer operations.
  • Conformance dispatch must be explicit for all claimed feature groups. Do not add a silent catch-all that makes unsupported fixture kinds pass without executing an implementation path.
  • Conformance coverage must be semantic, not just dispatch-shaped. Every generated package must emit conformance-coverage.json with each claimed fixture kind/operation classified as semantic, validation-error, transport-boundary, or explicitly-not-claimed; default-verified targets must not use presence-only.
  • Runner code must reject guard-only shortcuts: no broad expectation helpers, empty fixture arms, suite-name-only dispatch, self-comparisons, or checks that only prove an expected key exists. If a fixture expects a validation error, tie the generated error to the fixture expectation and keep the implementation path explicit.
  • Provider API and no-key examples must cover every claimed public surface class: chat, stream, embeddings, audio/realtime mapping helpers when claimed, routers/balancers, runtime protocol, AxGen, AxAgent, AxFlow, and optimizer artifacts.

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 2bd503ab2e2e
  2. 1mo ago Changed · +1 lines d6b6caed9265
  3. 2mo ago Changed · +14 lines f91e019fd1ea
  4. 2mo ago First seen · 60 lines · 57 tokens per session scan A 0fbf95c5410e

Subscribe to this mod's changes

axir-language-backend is a skill published in the GitHub repository ax-llm/ax (2,998 stars, last pushed today), licensed Apache-2.0. It adds 57 tokens to every session and 1,748 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

axir-language-backend compared with skills from other repositories

axir-language-backend next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
axir-language-backendax-llm/axSkill3.0ktodayApache-2.0A57Claude Code, Codex
output-dev-code-stylegrowthxai/outputSkill445todayApache-2.0A50Claude Code
migrate-from-ai-sdkDeuz-AI/Deuz-SDKSkill5046d agoMITA118Claude Code, Codex
typescript-expertnusabyte-my/jebat-coreSkill5yesterdaynoneA14Claude Code, Codex
psl-ast-layersprisma/ormSkill48ktodayApache-2.0A78Claude Code, Codex
no-bare-castsprisma/ormSkill48ktodayApache-2.0A52Claude Code, Codex
bun-runtimeaffaan-m/ECCSkill314kyesterdayMITA34Claude Code, Codex