Przejdź do treści
Biblioteka skilli
DevOps i chmura · Analiza

axiom

/axiom

Odpytuje logi i datasety Axiom w języku APL przy badaniu błędów produkcyjnych, awarii webhooków, wzorców w logach i zachowania systemu.

Repozytorium
civitai ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
2
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: axiom.mjs, load-env.mjs

Co robi i kiedy

Odpytuje logi i datasety Axiom w języku APL przy badaniu błędów produkcyjnych, awarii webhooków, wzorców w logach i zachowania systemu.

Oryginalny opis (EN)

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.

Jak działa

  1. Setup
  2. Quick Reference
  3. Commands
  4. Important Notes
  5. Known Datasets
  6. Common Log Names (civitai-prod)
  7. APL Cheatsheet
  8. When to Use
Sekcje z nagłówków SKILL.md, w oryginale · 117 linii, 561 słów
Podgląd 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

```bash
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
Pliki w paczce (4)
  • .gitignore 1 KB
  • SKILL.md 4 KB
  • axiom.mjs 14 KB
  • load-env.mjs 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · civitai/civitai100Apache-2.0
TerminalSkills/skills100Apache-2.0

Migawka bazy z 28.10.2026 · wersja paczki d035fead958c (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100axiom-building-dashboards
    Projektuje i buduje dashboardy Axiom przez API: typy wykresów, zapytania APL i metryk, SmartFilters, układ oraz opcje konfiguracji, także przy migracji ze Splunka.
  • 100axiom-spl-to-apl
    Tłumaczy zapytania Splunk SPL na Axiom APL, podając odpowiedniki poleceń i funkcji oraz przekształcenia składni, także przy migracji ze Splunka.
  • 100axiom-audit-core-data
    Przegląda użycie Core Data pod kątem migracji schematu, produkcyjnych awarii i bezpieczeństwa danych.
  • 90investigate-production
    Ustala, co wydarzyło się na produkcji w Sentry, Axiom i PostHog, i wiąże to z konkretnym kodem w repozytorium.
  • 100find-traces
    Analizuje rozproszone ślady OpenTelemetry z Axiom, szukając po identyfikatorze, błędach, opóźnieniach lub usłudze przy debugowaniu systemów rozproszonych.
  • 100datadog
    Odpytuje i analizuje logi, metryki, ślady APM i monitory Datadog przez API przy debugowaniu problemów produkcyjnych i badaniu alertów.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.