What problem does it solve?
This skill identifies energy-inefficient code patterns, such as excessive background activity, unoptimized timers, and continuous location tracking, which lead to rapid battery drain and system terminations.
Core Features & Use Cases
- Energy Anti-Pattern Detection: Scans for 8 specific categories of power-intensive code, including timer abuse, polling, and animation leaks.
- Lifecycle Mapping: Visualizes how the application manages background modes, network requests, and hardware sensors.
- Health Scoring: Provides a quantitative Energy Health Score to categorize the app as Efficient, Wasteful, or Draining.
- Use Case: Use this during pre-release testing to ensure that background tasks and location services are properly gated, preventing the app from being killed by the system for excessive resource usage.
Quick Start
Run the axiom-audit-energy skill to perform a full energy audit on the current repository and generate a health report.