AGENT SKILL

battle-buddy

Receives status pings from the BattleBuddy R1 app and relays them to configured battle buddies via WhatsApp, Signal, Telegram, or Discord. Handles group pulse aggregation and optional call initiation for AMBER/RED check-ins. Individual statuses are never shared with the group — only aggregate counts.

License 许可
MIT
最近更新
2026-09-04
Stars
★ 0
Forks
0

01 前言 Front Matter

name
battle-buddy
author
battle-buddy
version
1.0.0
metadata
{ "openclaw": { "requires": { "env": [ "BB_RELAY_CHANNEL", "BB_RELAY_HANDLE" ], "bins": [ "node" ] }, "primaryEnv": "BB_RELAY_CHANNEL" } }
description
Receives status pings from the BattleBuddy R1 app and relays them to configured battle buddies via WhatsApp, Signal, Telegram, or Discord. Handles group pulse aggregation and optional call initiation for AMBER/RED check-ins. Individual statuses are never shared with the group — only aggregate counts.

02 资源文件 3

03 SKILL.md 正文

BattleBuddy — OpenClaw Skill

BattleBuddy is a lightweight veteran check-in relay. The R1 app sends one-time status pings — GREEN, AMBER, or RED — to your configured Battle Buddy Network. This skill runs on your local machine and handles message relay, group pulse aggregation, and optional call initiation.

Privacy guarantee: Individual statuses are never included in group messages. Group pulses show aggregate counts only (e.g. "2 green, 1 amber"). The OpenClaw skill never logs, stores, or forwards status data beyond the configured relay targets.


What this skill does

When the R1 app writes a command to shared storage, this skill:

Command Trigger Action
send-status User long-presses PTT on confirm screen Relays status message to all configured buddies via their chosen channel
team-pulse User double-taps PTT → group pulse Sends anonymous aggregate request; collects responses; returns counts
initiate-call User presses PTT on AMBER/RED incoming alert Initiates a call via the relay channel (Signal/Telegram call link)

How it works

  1. R1 app writes a command object to openclaw:cmd in shared storage.
  2. OpenClaw (running on your OpenClaw host) detects the new command and calls this skill.
  3. This skill executes the relay action and writes to openclaw:resp.
  4. R1 app reads the response and updates the UI accordingly.

For incoming alerts (buddies sending you their status), the OpenClaw skill writes to bb:incoming in shared storage, and the R1 app polls that key every 30 seconds.


Setup instructions

1. Install the skill

cp -r battle-buddy ~/.openclaw/skills/battle-buddy
cd ~/.openclaw/skills/battle-buddy
npm install

Or via ClaHub:

clawhub install battle-buddy

2. Configure environment variables

Add these to your OpenClaw environment (~/.openclaw/.env or your shell profile):

# Required — your primary relay channel (WhatsApp, Signal, Telegram, or Discord)
BB_RELAY_CHANNEL="Signal"

# Required — your handle on that channel (phone number or username)
BB_RELAY_HANDLE="+15551234567"

# Optional — Twilio for WhatsApp/SMS relay (omit for console-only mode)
BB_TWILIO_SID="ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
BB_TWILIO_TOKEN="your_auth_token"
BB_TWILIO_FROM="+15550000000"

# Optional — Telegram bot token for Telegram relay
BB_TELEGRAM_BOT_TOKEN="1234567890:ABCDEFabcdef..."

# Optional — Discord webhook URL for Discord relay
BB_DISCORD_WEBHOOK="https://discord.com/api/webhooks/..."

# Optional — enable desktop notifications on your OpenClaw host
BB_DESKTOP_NOTIFY="true"

If no relay credentials are set, the skill runs in console-only mode: it logs the status to the terminal and sends a desktop notification, but does not send any messages to external services.

3. Add buddies in the R1 app

Open BattleBuddy on your R1. Hold PTT to enter Settings. Scroll to "Manage Buddies" and press PTT. Speak each buddy's name and handle — e.g.:

"Sam on Signal at plus one five five five nine eight seven..." "Mike via Discord at mike underscore b"

Each buddy is stored locally on the R1 device. The skill reads buddy handles from the command payload — no buddy data is stored server-side.

4. Test the connection

node ~/.openclaw/skills/battle-buddy/index.js --test

Expected output:

[battle-buddy] Test ping: GREEN status
[battle-buddy] Relay: Signal +15551234567
[battle-buddy] Desktop notification: sent
[battle-buddy] Response written to openclaw:resp

Status messages sent to buddies

GREEN

[BattleBuddy] {Name} checked in GREEN ✓
Just checking in — all good over here.

AMBER

[BattleBuddy] {Name} checked in AMBER ~
Rough day, but hanging in there. Reach out if you can.

RED

[BattleBuddy] {Name} checked in RED ●
Having a hard time. Could use a call when you have a minute.

Messages are plain text with no links, no location, no device identifiers.

Group pulse (team-pulse command)

The group pulse message sent to the team channel is anonymous:

[BattleBuddy] Anonymous team check-in request.
Reply with your status: GREEN, AMBER, or RED.
(Your response is counted in the aggregate — never shared individually.)

The skill collects responses for up to 60 seconds, then writes the aggregate counts to openclaw:resp and bb:incoming for the R1 to read.


Relay channel support

Channel Setup required Message format
Signal BB_RELAY_HANDLE set to your Signal phone Signal CLI (signal-cli) must be installed and authorized
Telegram BB_TELEGRAM_BOT_TOKEN + each buddy added to your bot Telegram Bot API via sendMessage
WhatsApp Twilio WhatsApp sandbox or approved number Twilio API
Discord BB_DISCORD_WEBHOOK set to your server's webhook URL Discord webhook POST
Console only No additional setup Prints to terminal + desktop notification

