Skip to content
Machine Learning
Skill

/axiom

Query Axiom logs and datasets using APL (Axiom Processing Language). Use when investigating production errors, debugging webhook failures, checking log patterns, or analyzing system behavior.

From plugin
civitai
7.3k54 skills17 agents3 commands

Claude Code

$ npx -y skills add civitai/civitai --skill axiom --agent claude-code

SKILL.md

axiom.SKILL.md
name: axiom
description: Query Axiom logs and datasets using APL (Axiom Processing Language). Use when investigating production errors, debugging webhook failures, checking log patterns, or analyzing system behavior.
allowed-tools: Bash, Read

Axiom

Query Axiom datasets using APL (Axiom Processing Language). Supports log search, aggregation, field analysis, and time-based filtering.

Setup

Create `.env` in this skill directory:

AXIOM_TOKEN=xaat-your-token-here
AXIOM_ORG_ID=your-org-id
AXIOM_DATASTREAM=civitai-prod
AXIOM_DOMAIN=api.axiom.co

Token needs **read/query** permissions (the project .env token is ingest-only).

Quick Reference

SKILL_DIR=".claude/skills/axiom"

# List available datasets
node "$SKILL_DIR/axiom.mjs" datasets

# Run an APL query
node "$SKILL_DIR/axiom.mjs" query "['civitai-prod'] | where name == 'nowpayments-webhook' | take 10" --format legacy --json

# Search logs with filters
node "$SKILL_DIR/axiom.mjs" query "['civitai-prod'] | where name == 'some-service' and type == 'error' | project _time, message, error | sort by _time desc | take 50" --start "2026-03-01T00:00:00Z" --end "2026-04-01T00:00:00Z" --format legacy --json

# Count errors by message
node "$SKILL_DIR/axiom.mjs" query "['civitai-prod'] | where name == 'my-service' | summarize count() by message | order by count_ desc" --start "2026-03-01T00:00:00Z" --format legacy --json

# Top values for a field
node "$SKILL_DIR/axiom.mjs" query "['civitai-prod'] | where type == 'error' | summarize count() by name | order by count_ desc | take 20" --format legacy --json

Commands

| Command | Description | |---------|-------------| | `datasets` | List all available datasets | | `dataset-info <name>` | Get info about a specific dataset | | `query "<APL>"` | Run any APL query | | `search <dataset> --where "..."` | Search with filters | | `count <dataset> --where "..." --by <field>` | Count/aggregate | | `tail <dataset>` | Most recent events | | `top <dataset> <field>` | Top values for a field |

Important Notes

  • **Use `--format legacy --json`** for reliable output. The tabular format can return empty rows for some queries.
  • **Time ranges**: Use `--start` and `--end` flags with ISO 8601 timestamps, or use `ago()` in APL (e.g., `_time > ago(24h)`).
  • **Field paths**: Log data is under the `data.` prefix in legacy format. Use field names directly in APL (e.g., `name`, `message`, `type`).
  • **Summarize queries**: Return results in `buckets.series[].groups[]` in legacy format, not in `matches[]`.

Known Datasets

| Dataset | Description | |---------|-------------| | `civitai-prod` | Main production logs (services, webhooks, jobs) | | `civitai-stage-new` | Staging environment | | `civitai-next` | Next.js application logs | | `webhooks` | Webhook event tracking | | `clickhouse` | ClickHouse integration errors | | `notifications` | Notification service logs | | `orchestration-otlp` | Orchestration telemetry | | `python-worker` | Python worker process logs |

Common Log Names (civitai-prod)

Services log with a `name` field. Common ones:

  • `nowpayments-webhook` — NowPayments IPN webhook handler
  • `nowpayments-service` — NowPayments deposit processing
  • `reconcile-nowpayments-job` — Reconciliation cron job

APL Cheatsheet

# Filter
| where name == "value"
| where field contains "substring"
| where field matches regex "pattern"

# Time range
| where _time > ago(7d)
| where _time between (datetime(2026-03-01) .. datetime(2026-03-31))

# Aggregate
| summarize count() by field
| summarize avg(duration), max(duration) by name
| summarize count() by bin(_time, 1h)

# Sort and limit
| sort by _time desc
| take 50
| order by count_ desc

# Select fields
| project _time, name, message, error

# Extend (computed columns)
| extend duration_ms = duration / 1000

When to Use

  • Investigating production errors or webhook failures
  • Checking if a specific service is logging errors
  • Analyzing error patterns over time
  • Debugging payment/deposit processing issues
  • Monitoring reconciliation job health
  • Verifying deployment behavior changes
Read more
@civitai
Ships withcivitai

A repository of models, textual inversions, and more

7.3k54 skills17 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
7.3k
Star history of civitai/civitai on GitHub, a chart by star-history.com

Other skills on civitai.

add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,…

@civitai@civitaiInstall Skill
add-generation-support

add-generation-support

Wire an existing ecosystem into the generation system. Adds generation support to basemodel.constants.ts, creates graph and…

@civitai@civitaiInstall Skill
add-trainer-model

add-trainer-model

Add a new trainable base model to BOTH trainers end-to-end — the in-app trainer (main Next.js app, src/) and the Training Studio…

@civitai@civitaiInstall Skill
add-training-support

add-training-support

Wire an existing ecosystem into the LoRA training system so it appears as a trainable base model in the training form. Adds the…

@civitai@civitaiInstall Skill
app-assistant-trace

app-assistant-trace

Trace a submitted App Block back to the App Assistant chats that built it and diagnose why it came out the way it did (e.g. why…

@civitai@civitaiInstall Skill

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with root…

mlflow12d29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…

skills4w11k
@huggingface@huggingfaceInstall Skill
feast-architecture

feast-architecture

Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…

feast2w7.4k
@feast-dev@feast-devInstall Skill
accessing-mlflow

accessing-mlflow

Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metrics…

@nvidia@nvidiaInstall Skill

Questions about axiom.

Which coding agents can use axiom?
axiom installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.