← 返回 Skills 市场
airbai

Mac Battery

作者 airbai · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
220
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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.

安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mac-battery
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mac-battery 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug mac-battery
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 220 次。

如何安装 Mac Battery?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install mac-battery」即可一键安装,无需额外配置。

Mac Battery 是免费的吗?

是的,Mac Battery 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Mac Battery 支持哪些平台?

Mac Battery 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Mac Battery?

由 airbai(@airbai)开发并维护,当前版本 v1.0.0。

💬 留言讨论