← 返回 Skills 市场
422
总下载
0
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install bark-push
功能描述
Send push notifications to iOS devices via Bark. Use when you need to send a push notification to user's iPhone. Triggered by phrases like "send a notificati...
使用说明 (SKILL.md)
Bark Push Notification
Send push notifications to iOS via Bark API.
Setup
1. 环境变量配置
Bark API endpoint: https://api.day.app/{device_key}
Device key 可以从以下环境变量读取 (按优先级):
BARK_KEYBARK_DEVICE_KEY(OpenClaw 默认配置)
配置方式 (在 ~/.zshrc 中):
export BARK_KEY="你的Bark设备Key"
2. 验证配置
# 测试发送通知
~/.openclaw/workspace/skills/bark-push/scripts/bark-send.sh \
-t "测试" -b "Bark推送配置成功!"
使用方式
方式一:使用 Shell 脚本 (推荐)
# 基本用法
~/.openclaw/workspace/skills/bark-push/scripts/bark-send.sh \
-t "标题" -b "内容"
# 指定铃声
~/.openclaw/workspace/skills/bark-push/scripts/bark-send.sh \
-t "提醒" -b "时间到了" -s alarm
# 角标 + 跳转URL
~/.openclaw/workspace/skills/bark-push/scripts/bark-send.sh \
-t "新消息" -b "你有一条未读消息" -B 1 -u "https://example.com"
# 使用指定key (不依赖环境变量)
~/.openclaw/workspace/skills/bark-push/scripts/bark-send.sh \
-k "your_device_key" -t "标题" -b "内容"
# 设置分组
~/.openclaw/workspace/skills/bark-push/scripts/bark-send.sh \
-t "标题" -b "内容" -g "myapp"
# 紧急通知
~/.openclaw/workspace/skills/bark-push/scripts/bark-send.sh \
-t "警告" -b "请立即处理!" -l critical
方式二:使用 Node.js 脚本
# 基本用法
node ~/.openclaw/workspace/skills/bark-push/scripts/bark-send.js \
-t "标题" -b "内容"
# 指定铃声
node ~/.openclaw/workspace/skills/bark-push/scripts/bark-send.js \
-t "提醒" -b "时间到了" -s alarm
方式三:直接使用 curl
# 简单推送
curl "https://api.day.app/$BARK_KEY/标题/内容"
# 带参数
curl -X POST "https://api.day.app/$BARK_KEY" \
-H 'Content-Type: application/json' \
-d '{
"title": "标题",
"body": "内容",
"sound": "alarm",
"badge": 1,
"group": "myapp"
}'
脚本参数说明
| 参数 | 简写 | 说明 | 默认值 |
|---|---|---|---|
| --title | -t | 推送标题 (必填) | - |
| --body | -b | 推送内容 (必填) | - |
| --key | -k | Bark设备Key | $BARK_KEY |
| --sound | -s | 铃声名称 | default |
| --badge | -B | 角标数字 | - |
| --url | -u | 点击跳转URL | - |
| --group | -g | 分组名称 | - |
| --level | -l | 通知级别 | - |
| --image | -i | 图片URL | - |
| --subtitle | -S | 副标题 | - |
| --help | -h | 显示帮助 | - |
通知级别 (level)
| 值 | 说明 |
|---|---|
| passive | 不显示,不震动,不播放声音 |
| active | 显示但不震动 |
| timeSensitive | 定时敏感,24小时内可撤 |
| critical | 强制响铃 (需要权限) |
常用铃声 (sound)
| 铃声名称 | 说明 |
|---|---|
| default | 系统默认 |
| alarm | 警报 |
| alarm | 闹钟 |
| bird | 鸟叫 |
| bell | 门铃 |
| cha_ching | 金币 |
| doorbell | 门铃 |
| droplet | 水滴 |
| horn | 喇叭 |
| light | 轻提示 |
| 邮件 | |
| rimba | 节奏 |
| siren | 警笛 |
| spinebreak | 震撼 |
| spring | 弹簧 |
| streak | 短信 |
| sword | 剑士 |
| tip | 提示 |
| minut | 铃声 |
在 OpenClaw 中使用
在 OpenClaw 中可以直接调用脚本发送通知:
# 简单通知
~/.openclaw/workspace/skills/bark-push/scripts/bark-send.sh \
-t "提醒" -b "任务完成!"
# 发送失败通知 (在脚本中使用)
if [ $? -ne 0 ]; then
~/.openclaw/workspace/skills/bark-push/scripts/bark-send.sh \
-t "错误" -b "备份失败,请检查!" -l critical
fi
故障排除
发送失败
- 检查 BARK_KEY 是否正确:
echo $BARK_KEY - 测试网络连接:
ping api.day.app - 查看详细错误: 添加
-v或检查返回的 JSON
通知不响
- 检查手机设置 → 通知 → Bark
- 检查是否开启声音和震动
- 尝试使用不同的 sound 参数
安全使用建议
This skill appears to do exactly what it says: send notifications to Bark (api.day.app) using a device key. Before installing, confirm whether your OpenClaw registry actually supplies BARK_KEY or BARK_DEVICE_KEY (SKILL.md expects them but registry metadata listed none). Inspect the included scripts (bark-send.sh / bark-send.js) — they only send the provided title/body and optional fields to api.day.app, so ensure you are comfortable exposing notification content to that external service. If you plan to run npm install in the skill folder, be aware package.json declares axios (unused by the script); you can avoid running npm install if you only intend to use the provided shell or node scripts as-is. Finally, only store the Bark device key in an environment variable if you trust the runtime environment, since that key grants the ability to send pushes to your device.
功能分析
Type: OpenClaw Skill
Name: bark-push
Version: 1.0.3
The skill is a legitimate tool for sending iOS push notifications via the Bark API (api.day.app). It provides both Shell (bark-send.sh) and Node.js (bark-send.js) implementations that correctly handle environment variables for authentication and use standard HTTP POST requests to deliver messages. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
The skill's name/description (Bark push notifications) aligns with its code and instructions: both scripts send HTTP(S) requests to api.day.app using a Bark device key. There are no unrelated credentials, binaries, or surprising subsystems referenced.
Instruction Scope
SKILL.md and the included scripts only describe and perform actions needed to send notifications (reading BARK_KEY or BARK_DEVICE_KEY, constructing payloads, and POSTing to api.day.app). The instructions reference the OpenClaw workspace path (~/.openclaw/workspace/skills/...), and suggest adding env vars to ~/.zshrc — reasonable for a CLI helper. Note: the registry metadata earlier showed no required env vars, but SKILL.md lists BARK_KEY and BARK_DEVICE_KEY; this mismatch is minor but worth noticing.
Install Mechanism
There is no install spec and the skill is instruction-only with small helper scripts included. No external downloads or archive extraction are performed. The only packaged dependency is in package.json (axios), but the Node script uses built-in https; there is no automatic installation step that would fetch remote code.
Credentials
The only sensitive data used is the Bark device key (BARK_KEY / BARK_DEVICE_KEY), which is appropriate and proportionate for sending pushes. As noted above, the registry metadata lists no required env vars while SKILL.md documents BARK_KEY and BARK_DEVICE_KEY — confirm which env var(s) your agent will actually provide before installing.
Persistence & Privilege
The skill does not request always:true, does not persist configuration outside the workspace, and is user-invocable. It does perform outbound network calls (expected for a notification sender) but does not request elevated privileges or modify other skills.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bark-push - 安装完成后,直接呼叫该 Skill 的名称或使用
/bark-push触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Added shell and Node.js scripts (`bark-send.sh`, `bark-send.js`) for sending Bark notifications from the command line or scripts
- Introduced `package.json` for Node.js script usage
- Expanded and reorganized documentation: setup instructions, usage examples, parameter details, troubleshooting, and OpenClaw integration
- Added support for multiple environment variables (`BARK_KEY`, `BARK_DEVICE_KEY`) for device key configuration
- Detailed command-line parameter support and documentation for script usage
v1.0.2
Update description: change DeAnti's iPhone to user's iPhone
v1.0.1
Update description: change DeAnti's iPhone to user's iPhone
v1.0.0
Initial publish
元数据
常见问题
Bark Push 是什么?
Send push notifications to iOS devices via Bark. Use when you need to send a push notification to user's iPhone. Triggered by phrases like "send a notificati... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 422 次。
如何安装 Bark Push?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bark-push」即可一键安装,无需额外配置。
Bark Push 是免费的吗?
是的,Bark Push 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Bark Push 支持哪些平台?
Bark Push 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Bark Push?
由 DeAnti-(@deantiwang)开发并维护,当前版本 v1.0.3。
推荐 Skills