ax-go-flow

ax-go-flow is a skill for Claude Code, Codex from ax-llm/ax. It costs 43 tokens per session (2,713 once invoked), scanned A, original, Apache-2.0.

A guide for writing Go programs with AxFlow, a package for connecting AI programs and other steps into workflow graphs. It covers nodes, state, nested programs, caching, errors, and optimization components.

In plain words
What is it for?
Use it to compose Go-based AI flows, define inputs and outputs, connect workflow steps, use provider-backed or scripted transports, and add caching or optimization.
Why use it?
Workflow code can become difficult to structure when steps share data or depend on one another. The guide provides the package's supported patterns, examples, manifests, and transport options.

Skill for Claude CodeCodex

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

Good fit Use it to compose Go-based AI flows, define inputs and outputs, connect workflow steps, use provider-backed or scripted transports, and add caching or optimization.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ax-llm/ax/ax-go-flow
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,969 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 ax-go-flow
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 ax-go-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/ax-llm/ax/ax-go-flow/github.svg)](https://agentmods.dev/skills/ax-llm/ax/ax-go-flow)
Your own site
<a href="https://agentmods.dev/skills/ax-llm/ax/ax-go-flow"><img src="https://agentmods.dev/badge/skills/ax-llm/ax/ax-go-flow/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 ax-go-flow

Your own site · 80×15
<a href="https://agentmods.dev/skills/ax-llm/ax/ax-go-flow"><img src="https://agentmods.dev/badge/skills/ax-llm/ax/ax-go-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,713 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.00043 $0.02713
Opus 5.5 $0.00017 $0.01085
Sonnet 5.5 $0.00009 $0.00543
Haiku 4.5 $0.00004 $0.00271

Measured 3d ago against content hash f14b2ccdb1fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ax-go-flow 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 3d 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.

packages/go/skills/ax-go-flow/SKILL.md · 178 lines

How it starts

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

AxFlow For Go

This skill helps an agent write Go code with the generated Ax package github.com/ax-llm/ax/packages/go. Use the generated package API, examples, and manifests; do not import TypeScript-only APIs unless you are editing the TypeScript package.

When To Use

  • Compose generators, agents, and nested flows into a workflow graph.
  • Reason about flow state, node inputs, returns, caching, and errors.
  • Use generated package examples for flow graphs and provider-backed flows.

Package Facts

  • Language: Go.
  • Package: github.com/ax-llm/ax/packages/go.
  • Package API docs: API.md and axir-api.json.
  • Capability manifest: axir-capabilities.json.
  • Runnable examples: examples/.
  • Real network support: yes.
  • Scripted no-key transport support: yes.
  • Runtime profiles: javascript-goja.

Core Pattern

draft := ax.NewAx("topicText:string -> draftText:string", nil)
wf := ax.NewFlow(map[string]ax.Value{"id": "docs.coreFlow"}).
  Execute("draft", draft, map[string]ax.Value{
    "reads": ax.Array("topicText"),
    "writes": ax.Array("draftResult", "draftText"),
  }).
  Returns(map[string]ax.Value{"draftText": "draftText"})

More Patterns

Typed programs

Build each flow node from its own input/output contract.

classifier := ax.NewAx("requestText:string -> route:class \"support, sales, engineering\"", nil)
responder := ax.NewAx("requestText:string, route:string -> responseText:string", nil)

Class decision

Declare reads and writes so the responder waits for the typed route.

branchFlow := ax.NewFlow(map[string]ax.Value{"id": "docs.branchFlow"}).
  Execute("classifier", classifier, map[string]ax.Value{"reads": ax.Array("requestText"), "writes": ax.Array("classifierResult", "route")}).
  Execute("responder", responder, map[string]ax.Value{"reads": ax.Array("requestText", "route"), "writes": ax.Array("responderResult", "responseText")}).
  Returns(map[string]ax.Value{"route": "route", "responseText": "responseText"})

Read the full file on GitHub · 178 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. 3d ago Changed f14b2ccdb1fc
  2. 4d ago Changed b16cf3996da2
  3. 6d ago Changed 057678c1a60d
  4. 7d ago Changed 3851d8cc384a
  5. 9d ago Changed d5a80424c820
  6. 11d ago Changed 5e86d01a4fe6
  7. 13d ago Changed 64d3f93d04cf
  8. 16d ago Changed 4891d9e33554
  9. 17d ago Changed 997d94fd720b
  10. 18d ago First seen · 178 lines · 43 tokens per session scan A c6dc256656b6

Subscribe to this mod's changes

ax-go-flow is a skill published in the GitHub repository ax-llm/ax (2,969 stars, last pushed 3d ago), licensed Apache-2.0. It adds 43 tokens to every session and 2,713 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-08-30.

Related

Other skills, from other repositories

output-dev-credentials

Store and reference encrypted secrets in Output SDK workflows using @outputai/core/credentials. Use when integrating API keys, database passwords, or third-party tokens.

growthxai/output · 36 tokens

output-dev-workflow-cost

Calculate and display the cost of an Output SDK workflow execution run. Use when checking LLM token costs, API service costs, or total spend for a specific workflow run.

growthxai/output · 40 tokens

output-error-direct-io

Fix direct I/O in Output SDK workflow functions. Use when workflow hangs, returns undefined, shows "workflow must be deterministic" errors, or when HTTP/API calls are made directly in workflow code.

growthxai/output · 45 tokens

output-credentials-edit

View, edit, and set encrypted credentials in an Output.ai project. Use when adding secrets, updating API keys, verifying credential values, or retrieving a specific credential.

growthxai/output · 38 tokens

capture-api-response-test-fixture

For provider response parsing tests, we aim at storing test fixtures with the true responses from the providers (unless they are too large in which case some cutting that does not change semantics is advised).

vercel/ai · 13 tokens

prisma-8

Use when working in a project that depends on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo (Prisma 8, formerly Prisma Next): editing contract.prisma or a contract.ts builder, running prisma contract emit, planning or applying migrations, editing migration.ts, writing db.orm / db.sql / db.query…

prisma/orm · 220 tokens