skills/proactive-chat/SKILL.md
Generate and send proactive messages based on trigger files and emotion-journal context.
npx skillsauth add giggle-official/storyclaw-assistant proactive-chatInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
独占技能(仅 companion/Mira 使用) 版本:1.0.0
读取触发文件目录,结合 emotion-journal 上下文,生成具体、真实的主动消息,通过 Telegram 发送给用户,并将触发文件移入 sent/ 归档。
~/.openclaw/workspaces/companion/triggers/
文件命名:YYYYMMDD_HHMMSS_{type}.json
{
"type": "morning | evening | discovery | weekly",
"scheduledAt": "ISO8601",
"context": ""
}
context 字段可选,由 cron 写入时携带额外上下文(如天气信息、日期特殊性等)。
1. 扫描 triggers/ 目录,找到未处理的触发文件
2. 检查频率控制:
- 同类型触发:24 小时内已发送 → 跳过,记录 skip 日志
- 用户最近回复含 busy 信号:跳过最多 2 次连续触发
3. 调用 emotion-journal 读取:
- 最近 3 条情绪摘要
- 待跟进话题列表
- 用户当前状态标签(如有)
4. 读取 USER.md 中的 quiet_hours 配置,检查当前时间是否在安静时段
5. 根据 type 和上下文生成消息(见下方"各类型生成规则")
6. 通过 Telegram 发送给 TG_ADMIN_CHAT_ID
7. 发送成功:移动触发文件到 triggers/sent/YYYYMMDD_HHMMSS_{type}.json
8. 发送失败:30 秒后重试 1 次,仍失败则记录 error.log,不再重试
风格: 轻盈,有具体内容,不说废话
生成逻辑:
风格: 沉一点,有温度,适合回顾或缓慢展开的话题
生成逻辑:
风格: 真实的兴趣分享,不是找话题,是真的发现了什么
生成逻辑:
风格: 更温暖,节奏慢,适合回顾和轻展望
生成逻辑:
频率状态写入:~/.openclaw/workspaces/companion/triggers/.rate-limit.json
{
"morning": { "lastSentAt": "ISO8601", "skipCount": 0 },
"evening": { "lastSentAt": "ISO8601", "skipCount": 0 },
"discovery": { "lastSentAt": "ISO8601", "skipCount": 0 },
"weekly": { "lastSentAt": "ISO8601", "skipCount": 0 }
}
~/.openclaw/workspaces/companion/logs/proactive.log~/.openclaw/workspaces/companion/logs/error.log当 minimax-tts 或 elevenlabs-tts 技能已安装时,按以下规则决定发送方式:
| 触发类型 | 默认发送方式 | 说明 |
| ----------- | ------------ | -------------------------- |
| morning | 语音优先 | 晨间问候以声音传达更有温度 |
| evening | 语音优先 | 夜晚陪伴声音感更强 |
| weekly | 语音优先 | 情感回顾类消息适合语音 |
| discovery | 文字优先 | 含链接/引用,不适合朗读 |
降级链:TTS 技能未安装 → TTS 合成失败 → voice_messages.enabled: false → 全部降级为文字 sendMessage。
任何一步降级均不影响消息投递,只记录降级原因到 logs/tts.log。
emotion-journal 技能(读取上下文)web-search 技能(discovery 类型)weather 技能(morning 类型,可选增强)minimax-tts 或 elevenlabs-tts 技能(语音发送,可选)TG_BOT_TOKEN_COMPANION、TG_ADMIN_CHAT_IDtools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
development
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
development
X2C Distribution and Wallet API — publish video to X2C platform, manage assets (balance, claim X2C, swap to USDC, withdraw, transactions).
data-ai
Manage X (Twitter) accounts — post tweets, like, reply, retweet, view timeline, search, auto-interact, analyze data.