The skill selects the relay method per-buddy based on the channel field stored by the R1 app. If a buddy's channel is not configured, the skill falls back to console-only mode for that buddy and logs a warning.


Signal setup (optional but recommended)

Signal is the most private relay option. To use it:

  1. Install signal-cli: https://github.com/AsamK/signal-cli
  2. Register or link your number: signal-cli -a +1XXXXXXXXXX register
  3. Set BB_RELAY_HANDLE to your registered number.
  4. Verify it works: signal-cli -a +1XXXXXXXXXX send -m "test" +1BUDDYNUMBER

The skill wraps signal-cli as a child process. No Signal credentials are stored by the skill itself.


Incoming status relay

When one of your buddies sends their status through their BattleBuddy R1 app, their OpenClaw skill sends the status to your handle via your relay channel. Your OpenClaw skill picks this up and writes it to bb:incoming in shared storage:

{
  "alerts": [
    {
      "id": "unique-alert-id",
      "name": "Sam",
      "status": "RED",
      "ts": 1718000000000,
      "handle": "@sam_signal",
      "channel": "Signal"
    }
  ]
}

Your R1 polls bb:incoming every 30 seconds. When a RED or AMBER alert arrives, R1 speaks the alert and displays the incoming screen.


AMBER protocol: call initiation

When the user presses PTT on an AMBER incoming alert ("Would you like to call?"), the R1 app sends an initiate-call command. The skill:

  1. Generates a call deeplink for the buddy's channel (Signal: sgnl://call?uuid=..., Telegram: tg://user?id=...).
  2. Opens the deeplink on your OpenClaw host using the system's default handler.
  3. Desktop notification on your OpenClaw host: "BattleBuddy: call initiated to {Name} via {Channel}."

Call initiation requires the relay app (Signal, Telegram) to be installed and logged in on your OpenClaw host.


Privacy model

  • Individual status → sent only to each buddy directly, one-to-one via their configured handle.
  • Group pulse → aggregate counts only. The skill never includes individual names or statuses in group messages.
  • Storage → bb:incoming, bb:incoming-seen, bb:teampulse are device-local keys. The skill writes to these but does not transmit them.
  • No server → all relay goes through the user's own accounts (Signal, Telegram, WhatsApp, Discord). No BattleBuddy infrastructure is involved.
  • No analytics → the skill does not track, log, or report usage data.

File layout

battle-buddy/
  index.html        — R1 Creation (runs on device)
  SKILL.md          — this file (OpenClaw skill descriptor)
  index.js          — Node.js handler (runs on your OpenClaw host)
  package.json      — dependencies
  lib/
    relay.js        — channel-specific send functions
    pulse.js        — group pulse aggregator
    notifications.js — desktop notification helper

Troubleshooting

Status sent but buddy didn't receive it

  • Verify the relay channel is running on your OpenClaw host (Signal CLI, Telegram bot, etc.)
  • Check openclaw logs battle-buddy for relay errors.
  • Confirm the buddy's handle is correct in R1 app settings.

"OpenClaw not reachable" on R1 app

  • Confirm OpenClaw is running: openclaw status
  • Confirm the skill is installed: openclaw skills list
  • Check shared storage is accessible: openclaw storage get openclaw:cmd

Group pulse shows 0 responses

  • Group pulse waits up to 60 seconds for replies. If buddies don't reply to the group message, counts stay at 0 plus the sender's own status.
  • Ensure buddies are on the same relay channel and have the bot/handle set up on their end.

Call initiation does nothing on your OpenClaw host

  • Verify Signal or Telegram is installed and the target handle is a valid contact.
  • Check your OpenClaw host system permissions — the skill opens a URL deeplink via the OS default handler.
  • On macOS: ensure Terminal has permission to open URLs in System Settings → Privacy → Automation.

Incoming alerts not showing on R1

  • The R1 polls bb:incoming every 30 seconds. Alerts should appear within 30 seconds of your buddy sending their status.
  • Verify your buddy has your handle configured correctly on their R1 app.
  • Check openclaw logs battle-buddy for incoming relay errors.

04 同仓库更多 Skills

ajohnsonnow
ajohnsonnow/r1-warren

whisper-quiz

WhisperQuiz — voice-answered trivia game for Rabbit R1. Generates questions via the R1's built-in LLM, captures spoken answers via STT, and evaluates correctness with flexible LLM-based matching.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

walk-cast

Walking podcast production skill. Receives raw audio metadata and transcript from the R1, removes long pauses, applies noise reduction and normalization, generates AI chapter titles and episode metadata via LLM, and uploads the final episode to your configured podcast RSS host (Spotify for Podcasters / Anchor, Podbean, Buzzsprout, RSS.com, or any FTP-accessible feed).

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-novel

Local machine skill for VoiceNovel — handles story export to disk.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-guide

Environment description and navigation assistant for blind and low-vision users. Analyzes camera frames via a vision LLM, reads visible text, identifies scene categories (people/vehicles/food/hazards/exits), performs 360° scans, retrieves GPS position, and sends emergency SMS alerts — all via audio feedback with zero screen dependency.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-draft

Voice-driven document drafting for the Rabbit R1. Dictate stream-of-consciousness speech; the R1 formats it into Email, Blog Post, Report, Proposal, Meeting Notes, Creative Writing, Code Comments, Cover Letter, or Tweet Thread — then saves the result to a configured folder on your local machine via OpenClaw.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-commit

Hands-free git and CI workflow voice controller for the Rabbit R1. Speak git/CI commands and hear results — commit, push, status, PR management, test runs, and deploy, all voice-driven via OpenClaw.

★ 0