crisis-companion
Receives BattleBuddy red-status pings from the CrisisCompanion R1 app and forwards them to configured emergency contacts via SMS (Twilio) or local notification. All other data in CrisisCompanion stays on-device only.
- License 许可
- MIT
- 最近更新
- 2026-09-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- crisis-companion
- author
- crisis-companion
- version
- 1.0.0
- metadata
- { "openclaw": { "requires": { "env": [ "CC_CONTACTS", "CC_TWILIO_SID", "CC_TWILIO_TOKEN", "CC_TWILIO_FROM" ], "bins": [ "node" ] }, "primaryEnv": "CC_CONTACTS" } }
- description
- Receives BattleBuddy red-status pings from the CrisisCompanion R1 app and forwards them to configured emergency contacts via SMS (Twilio) or local notification. All other data in CrisisCompanion stays on-device only.
02 资源文件 3
- 资产文件card.jpg24.7 KB
- 资产文件icon.png8.7 KB
- 参考文档index.html46.6 KB
03 SKILL.md 正文
CrisisCompanion — OpenClaw Skill
This skill runs on your local machine and handles one job: when the R1 app sends a BattleBuddy red-status ping, this skill forwards it to your configured emergency contacts.
Important: This skill only activates when the user explicitly holds PTT on the BattleBuddy option inside the Reach Out menu. No data is sent automatically or in the background. All other CrisisCompanion data (safety plan, breathing sessions, check-in history) stays on the R1 device and never touches this skill.
What this skill does
When the R1 app writes a battlebuddy-ping command to shared storage, this skill:
- Reads the ping command from
openclaw:cmdstorage key - Sends an SMS alert to each contact in
CC_CONTACTSvia Twilio (or logs to console if Twilio is not configured) - Shows a desktop notification on your OpenClaw host (macOS/Windows/Linux)
- Writes an
openclaw:respresponse so the R1 app knows the ping was received
Setup instructions
1. Install the skill
Copy this directory to your OpenClaw skills folder:
cp -r crisis-companion ~/.openclaw/skills/crisis-companion
cd ~/.openclaw/skills/crisis-companion
npm install
2. Configure environment variables
Add these to your ~/.openclaw/.env or shell profile:
# Required — comma-separated phone numbers to notify (E.164 format)
CC_CONTACTS="+15551234567,+15559876543"
# Optional — Twilio credentials for SMS (omit to use console-only mode)
CC_TWILIO_SID="ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
CC_TWILIO_TOKEN="your_auth_token"
CC_TWILIO_FROM="+15550000000" # your Twilio number
If Twilio vars are not set, the skill still runs but prints the ping to the console and sends a desktop notification only. No SMS is sent.
3. Add emergency contacts inside the R1 app
The R1 app stores contacts locally. You can pre-seed them by writing to storage, or leave CC_CONTACTS as the fallback list. The skill merges both sources.
4. Test the connection
node ~/.openclaw/skills/crisis-companion/skill.js --test
You should see:
[crisis-companion] Test ping sent to 1 contact(s).
[crisis-companion] Response written to openclaw:resp.
SMS message sent to contacts
BATTLEBUDDY ALERT — [contact name] has activated CrisisCompanion on their Rabbit R1.
They may need support right now. Please reach out directly.
Veterans Crisis Line: 988 press 1
Crisis Text Line: Text HOME to 741741
The message never includes location, device ID, or any other identifying information beyond the contact name you configure.
File layout
crisis-companion/
index.html — R1 Creation (runs on device)
SKILL.md — this file (OpenClaw skill descriptor)
skill.js — Node.js handler (runs on your OpenClaw host)
package.json — dependencies (twilio optional)
Privacy guarantee
- CrisisCompanion does not connect to any remote server.
- The R1 app only writes to local device storage.
- The only outbound network action is the BattleBuddy SMS, initiated by explicit user long-press confirmation.
- No analytics, no telemetry, no cloud sync.
- Safety plan, breathing history, and check-in logs never leave the device.
Triggers
This skill responds to exactly one OpenClaw command:
| Command | Sent by | Action |
|---|---|---|
battlebuddy-ping |
R1 app (user) | SMS contacts + desktop notification |
No other commands are accepted. Unknown commands are ignored with a log warning.
Troubleshooting
Ping sent but no SMS received
- Verify
CC_TWILIO_SID,CC_TWILIO_TOKEN, andCC_TWILIO_FROMare set correctly. - Run
node skill.js --testto confirm Twilio connectivity. - Check that
CC_TWILIO_FROMis a verified Twilio number with SMS capability.
"Could not reach OpenClaw" on R1 app
- Confirm OpenClaw is running on your OpenClaw host:
openclaw status - Confirm the skill is installed:
openclaw skills list - Check storage polling is active:
openclaw logs crisis-companion
Desktop notification not appearing
- On macOS: grant notification permission to Terminal / the OpenClaw process in System Settings → Notifications.
- On Windows: ensure Focus Assist is not blocking notifications.
04 同仓库更多 Skills
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.
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).
voice-novel
Local machine skill for VoiceNovel — handles story export to disk.
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.
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.
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.