← Back to Skills Marketplace
airbai

Mac Battery

by airbai · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
220
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install mac-battery
Description
Check Mac laptop battery status including percentage, charging state, and time remaining. Use when user asks about battery level, power status, or how much t...
README (SKILL.md)

Mac Battery Status

Query Mac laptop battery information using the pmset command.

Command

pmset -g batt | grep -E "([0-9]+%)"

Output Format

Returns battery percentage, charging state, and time remaining:

  • Percentage: e.g., "79%"
  • Charging state: "charging", "discharging", or "charged"
  • Time remaining: e.g., "0:47 remaining" (for charging) or "2:30 remaining" (for discharging)

Example Response

🔋 79%; charging; 0:47 remaining

Respond to user with the battery info in a friendly format with emoji.

Usage Guidance
This skill is coherent and low-risk: it runs a single macOS command (pmset) to report battery percentage, charge state, and time remaining, and requests no secrets. Before installing, confirm you intend to allow the agent to execute local shell commands (the skill must run on a Mac to work). If you manage an environment where agents should not run arbitrary commands, restrict or review skills accordingly. You can test it safely by running the provided command in a macOS terminal to see the exact output format.
Capability Analysis
Type: OpenClaw Skill Name: mac-battery Version: 1.0.0 The mac-battery skill is a straightforward utility designed to check macOS battery status using the standard system command 'pmset -g batt'. The logic in SKILL.md is transparent, limited to its stated purpose, and contains no indicators of malicious execution, data exfiltration, or prompt injection.
Capability Assessment
Purpose & Capability
Name/description (check Mac battery) match the single runtime instruction (pmset). There are no unrelated env vars, binaries, or installs requested.
Instruction Scope
SKILL.md instructs the agent to run a fixed shell command (pmset -g batt | grep -E "([0-9]+%)"). That command reads local macOS battery state only and does not reference other files or secrets. Note: pmset exists only on macOS but the skill metadata does not declare an OS restriction; on non-mac hosts the command will fail. Also, while the command is fixed (no user input interpolation), any skill that executes shell commands gains the ability to access local system state — this particular command is narrow and low-risk.
Install Mechanism
No install spec (instruction-only). Nothing is downloaded or written to disk.
Credentials
Requires no environment variables, credentials, or config paths — appropriate for a local battery-status check.
Persistence & Privilege
Does not request always:true, does not modify other skills or system configs, and has no persistent presence. Normal autonomous invocation policy applies.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install mac-battery
  3. After installation, invoke the skill by name or use /mac-battery
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of mac-battery skill. - Allows checking Mac laptop battery percentage, charging state, and time remaining. - Uses the `pmset` command to gather battery information. - Responds in a user-friendly format with emoji.
Metadata
Slug mac-battery
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Mac Battery?

Check Mac laptop battery status including percentage, charging state, and time remaining. Use when user asks about battery level, power status, or how much t... It is an AI Agent Skill for Claude Code / OpenClaw, with 220 downloads so far.

How do I install Mac Battery?

Run "/install mac-battery" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Mac Battery free?

Yes, Mac Battery is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Mac Battery support?

Mac Battery is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Mac Battery?

It is built and maintained by airbai (@airbai); the current version is v1.0.0.

💬 Comments