axiom-sre
Expert SRE investigator for incidents and debugging. Uses hypothesis-driven methodology and systematic triage. Can query Axiom observability when available.
What It Does
- Hypothesis-Driven Investigation - State, test, disprove hypotheses with data queries
- Systematic Triage - Golden signals (traffic, errors, latency, saturation), USE/RED methods
- Memory System - Persistent knowledge base for patterns, queries, facts, and incidents
- Axiom Integration - Query logs, generate shareable links, discover schemas
Installation
# Amp
amp skill add axiomhq/skills/axiom-sre
# npx (Claude Code, Cursor, Codex, and more)
npx skills add axiomhq/skills -s axiom-srePrerequisites
- Access to Axiom deployment(s)
- Tools:
jq,curl, andtimeoutorgtimeout(brew install coreutilson macOS)
Setup
From this skill's installed directory, initialize configuration and memory:
scripts/initOn first run, this creates ~/.config/axiom-sre/config.toml with commented examples and initializes memory. It prints configuration guidance and exits when no deployments are configured. To use a different directory, set SRE_CONFIG_DIR.
Edit ~/.config/axiom-sre/config.toml and add your deployment:
[axiom.deployments.prod]
url = "https://api.axiom.co"
edge_url = "https://us-east-1.aws.edge.axiom.co" # Settings → General → Edge deployment
token = "xaat-your-api-token"
org_id = "your-org-id"Then run scripts/init again.
If you already have ~/.axiom.toml, use scripts/init --migrate instead of the initial scripts/init run. This imports legacy configuration into the new format; it refuses to overwrite an existing SRE config. Other skills may still use ~/.axiom.toml, so keep it for those workflows.
Get your org_id from Settings → Organization and your edge deployment from Settings → General. For the token, create a scoped API token (Settings → API Tokens) with the permissions your workflow needs. Hosted APL runs on the regional edge (POST /v1/query/_apl). Set edge_url when the token cannot list datasets, which is required once that token has query cost limits. Avoid Personal Access Tokens for automated tooling.
Usage
The skill activates for incident response, root cause analysis, production debugging, or log investigation. Key scripts:
# Run APL queries
scripts/axiom-query <deployment> "<apl query>"
# Make API calls
scripts/axiom-api <deployment> GET "/v1/datasets"
# Generate shareable query links
scripts/axiom-link <deployment> "<apl query>" "<time range>"
# Initialize configuration and memory
scripts/initScripts
| Script | Purpose |
|---|---|
axiom-query |
Run APL queries against Axiom |
axiom-api |
Make raw API calls |
axiom-link |
Generate shareable query URLs |
axiom-deployments |
List configured deployments |
init |
Initialize configuration and memory; report configured tools |
mem-write |
Write entries to memory KB |
mem-sync |
Sync org memory from git |
mem-doctor |
Health check all memory tiers |
mem-share |
Push org memory changes |
Key Principles
- Never guess - query to verify
- State facts, not assumptions
- Disprove hypotheses, don't confirm
- Time filter FIRST in all queries
- Discover schema before querying unfamiliar datasets