Guide · Agent skill
How to use the Axiom SRE Incident Investigator agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The axiom-sre skill gives an AI agent the working habits of a site reliability engineer during a live incident or production bug. It stabilizes the system first, then forms hypotheses and checks them against data from tools such as Axiom, Grafana, Pyroscope, Kubernetes and Slack. This guide explains what the skill does, how to install it, how to start an investigation with natural requests, and what it needs and touches on your systems.
Quick start
- 1Download the skill. Download the axiom-sre ZIP from the page where you found this guide.
- 2Install it. Unzip it into ~/.claude/skills/ for all projects, or into a project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills in the Claude apps.
- 3Run the init script. Start a session and let the agent run scripts/init, which creates ~/.config/axiom-sre/config.toml on first run.
- 4Add your tools to the config. Add at least one tool such as Axiom, Grafana, Pyroscope, Sentry or Slack to the config file, then run init again.
- 5Describe the incident. Ask in plain language, including the symptom, the service and the time window, so the agent can triage and discover the right datasets.
- 6Review and act. Check the queries and findings the agent reports, and have a human approve any rollback or change before it is applied.
What the axiom-sre skill makes the agent do
Once installed, the agent follows a structured incident process instead of guessing. During a P1 outage it first looks for the cause that can be stopped quickly, for example a recent deploy that should be rolled back, a feature flag that was toggled, or a traffic spike that needs rate limiting. Only after the bleeding is contained does it debug.
For the investigation itself, the skill tells the agent to state hypotheses, design queries that try to disprove them, and label any unverified claim. It is instructed to discover available datasets and names before querying, and to recover by re-running discovery when a query returns a not-found error. The skill also includes a postmortem template for writing up the incident afterwards.
- Stabilize first, then debug, with rollback as a recommended first move for deploy-related outages
- Hypothesis-driven analysis, with conclusions tied to query results
- Discovery before querying for Axiom, Grafana, Pyroscope, Kubernetes and Slack
- A persistent memory system for patterns, queries, facts and incidents
- A postmortem template in reference/postmortem-template.md
How to install the axiom-sre skill
Download the skill ZIP from the page where you found this guide. Then choose one of the two install routes below. If you want the skill for every project on your machine, unzip it into your personal skills folder. If you only want it for one repository, unzip it into that project's .claude/skills/ folder.
If you use the Claude apps instead of a local setup, upload the skill under Settings → Capabilities → Skills. The skill is named axiom-sre and its entry point is SKILL.md, so after unzipping, the folder should contain SKILL.md, a README.md and a reference/ directory.
- Personal install: unzip into ~/.claude/skills/
- Project install: unzip into the project's .claude/skills/ folder
- Claude apps: Settings → Capabilities → Skills, then upload the skill
~/.claude/skills/Run the init script and add your tools
When the skill activates, the agent runs scripts/init first. The first time, init creates the configuration file at ~/.config/axiom-sre/config.toml and creates the memory directories. The init script does not query anything over the network.
If no deployments are configured yet, init prints setup guidance and exits. Add at least one tool (Axiom, Grafana, Pyroscope, Sentry or Slack) to the config file, then run init again. Note that the paths in the skill are relative to the folder containing SKILL.md, so the agent resolves that absolute path before using scripts/init.
scripts/initHow to trigger the skill with natural requests
You do not need special syntax. The skill's description covers incident response, root cause analysis, production debugging and log investigation, so plain requests are enough. Give the agent the symptom, the service and the time window if you know them. The more specific you are, the faster the agent can design useful queries.
Examples of requests that should activate the skill:
- We're seeing a spike in 5xx errors on checkout since 14:30. Help me triage it.
- Find the root cause of the latency increase on orders-api in the last hour.
- Investigate these logs and tell me which hypothesis the data supports.
- Production is slow after the last deploy. What should we roll back or check first?
- Write a postmortem for yesterday's database outage using our template.
What a typical investigation looks like
The agent works in a loop. It discovers what datasets and names exist in each configured tool, checks the schema of any dataset it plans to query, and then checks the values of fields it plans to filter on. Queries are run with the matching tool script, such as axiom-query for Axiom. Results are reported with timestamps, IDs and counts where possible.
The skill sets a strict rule that the agent must not use field names or dataset names from memory. For an Axiom dataset, the first query is a schema check with getschema, shown below. You can ask the agent to show you the discovery output and queries so you can review them.
- Discover the tool's datasets or sources before any query
- Run getschema on each dataset, including _time
- Enumerate low-cardinality fields such as service names, status codes and log levels
- Confirm findings with the user and mark anything unverified
['dataset'] | where _time > ago(15m) | getschemaRequirements, network use and safety notes
The skill needs a Bash-capable agent environment because it runs bundled scripts, including init, the discover scripts, axiom-query, grafana-query, pyroscope-diff, kubectl, slack and curl-auth. The README lists jq and curl as tools you need. You also need access to the observability or cluster accounts you want the agent to query, and API credentials for each tool. The skill runs scripts and uses the network.
Credentials are meant to stay out of visible output. The skill instructs the agent to make authenticated requests through scripts/curl-auth, which passes tokens through environment variables, and to never print secrets, write them to files or send them anywhere. Because the skill runs shell scripts and queries live systems, review any change it proposes before a human applies it.
- Requires Bash, jq and curl
- Needs accounts and API credentials only for the tools you enable
- Runs scripts and makes network calls to the systems you configure
- Authenticated calls go through curl-auth so secrets are not shown
- Review proposed rollbacks, config changes and kubectl actions before applying them
Tips for better results
Give the agent a time window and a service name at the start. Ask it to show the discovery output when a name looks wrong. If a query fails with a not-found or unknown dataset error, the skill tells the agent to re-run discovery and retry with the correct name, so you do not need to fix names yourself.
Use the memory system and postmortem template after each incident. The skill is designed to save useful patterns and facts as it learns them, so the next investigation starts with more context.
- Start with the symptom, the service and a time window
- Enable only the tools you actually need, since discovery runs per tool
- Ask the agent to label any claim it has not verified
- Use the postmortem template to close the incident
What people use it for
- Triage a spike in 5xx errors on a service after a deploy and decide whether to roll back
- Investigate a latency increase by checking logs and performance data in Axiom and Grafana
- Work through log patterns during a production bug and test competing hypotheses against the data
- Draft a postmortem for an incident using the included template
Frequently asked questions
How do I install the axiom-sre agent skill?
Download the skill ZIP and unzip it into ~/.claude/skills/ for your personal setup, or into a project's .claude/skills/ folder for one repository. In the Claude apps you can instead upload it under Settings → Capabilities → Skills.
What do I need to run the axiom-sre skill?
You need a Bash-capable agent environment, jq and curl, and a configuration file at ~/.config/axiom-sre/config.toml, which the init script creates. You also need accounts and API credentials for the tools you want to use, such as Axiom, Grafana, Pyroscope, Sentry, Slack or Kubernetes.
Is the axiom-sre skill free?
The skill is listed under the MIT licence. Check the licence file in the source for the exact terms. Any tools you connect, such as Axiom or Grafana, have their own accounts and pricing.
Can I use the skill without Axiom?
Yes, the skill can work with Grafana, Pyroscope, Sentry, Slack or Kubernetes if those are configured. Without any configured observability tools, it will prompt you to set them up, and its main value depends on querying real data.
Why does the agent say a dataset or name is not found?
The skill tells the agent to run the matching discover script, such as scripts/discover-axiom, pick the correct name from its output and retry. If the error persists, check that the tool is configured in config.toml and that your credentials have access.
Does the axiom-sre skill fix production issues automatically?
No. The skill runs shell scripts and queries live systems, and it is designed to recommend steps such as rollbacks. A human should review and approve any change before it is made.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use axiom-sre if you are on call or debugging production and your team already uses Axiom or Grafana, since the skill's value depends on querying real data. Pick something else if you have no observability tools configured or you want an agent that fixes systems on its own without human review.
Download the skill