openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > 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...

综合技能

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 0 · 96 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :良性

Package:airbai/mac-battery

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill's instructions, requirements, and behavior match its description: it simply runs a macOS pmset command to report battery status and requests no credentials or installs.

综合结论

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 …

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Mac Battery」。简介:Check Mac laptop battery status including percentage, charging state, and time …。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/airbai/mac-battery/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: mac-battery
version: 1.0.0
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 time left until fully charged/discharged on a Mac laptop.
---

# Mac Battery Status

Query Mac laptop battery information using the `pmset` command.

## Command

```bash
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.