axi: Skill for Claude Code

.agents/skills/axi/SKILL.md

axi is a skill for Claude Code, Codex from kunchenguid/axi. It costs 38 tokens per session (3,606 once invoked), scanned B, original, MIT.

Guidelines for designing command-line tools that coding agents operate through a shell. They cover readable, compact output and practical command behavior.

In plain words
What is it for?
Use it when building, changing, or reviewing command-line tools intended for coding agents.
Why use it?
Agents need predictable output and small responses so they can understand results without wasting context or missing important details.

Skill for Claude CodeCodex

Written for Claude Code and Codex: SessionStart hook event, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions Claude Code; installed under .agents/ (shared by several agents).

This is kunchenguid/axi's own configuration. It tells Claude Code and Codex how to work on axi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything axi configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { VERSION } from "../src/version.js"; // leaf module - node builtins only.

About the project

kunchenguid/axi is a set of design principles for building agent-native command-line tools, meaning CLIs shaped for AI agents rather than human users and optimized around token use. It is for developers creating interfaces that agents can use with less overhead than conventional CLIs or structured tool protocols such as MCP. The catalogue instructions and skill describe workflows based on these principles.

kunchenguid/axi · 2,035 stars · on GitHub · axi.md

Reuse

Borrowing it

Nothing to install: this file belongs to kunchenguid/axi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kunchenguid/axi/main/.agents/skills/axi/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kunchenguid/axi

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 axi

README.md
[![agentmods](https://agentmods.dev/badge/skills/kunchenguid/axi/axi.svg)](https://agentmods.dev/skills/kunchenguid/axi/axi)
Your own site
<a href="https://agentmods.dev/skills/kunchenguid/axi/axi"><img src="https://agentmods.dev/badge/skills/kunchenguid/axi/axi.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,606 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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.00038 $0.03606
Opus 5 $0.00019 $0.01803
Sonnet 5 $0.00008 $0.00721
Haiku 4.5 $0.00004 $0.00361

Measured 6d ago against content hash 2f5a6b3dd6f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

axi scanned grade B with 1 finding 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 6d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Claude Code**: use native hooks in `~/.claude/settings.json` or project `.claude/settings.json`. Prefer `SessionStart` to inject compact context via stdout
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • axi — 100% identical, 0 lines differ
.agents/skills/axi/SKILL.md · 274 lines

How it starts

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

Agent eXperience Interface (AXI)

AXI defines ergonomic standards for building CLI tools that autonomous agents interact with through shell execution.

Before you start

Read the TOON specification before building any AXI output.

1. Token-efficient output

Use TOON (Token-Oriented Object Notation) as the output format on stdout. TOON provides ~40% token savings over equivalent JSON while remaining readable by agents. Convert to TOON at the output boundary — keep internal logic on JSON.

tasks[2]{id,title,status,assignee}:
  "1",Fix auth bug,open,alice
  "2",Add pagination,closed,bob

2. Minimal default schemas

Every field in stdout costs tokens — multiplied by row count in collections. Default to the smallest schema that lets the agent decide what to do next: typically an identifier, a title, and a status.

  • Default list schemas: 3-4 fields, not 10
  • Default limits: high enough to cover common cases in one call (if most repos have <100 labels, default to 100, not 30)
  • Long-form content (bodies, descriptions) belongs in detail views, not lists
  • Offer a --fields flag to let agents request additional fields explicitly

3. Content truncation

Detail views often contain large text fields. Omitting them forces agents to hunt; including them wastes tokens. Truncate by default and tell the agent how to get the full version.

task:
  number: 42
  title: Fix auth bug
  state: open
  body: First 500 chars of the issue body...
    ... (truncated, 8432 chars total)
help[1]: Run `tasks view 42 --full` to see complete body
  • Never omit large fields entirely — include a truncated preview
  • Show the total size so the agent knows how much it's missing
  • Suggest the escape hatch (--full) only when content is actually truncated
  • Choose a truncation limit that covers most use cases (500-1500 chars)

4. Pre-computed aggregates

The most expensive token cost is often not a longer response — it's a follow-up call. If your backend has data that agents commonly need as a next step, compute it and include it.

Read the full file on GitHub · 274 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. 6d ago First seen · 274 lines · 38 tokens per session scan B 2f5a6b3dd6f8

Subscribe to this mod's changes

axi is a skill published in the GitHub repository kunchenguid/axi (2,035 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 3,606 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens