Guide · Agent skill
How to use the Axiom Cost Control agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The controlling-costs skill is an add-on for an AI agent that audits how your Axiom logging account is used, finds data that is ingested but never queried, and helps you decide what to drop, sample or keep. It also deploys a cost dashboard and alert monitors for ingest and query-cost spikes. This guide explains what an agent skill is, how to install this one, how to trigger it, and what to check before letting it touch a live account.
Quick start
- 1Install the ZIP. Download the skill ZIP and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills in the Claude apps.
- 2Install dependencies. Make sure the axiom-sre and building-dashboards skills are installed, along with jq and a bash shell.
- 3Configure your deployment. Create ~/.axiom.toml with your Axiom deployment details, as described in the README.
- 4Make a request. Ask in plain language, for example to reduce costs or set up cost control.
- 5Answer setup questions. Give the agent your deployment name, audit dataset name and contract limit in TB/day.
- 6Review the analysis. Check the Analysis Queue and each DROP, SAMPLE or KEEP recommendation before acting on it.
- 7Clean up if needed. Delete the Cost Control monitors and dashboard when you no longer need them.
What is an agent skill, and what does this one do?
An agent skill is a folder of instructions, reference files and scripts that an AI agent loads when a task matches the skill's description. This one is designed for Axiom users who want to lower ingest spend.
When it runs, the agent analyses Axiom query patterns to find columns and field values that are ingested but never queried, and ranks datasets by how much query value they return for their cost. It can then deploy a cost dashboard and create monitors that warn about daily ingest or query-cost spikes, and produce a report recommending which datasets to drop, sample or keep.
- Finds unused columns and field values in each dataset
- Ranks datasets by Work/GB (query cost per GB ingested)
- Deploys a cost control dashboard
- Creates three cost monitors, including an ingest guard against your contract limit
- Writes a report using the included analysis template
What you need before installing
The skill depends on Axiom and several other tools. Check these first, because every step relies on them.
The source lists these requirements: an Axiom account and deployment with an audit dataset (axiom-audit or similar), access to the axiom-history dataset, the companion skills axiom-sre and building-dashboards, the axiom-api and dashboard-* CLI tools, jq for JSON parsing, and a bash shell. The skill also uses network access and runs scripts.
- An Axiom account and deployment with an audit dataset
- Access to the axiom-history dataset
- Companion skills: axiom-sre and building-dashboards
- axiom-api and dashboard-* CLI tools
- jq for JSON parsing
- bash shell
Install the controlling-costs skill
Download the skill ZIP from our page and unzip it into one of two places. Use ~/.claude/skills/ to make it available across your projects, or a project's .claude/skills/ folder to limit it to that project.
In the Claude apps, you can instead upload the ZIP under Settings → Capabilities → Skills.
The README also mentions an install command, npx skills add axiomhq/skills, which the README says includes the skill dependencies. Install the companion skills as well, since this skill loads them in its first step.
- Option A: unzip into ~/.claude/skills/
- Option B: unzip into your project's .claude/skills/
- Option C: upload the ZIP in the Claude apps under Settings → Capabilities → Skills
~/.claude/skills/controlling-costs/Configure your Axiom deployment
The README says to create ~/.axiom.toml with your Axiom deployment details. The skill refers to deployments by name, such as <deployment>, so the name you configure is the one you will use in requests.
Before any monitors are created, the agent asks you for three things: the deployment name, the audit dataset name, and your contract limit in TB/day. The contract limit is required for the monitors.
- Deployment name
- Audit dataset name (try axiom-audit first; common alternatives are axiom-audit-logs-view and audit-logs)
- Contract limit in TB/day
How to trigger the skill with natural requests
You do not need to type script names. Ask for the outcome you want in plain language, and the agent picks the phases to run. The skill's description matches requests such as reducing Axiom costs, finding unused columns or field values, identifying data waste, or tracking ingest spend.
The skill maps each request to a set of phases. Phase 0 (checking for an existing setup) always runs first.
- "Reduce our Axiom costs" or "find waste" runs discovery, then optimisation
- "Set up cost control" runs discovery, dashboard and monitors
- "Deploy a cost dashboard" runs the dashboard only
- "Create cost monitors" runs the monitors only
- "Check for drift" checks the existing setup only
Examples of what to ask and what happens
Here is a typical workflow. You ask for waste to be found, the agent confirms your deployment and audit dataset, runs the baseline statistics, then analyses the largest datasets one at a time. For each dataset it checks unqueried columns, then field values such as app or service, and records an action of DROP, SAMPLE or KEEP.
For monitors, the agent lists your notification channels and asks which one to use. If you do not want notifications, it creates the monitors without one.
- Ask: "Find waste in our Axiom logs for deployment prod." The agent runs discovery and optimisation.
- Ask: "Set up cost control for prod with a contract of 5 TB/day." The agent creates the dashboard and monitors after confirming the limit.
- Ask: "Check whether our cost dashboard has drifted from the template." The agent runs only the setup check.
- Ask: "Remove the cost control monitors." The agent runs the cleanup steps.
Safety: scripts, network access and deleting data
This skill runs shell scripts and calls Axiom over the network. It creates and deletes dashboards and monitors in your live account. Read the scripts in the scripts/ folder before running them, and run them against a deployment you understand.
Do not drop data based only on the recommendations. Dropping a dataset can remove logs you need for incidents or compliance. Running create-monitors twice creates duplicate monitors, so delete existing ones first when re-deploying.
- Review scripts before the agent runs them
- Check which deployment the agent is targeting
- Review every DROP recommendation against incident and compliance needs
- Delete old monitors before re-running create-monitors
Tips for better results
Run any script with -h to see its full usage. Do not pipe script output to head or tail, because the source says this causes SIGPIPE errors. For ad-hoc APL queries, use the axiom-sre skill's axiom-query rather than calling the CLI directly.
- Run scripts with -h for full usage
- Do not pipe script output to head or tail (causes SIGPIPE errors)
- Install jq before starting
- Use axiom-sre's axiom-query for ad-hoc APL
- Note that dashboard filters use GB/month while scripts use TB/day
What people use it for
- Finding columns in a Kubernetes log dataset that are ingested but never queried
- Creating a dashboard that tracks daily burn rate and projected monthly usage against a contract
- Getting an alert when daily ingest exceeds 1.2 times your contract limit
- Identifying high-volume log values, such as a noisy app, that are never queried and could be sampled
- Producing a cost analysis report for a platform review
Frequently asked questions
Is the Axiom Cost Control skill free?
The skill is published under the MIT licence, as stated on its listing. Your Axiom account and any usage charges are separate and depend on your own Axiom plan.
What do I need to use the controlling-costs skill?
You need an Axiom account and deployment with an audit dataset, access to axiom-history, the axiom-sre and building-dashboards skills, the axiom-api and dashboard-* CLI tools, jq and a bash shell.
How do I install the controlling-costs skill?
Download the ZIP from the page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder. You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
Can I use this skill if I don't use Axiom?
No. Every step depends on Axiom datasets and its API, so the skill will not work without an Axiom deployment.
Will the skill delete my data?
The skill's recommendations can include dropping data, but the source warns that dropping data can lose logs needed for incidents or compliance. Review every recommendation before acting on it. The cleanup steps delete monitors and dashboards, not logs.
Why does the skill ask for a contract limit?
The monitors compare your daily ingest with a contract limit in TB/day. The source says the contract limit is required before the Phase 3 monitors can be created.
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
This skill suits engineering or platform teams that already use Axiom and want evidence-based cuts to ingest spend, or operators who want budget alerts. It is not suitable if you do not use Axiom, or if you cannot review shell scripts before an agent runs them against a live account. Teams that need to keep all logs for compliance should treat its drop recommendations with caution.
Download the skill