axiom-apl

axiom-apl is a skill for Claude Code from axiomhq/cli. It costs 41 tokens per session (784 once invoked), scanned A, original, MIT.

A reference for Axiom Processing Language (APL), the query language used to analyze observability data such as logs, traces, and metrics.

In plain words
What is it for?
Use it to discover dataset schemas, sample data, filter records, create calculated fields, and run APL queries through the Axiom CLI.
Why use it?
It helps avoid guessing dataset fields and provides syntax for writing, debugging, and improving Axiom queries.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the axiom-cli plugin — 4 skills, 1 hook shipped together

Good fit Use it to discover dataset schemas, sample data, filter records, create calculated fields, and run APL queries through the Axiom CLI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/axiomhq/cli/axiom-apl
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 axiomhq/cli --skill axiom-apl
Clone the repo
git clone --depth 1 https://github.com/axiomhq/cli

Made for: Claude Code.

Or install axiom-cli, the plugin that ships this one along with the rest of its 4 skills, 1 hook.

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 axiom-apl

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/axiomhq/cli/axiom-apl"><img src="https://agentmods.dev/badge/skills/axiomhq/cli/axiom-apl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 784 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.00041 $0.00784
Opus 5.5 $0.00016 $0.00314
Sonnet 5.5 $0.00008 $0.00157
Haiku 4.5 $0.00004 $0.00078

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

Security

Grade A, and why

axiom-apl 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.

skills/axiom-apl/SKILL.md · 109 lines

How it starts

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

Axiom Processing Language (APL)

APL is Axiom's query language for analyzing observability data. This skill provides comprehensive guidance for writing, debugging, and optimizing APL queries.

Quick Reference

Documentation: https://axiom.co/docs/apl/introduction

CLI usage: See references/cli.md

Core Workflow

1. List Available Datasets

axiom dataset list -f json

2. Discover Schema (CRITICAL - Always Do First)

['<dataset>'] | getschema

Never guess field names. The schema shows all fields with their types.

3. Sample Data

['<dataset>'] | limit 10

4. Write Query

See references for operators, functions, and patterns.

APL Syntax Essentials

Dataset Reference

['dataset-name']           // Bracket notation (required for names with dots/dashes)
dataset_name               // Plain identifier (only for simple names)

Field Reference

field_name                 // Plain field
['field.with.dots']        // Bracket notation for dotted fields
['service.name']           // OTel data (see references/otel.md for field mappings)

Basic Query Structure

['dataset']
| where <condition>
| extend <new_field> = <expression>
| summarize <aggregation> by <grouping>
| project <fields>
| sort by <field> desc
| limit 100

Time Handling

Always filter by time first - it's the most selective filter.

// Relative time
| where _time >= ago(1h)
| where _time >= ago(24h) and _time < ago(1h)

// Absolute time
| where _time >= datetime(2024-01-15T10:00:00Z)
| where _time between (datetime(2024-01-15) .. datetime(2024-01-16))

Time functions:

  • ago(timespan) - Relative past time
  • now() - Current time
  • datetime(string) - Parse datetime
  • bin(_time, 5m) - Time bucketing
  • bin_auto(_time) - Automatic bucketing

When NOT to Use

  • Simple field lookup: Use getschema directly instead of invoking the full skill
  • Known query patterns: If you already have a working query, don't re-invoke for syntax help
  • Real-time alerting: Use Axiom Monitors for continuous alerting, not ad-hoc queries

Read the full file on GitHub · 109 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 70179a76e7bb
  2. 1mo ago First seen · 109 lines · 41 tokens per session scan A 8f2012dd2ccb

Subscribe to this mod's changes

axiom-apl is a skill published in the GitHub repository axiomhq/cli (60 stars, last pushed 4d ago), licensed MIT. It adds 41 tokens to every session and 784 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.