选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install barkpush或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install barkpush⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/barkpush/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: bark-push description: 智能 Bark 推送助手,支持多用户管理、智能内容识别、历史记录追踪和消息更新功能 homepage: https://bark.day.app emoji: 🔔 metadata: clawdbot: config: requiredEnv: [] stateDirs: - .bark-push example: | # 推送文本消息给单个用户 bark-push --user alice --content "会议将在10分钟后开始"
# 推送图片给多个用户 bark-push --user alice,bob --content "https://example.com/image.png"
# 推送带标题的消息给全部用户 bark-push --user all --title "系统通知" --content "服务器将在今晚维护"
# 更新已推送的消息
bark-push --update
# 查看帮助信息 bark-push --help-skill ---
🔔 智能 Bark 推送助手,为您提供便捷、灵活的消息推送服务。
自动识别您发送的内容类型,以最优方式推送:
image 参数)
url 参数)
body 参数)
--user alice
--user alice,bob,charlie
--user all
通过 JSON 配置文件管理默认推送参数:
用户指定的参数优先于默认配置。
根据操作结果返回清晰的信息:
首次使用前,创建配置文件 config.json:
{
"default_push_url": "https://api.day.app",
"ciphertext": "",
"users": {
"alice": "your_device_key_1",
"bob": "your_device_key_2"
},
"defaults": {
"level": "active",
"volume": 10,
"badge": 1,
"sound": "bell",
"icon": "",
"group": "default",
"call": false,
"autoCopy": false,
"copy": "",
"isArchive": true,
"action": ""
},
"groups": ["work", "personal", "urgent"],
"history_limit": 100,
"enable_update": true
}
# 推送简单文本消息
bark-push --user alice --content "Hello, World!"
# 推送带标题的消息
bark-push --user alice --title "重要通知" --content "会议将在10分钟后开始"
# 推送图片
bark-push --user bob --content "https://example.com/photo.jpg"
# 推送给多个用户
bark-push --user alice,bob --title "团队通知" --content "项目已上线"
# 推送给所有用户
bark-push --user all --title "系统公告" --content "服务器维护通知"
# 指定消息级别
bark-push --user alice --content "紧急事件" --level critical
# 指定分组
bark-push --user alice --content "工作提醒" --group work
# 更新已推送的消息
bark-push --update abc123 --user alice --content "会议时间改为15分钟后"
# 删除已推送的消息
bark-push --delete abc123 --user alice
# 查看历史记录
bark-push --list-history --history-limit 20
# 查看用户列表
bark-push --list-users
# 查看帮助信息
bark-push --help-skill
| 参数 | 说明 | 示例 |
|------|------|------|
| --config | 配置文件路径 | --config ./config.json |
| --user, -u | 指定推送用户(别名或 device_key) | --user alice |
| --title, -t | 消息标题 | --title "重要通知" |
| --subtitle | 消息副标题 | --subtitle "10分钟后" |
| --content, -c | 消息内容 | --content "消息内容" |
| --group | 指定分组 | --group work |
| --help-skill | 显示帮助信息 | --help-skill |
| 参数 | 说明 | 取值范围 |
|------|------|----------|
| --level | 消息级别 | passive, active, time-sensitive, critical |
| --volume | 音量 | 0-10 |
| --badge | 角标数字 | 整数 |
| --sound | 通知声音 | bell, chime, glass 等 |
| --icon | 图标 URL | 完整的 HTTPS URL |
| --call | 是否呼叫 | 1/0/true/false |
| --autoCopy | 自动复制 | 1/0/true/false |
| --copy | 复制内容 | 字符串 |
| --isArchive | 自动归档 | 1/0/true/false |
| --action | 自定义动作 | JSON 字符串 |
| --ciphertext | 加密密文 | 字符串 |
| 参数 | 说明 | 示例 |
|------|------|------|
| --update | 更新已推送的消息 | --update abc123 |
| --delete | 删除已推送的消息 | --delete abc123 |
| --list-users | 列出所有用户 | --list-users |
| --list-groups | 列出所有分组 | --list-groups |
| --list-history | 列出历史记录 | --list-history --history-limit 20 |
| --history-limit | 历史列表条数 | --history-limit 20 |
在 config.json 的 users 字段中配置用户别名:
{
"users": {
"alice": "device_key_alice_123",
"bob": "device_key_bob_456",
"charlie": "device_key_charlie_789"
}
}
在 config.json 的 defaults 字段中配置默认推送参数:
{
"defaults": {
"level": "active",
"volume": 10,
"badge": 1,
"sound": "bell",
"group": "default"
}
}
在 config.json 的 groups 字段中定义可用分组:
{
"groups": ["work", "personal", "urgent", "family"]
}
在 config.json 的 history_limit 字段中设置历史记录保存数量:
{
"history_limit": 100
}
{
"ciphertext": "your_encryption_key"
}
bark-push --user alice --content "别忘了下午3点的会议"
bark-push --user all --title "服务器告警" --content "CPU使用率超过90%" --level critical --sound alarm
bark-push --user alice,bob,charlie --title "项目进度" --content "前端开发已完成,请开始测试" --group work
bark-push --user bob --content "https://example.com/screenshot.png"
# 首次推送
bark-push --user alice --content "会议将在10分钟后开始"
# 返回推送 ID:abc123
# 更新消息
bark-push --update abc123 --user alice --content "会议时间改为15分钟后"
如果提示配置文件不存在,请在当前目录或 ~/.bark-push/ 目录下创建 config.json 文件。
如果提示用户不存在,使用 --list-users 命令查看可用用户列表,并在 config.json 中添加用户配置。
确保 ~/.bark-push/ 目录具有写入权限,历史记录文件会自动创建。
如果配置了 ciphertext,所有推送将使用加密方式发送:
{
"ciphertext": "your_encryption_key"
}
支持 Bark 的自定义动作功能,可以在通知中添加交互按钮:
bark-push --user alice --content "是否同意?" --action '{"action":"confirm","text":"同意"}'
使用脚本批量推送消息:
#!/bin/bash
for user in alice bob charlie; do
bark-push --user $user --content "批量通知消息"
done
欢迎提交问题和改进建议!
MIT License
安装 barkpush 后,可以对 AI 说这些话来触发它
Help me get started with barkpush
Explains what barkpush does, walks through the setup, and runs a quick demo based on your current project
Use barkpush to intelligent Bark push assistant supports multi-user management, int...
Invokes barkpush with the right parameters and returns the result directly in the conversation
What can I do with barkpush in my general tools workflow?
Lists the top use cases for barkpush, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/barkpush/ 目录(个人级,所有项目可用),或 .claude/skills/barkpush/(项目级)。重启 AI 客户端后,用 /barkpush 主动调用,或让 AI 根据上下文自动发现并使用。
barkpush 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
barkpush 可免费安装使用。请查阅仓库了解许可证信息。
智能 Bark 推送助手,支持多用户管理、智能内容识别、历史记录追踪和消息更新功能
barkpush 属于「General Tools」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my general tools tasks using barkpush
Identifies repetitive steps in your workflow and sets up barkpush to handle them automatically