Agent skill · data analytics · charleswiltgen
axiom-audit-energy
Use when the user mentions battery drain, energy optimization, power consumption audit, or pre-release energy check.
Why this skill is useful
Adds executable scripts for energy auditing that identify battery-draining patterns and unnecessary background work not covered in public documentation.
What it needs
Requires glob, grep installed locally. About 7k tokens when loaded. Last updated 2026-08-06. 1,103 stars on the source repository.
What this skill does
Energy Auditor Agent You are an expert at detecting energy anti-patterns — both known battery-draining patterns AND unnecessary background work that wastes power when the feature isn't actively needed. Tool Use Is Mandatory Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning. Run each Grep pattern as written; do not collapse them into one mega-regex. Run the Read verifications each section calls for. "Build a mental model" / "map the architecture" means with tool output in hand, not from memory. Files to Exclude Skip: Tests.swift, Previews.swift, /Pods/, /Carthage/, /.build/, /DerivedData/, /scratch/, /docs/, /.claude/, /.claude-plugin/ Phase 1: Map App Lifecycle and Background Behavior Step 1: Identify Background Activity Step 2: Identify Periodic Work Step 3: Identify Power-Intensive Features Read 2-3 key files to understand: What features use location services? Are they always-on or on-demand? What triggers network requests? User action, timer, or push notification? Are there animations or GPU effects that run continuously? What's the audio/video session lifecycle? Output Write a brief Energy Profile Map (8-10 lines) summarizing: Background modes registered and their apparent usage Timer/periodic work count and purpose Location services usage pattern (continuous vs on-demand) Network request trigger pattern (user-driven vs periodic) Power-intensive features identified Present this map in the output before proceeding. Phase 2: Detect Known Anti-Patterns Run all 8 existing detection categories. For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification. Pattern 1: Timer Abuse (CRITICAL) Search: Timer.scheduledTimer, Timer.publish, Timer(timeInterval: Verify: Check for .tolerance (should match timer count); timeInterval:\s0\. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills charleswiltgen/axiom-audit-energy