Power Management Monitor
DevOps & Securitypower-management-monitorPower Management Monitor is an Agent Skill for devops & security published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Monitor system power state including battery, AC, sleep, and wake events
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/desktop-development/skills/power-management-monitor/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/power-management-monitor, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
power-management-monitor
Monitor system power state including battery level, AC/battery status, and sleep/wake events.
Capabilities
- Monitor battery level and charging
- Detect AC/battery power source
- Handle sleep/wake events
- Prevent system sleep
- Low battery notifications
- Power-aware feature toggling
Input Schema
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"framework": { "enum": ["electron", "native"] },
"events": { "type": "array" }
},
"required": ["projectPath"]
}
Electron Example
const { powerMonitor, powerSaveBlocker } = require('electron');
powerMonitor.on('suspend', () => console.log('System suspending'));
powerMonitor.on('resume', () => console.log('System resumed'));
powerMonitor.on('on-battery', () => console.log('On battery'));
powerMonitor.on('on-ac', () => console.log('On AC power'));
// Prevent sleep during important tasks
const id = powerSaveBlocker.start('prevent-app-suspension');
// ... do work ...
powerSaveBlocker.stop(id);
Related Skills
screen-capture-apisystem-services-integrationprocess