# Axiom audit energy

> Axiom audit energy is an open-source agent skill for developer tools. Audits an iOS/Swift codebase for battery-draining energy anti-patterns before release. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-audit-energy
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-audit-energy
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill turns the agent into an energy auditor for Apple-platform Swift code. It scans for timers, polling loops, continuous location, animations that keep running off screen, background mode registrations, network request patterns, GPU-heavy effects, and frequent disk writes. Each finding is checked against the surrounding code before it is reported, so the agent is expected to read the matched files rather than rely on grep hits alone.

The workflow has the agent first build a short map of background activity and periodic work, then run eight detection categories, reason about unnecessary work when features run while hidden, and combine related findings into higher severity. It ends with a health score and a severity-ranked report with suggested code fixes, and it recommends profiling with the Power Profiler in Instruments after changes. Test, preview, vendor and build folders are excluded from the scan.

It works on a project folder that the agent can search and read, using file search and text search tools. No external services, scripts or API keys are involved, and the skill's own notes say it cannot run the optional crash-symbolication command itself.

## When your agent uses it

> Use when the user mentions battery drain, energy optimization, power consumption audit, or pre-release energy check — timer abuse, polling patterns, continuous location, animation leaks, and background mode misuse.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-audit-energy)
- [License: MIT](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-audit-energy)

## Features

- **Timer abuse detection:** Finds timers lacking tolerance, running at high frequency, or repeating without being stopped.
- **Polling versus push review:** Flags network requests driven by timers that could be replaced by push or discretionary sessions.
- **Location lifecycle checks:** Compares start and stop calls for location updates and flags unnecessarily high accuracy.
- **Animation cleanup audit:** Looks for animations and display links that continue after their view is hidden or set to high frame rates.
- **Background mode review:** Checks registered background modes and audio sessions for matching feature code and deactivation.
- **Compound severity scoring:** Raises severity when related issues combine, and produces an overall efficient, wasteful or draining rating.

## Good for

- Check my app for battery drain before a release
- Find timers that never stop or lack tolerance
- Review location tracking for updates that never stop
- Audit background modes and audio sessions for unused entitlements
- Spot animations that keep running when the screen is hidden

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/axiom-audit-energy` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/axiom-audit-energy &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-energy" ~/.claude/skills/axiom-audit-energy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/axiom-audit-energy` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/axiom-audit-energy` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/axiom-audit-energy &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-energy" ~/.agents/skills/axiom-audit-energy &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/axiom-audit-energy` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/axiom-audit-energy` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/axiom-audit-energy &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-energy" ~/.cursor/skills/axiom-audit-energy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/axiom-audit-energy` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/CharlesWiltgen/Axiom.git --path axiom-codex/skills/axiom-audit-energy
```

Or copy the folder to `~/.gemini/skills/axiom-audit-energy` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/axiom-audit-energy`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/axiom-audit-energy &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-energy" ~/.copilot/skills/axiom-audit-energy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/axiom-audit-energy` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git
```

Then copy `Axiom/axiom-codex/skills/axiom-audit-energy` into your agent's skills folder as `axiom-audit-energy`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs access to the project's Swift and plist files so the agent can search and read them. The skill is written for Apple-platform code and does not list any scripts or extra tools.

### Does Axiom audit energy change any code?

The skill describes the audit and suggests fixes in its report. It is written as a read-and-search procedure and does not state that it edits files.

### Which files are skipped?

Test files, preview files, and vendor, build, derived data, docs and Claude configuration folders are excluded from the scan.

### Can Axiom audit energy read crash logs?

It describes mapping certain crash termination types to energy patterns, but the agent cannot run the crash tool itself and needs that output supplied.

### How do I install Axiom audit energy in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/axiom-audit-energy to use it in all your projects, or to .claude/skills/axiom-audit-energy in one project.

### Does Axiom audit energy run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Axiom audit energy?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Axiom audit energy?

The closest alternatives to Axiom audit energy are Axiom analyze swiftui performance, Axiom audit storage, Axiom audit spritekit, Axiom audit memory and Axiom audit accessibility.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Axiom analyze swiftui performance](https://ai-powered.com/skills/axiom-analyze-swiftui-performance): Axiom analyze swiftui performance is an open-source agent skill for developer tools.
- [Axiom audit storage](https://ai-powered.com/skills/axiom-audit-storage): Axiom audit storage is an open-source agent skill for security.
- [Axiom audit spritekit](https://ai-powered.com/skills/axiom-audit-spritekit): Axiom audit spritekit is an open-source agent skill for developer tools.
- [Axiom audit memory](https://ai-powered.com/skills/axiom-audit-memory): Axiom audit memory is an open-source agent skill for developer tools.
- [Axiom audit accessibility](https://ai-powered.com/skills/axiom-audit-accessibility): Axiom audit accessibility is an open-source agent skill for developer tools.
- [Axiom health check](https://ai-powered.com/skills/axiom-health-check): Axiom health check is an open-source agent skill for developer tools.
- [Axiom audit icloud](https://ai-powered.com/skills/axiom-audit-icloud): Axiom audit icloud is an open-source agent skill for developer tools.
- [Axiom performance](https://ai-powered.com/skills/axiom-performance-charleswiltgen-2): Axiom performance is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/axiom-audit-energy
