System Reliability Engineering (SRE) skill
This page explains how to use the SRE skill to give AI coding agents expert investigation capabilities for incidents and debugging.
The SRE skill turns AI agents into expert SRE investigators:
- Investigation methodology: Hypothesis-driven debugging with systematic triage using Golden Signals and USE/RED methods
- APL query patterns: Reference materials for constructing effective Axiom queries
- Memory system: Persistent storage that learns from debugging sessions, capturing what works and what doesn't
- API helpers: Scripts for querying Axiom directly from the agent
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to ingest data to the dataset you have created.
Set up the SRE skill
- Install Axiom Skills.
- From the installed
axiom-sredirectory, runscripts/init. A pre-existing~/.axiom.tomlconfig may require you to runscripts/init --migrate. - Open
~/.config/axiom-sre/config.toml. If you imported your deployment, check its settings. Otherwise, fill in the[axiom.deployments.prod]example. - Run
scripts/initagain to check which tools are configured.
Use SRE skill
The SRE skill activates automatically when you ask your AI agent about:
- Incident response and debugging
- Root cause analysis
- Log investigation
- Production troubleshooting
Example prompts:
- "Investigate why API latency increased in the last hour"
- "Find the root cause of the 500 errors in production"
- "Analyze error patterns in the logs dataset"
Memory system
By default, the SRE skill stores your personal knowledge base in ~/.config/axiom-sre/memory/kb/.
Tell the agent to remember things
Remember this for next time.Save this query, it worked.Add to memory: the orders team uses #orders-oncall.
Learn automatically
The SRE skill automatically captures what works and what doesn't when:
- A query or approach finds the root cause.
- You correct it, and it records what didn't work and what did.
- A debugging session completes successfully.
Customize with your own knowledge
Customize the SRE skill by adding your own knowledge to the knowledge base files:
facts.md: Team contacts, Slack channels, conventions.integrations.md: Database connections, API endpoints.patterns.md: Failure patterns you've seen before.