AI & Integration v1.0.0

mac-battery

Check Mac laptop battery status including percentage, charging state, and time remaining. Use when user asks about...

airbai 更新于 2026-03-14 1 浏览
下载 SKILL

技能说明

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.

使用场景

Query Mac laptop battery information using the pmset command.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/mac-battery
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 13 kB
SKILL.md text/markdown
---
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.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。