Skip to content
Back to skills

Power Battery

ASecurity

Read the battery level and time left, switch the power mode (power saver, balanced, performance), lock the screen, and change when the screen locks or turns off. Use for any request about the battery, power saving, performance mode, or the screen lock.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add BenchGrid-dev/slate --skill power-battery --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Power Battery?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Power Battery
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/benchgrid-dev-power-battery/badge)](https://www.skillsdirectory.com/skills/benchgrid-dev-power-battery)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: slate-power-battery
description: Read the battery level and time left, switch the power mode (power saver, balanced, performance), lock the screen, and change when the screen locks or turns off. Use for any request about the battery, power saving, performance mode, or the screen lock.
---

# Battery, power mode and the screen lock

## Battery

```
upower -i /org/freedesktop/UPower/devices/DisplayDevice   # percentage, state, time to empty / full
```

Tier: observe. `power supply: no` or no `percentage`: the computer has no battery.

## Power mode

```
powerprofilesctl list          # the modes this computer offers (performance needs hardware support)
powerprofilesctl get
powerprofilesctl set power-saver    # or balanced, performance
```

Tier: reversible. Undo: set the previous mode, read first with `get`.

## Lock the screen

```
slate-lock
```

Tier: reversible (the person unlocks it with their password). While the screen is locked, the desktop tools refuse keyboard and pointer input: reading and element actions still work. Never type into the lock screen.

## When the screen locks and turns off

`~/.config/slate/idle.json` holds `{"lock_after": SECONDS, "screen_off_after": SECONDS}` (0: never; defaults 600 and 900). Counted from the person's last input; what the agent does does not count. After writing it: `systemctl --user restart slate-idle`. The screen also locks before the computer sleeps. Settings, Power shows the same.

Tier: reversible. Undo: write the previous values back.

## Verify

`powerprofilesctl get` prints the new mode; `systemctl --user status slate-idle` shows the swayidle command line with the new timeouts.

Files in this skill

  • SKILL.md1.6 KB
  • manifest.toml276 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.