← 返回 Skills 市场
yanbo92

Bark Notifications

作者 yanbo92 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
126
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bark
功能描述
Send push notifications to iOS devices via Bark app (https://github.com/Finb/Bark). Use when user asks to push a notification to their iPhone, send a Bark no...
使用说明 (SKILL.md)

Bark Skill

Send push notifications to iOS devices via the Bark app. The Bark key is stored in ~/.bark/key.

Key Setup

Key file: ~/.bark/key (plain text, just the key string).

If the file doesn't exist or is empty, ask the user for their Bark key and write it to ~/.bark/key.

API Overview

  • Base URL: https://api.day.app/
  • Method: GET or POST
  • Required: Bark key (from ~/.bark/key), body text
  • Optional: title, subtitle, URL, icon, sound, group, level, etc.

Quick Send (GET)

Send a simple notification:

GET https://api.day.app/{key}/{body}

Send with title:

GET https://api.day.app/{key}/{title}/{body}

Send with title and subtitle:

GET https://api.day.app/{key}/{title}/{subtitle}/{body}

POST Request (Recommended for multi-line / special chars)

Use POST + --data-urlencode for plain text, newlines, and special characters:

KEY=$(cat ~/.bark/key)
curl -s -X POST "https://api.day.app/$KEY" \
  -d "title=Notification Title" \
  --data-urlencode "body=First line
Second line
Third line"

Notes:

  • Use -d "title=..." and --data-urlencode "body=..." to separate title and body
  • Newlines in body are literal line breaks (press Enter, not \ as a string)
  • --data-urlencode auto URL-encodes, no manual handling needed for Chinese or special chars
  • Do not use -d "body=multiline content" — newlines won't be preserved in form-data

Parameters

Param Description
title Notification title, slightly larger than body
subtitle Subtitle
body Notification body, use `\
` for line breaks
url URL to open when notification is tapped
group Message group for grouping notifications
icon Push icon (iOS 15+)
sound Notification sound, e.g. alarm, birdsong
level active (default, lights up screen immediately) / timeSensitive (shows during Focus mode) / passive (adds to list without lighting screen)
criticalAlert true to play sound even in Do Not Disturb (use with caution)

How to Use

  1. Read key from ~/.bark/key
  2. If key file doesn't exist or is empty, ask user for their Bark key and write it to ~/.bark/key
  3. Build the request with the key and user-provided parameters
  4. Execute via exec/curl
  5. Confirm notification received

Example

Key stored in ~/.bark/key: yourkey Title: Meeting Reminder Body: Team sync at 3pm tomorrow

curl -s -X POST "https://api.day.app/yourkey" \
  -d "title=Meeting Reminder" \
  --data-urlencode "body=Team sync at 3pm tomorrow"

Notes

  • If user doesn't have a Bark key, tell them to install the Bark app and copy the test URL from the app
  • Default public server is api.day.app; Bark also supports self-hosted servers
  • For critical alerts (level=critical), the device will play sound even in Do Not Disturb
  • Sound will loop for 30 seconds if call=1 parameter is used
安全使用建议
This skill is coherent with its purpose but performs two sensitive actions: it will execute curl (network access) and write your Bark key in plaintext to ~/.bark/key. Only install/use it if you trust the agent. Suggested precautions: (1) provide a throwaway or limited Bark key if possible, (2) prefer entering the key on demand rather than permanently storing it, (3) if you store the key, set tight permissions (chmod 600 ~/.bark/key) and remove the file when you no longer want the skill to send notifications, (4) verify that the agent has no other unexpected shell/network privileges, and (5) consider using a self-hosted Bark endpoint if you want to avoid the public api.day.app. If you are uncomfortable with the agent writing secrets to disk, send Bark notifications manually via curl instead.
功能分析
Type: OpenClaw Skill Name: bark Version: 1.0.0 The 'bark' skill is designed to send iOS push notifications using the Bark app API. It stores a user-provided API key in '~/.bark/key' and uses standard curl commands to interact with the legitimate 'api.day.app' service. The instructions in SKILL.md are transparent and directly support the stated functionality without any evidence of malicious intent, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
Name/description (Bark push notifications) align with the instructions: the skill reads a Bark key and sends requests to the Bark API. No unrelated credentials, binaries, or installs are requested.
Instruction Scope
Instructions are narrowly scoped to reading/writing ~/.bark/key and calling the Bark API via curl. This is appropriate for the stated purpose, but the skill explicitly instructs the agent to write a plaintext key file in the user's home directory and to execute shell commands (curl), which are privacy/safety-relevant actions the user should consent to.
Install Mechanism
No install spec or external downloads; skill is instruction-only, so nothing is written to disk by an installer. This is the lowest-risk install profile.
Credentials
No environment variables or external credentials are requested. The only secret is the Bark key stored in ~/.bark/key (plain text). Requesting a single service key is proportional, but storing it unencrypted in the home directory is a potential privacy concern.
Persistence & Privilege
always:false and user-invocable:true (normal). The skill writes/reads a file in the user's home (~/.bark/key), giving it persistent local state; it does not modify other skills or system-wide settings. Users should be aware the agent will retain the key on disk unless removed.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bark
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bark 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Bark skill for sending push notifications to iOS devices via the Bark app. - Supports setup and storage of Bark key in `~/.bark/key`, prompting users if not found. - Provides concise instructions for both quick GET-based notifications and more robust POST-based notifications (for special characters and multiline content). - Allows customization with parameters such as title, subtitle, URL, sound, group, level, and critical alert. - Includes user guidance for first-time setup and handling of missing Bark key. - Designed to be triggered by phrases like "push to iPhone", "send a Bark notification", or "bark一下".
元数据
Slug bark
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bark Notifications 是什么?

Send push notifications to iOS devices via Bark app (https://github.com/Finb/Bark). Use when user asks to push a notification to their iPhone, send a Bark no... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 126 次。

如何安装 Bark Notifications?

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

Bark Notifications 是免费的吗?

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

Bark Notifications 支持哪些平台?

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

谁开发了 Bark Notifications?

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

💬 留言讨论