← 返回 Skills 市场
cosmofang

Daily Mood

作者 Cosmos Fang · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
123
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install daily-mood
功能描述
Daily Mood delivers a warm, deeply thoughtful life message to every registered user each morning and evening — tuned to their emotional state. Unlike static...
使用说明 (SKILL.md)

Daily Mood — 每日心情寄语

情绪陪伴型人生寄语 · 早晨唤醒 · 夜间治愈 · 心情感知 · 中英双语 · 多用户定时推送


何时使用

  • 用户说"给我一句寄语""今天的寄语""鼓励我一下"
  • 用户说"我今天很累 / 很焦虑 / 很开心 / 很迷茫"
  • 用户说"早安 / 晚安"(触发对应时段推送)
  • 用户说"开启寄语推送""每天给我推寄语"
  • cron 08:00 触发早晨全量推送
  • cron 21:00 触发傍晚全量推送

🌐 语言规则

  • 跟随用户注册档案的 language 字段(zhen
  • 未注册用户:默认中文;英文提问自动切英文
  • 寄语本体:以用户语言呈现;双语版本按需提供

💬 心情类型与寄语基调

心情 英文 寄语基调
开心 / excited happy 共鸣共喜,引导感恩珍惜
低落 / sad sad 温柔接纳,不说"加油",说"你可以停下来"
焦虑 / anxious anxious 放慢节奏,让当下变小,具体而微的安慰
疲惫 / tired tired 允许休息,休息本身就是努力
迷茫 / lost lost 不给答案,给方向感;迷茫是生长的前奏
平静 / calm calm 深化平静,引导觉察当下之美
感恩 / grateful grateful 扩展感恩,从小事到生命本身
愤怒 / angry angry 先接纳情绪,再引导释放,不评判

📖 功能列表

每日推送(多用户)

时间 脚本 内容
08:00 每日 morning-push.js 早晨唤醒寄语:根据用户心情档案定制
21:00 每日 evening-push.js 夜间疗愈寄语:温柔收尾,引导好眠

心情响应(即时)

用户报告心情后立即返回匹配寄语:

用户:我今天很焦虑
→ 一段专门写给焦虑状态的温暖寄语(100-150字)+ 一句简短金句

用户:I'm feeling lost today
→ A warm, mood-matched message in English (100-150 words) + one short quote

用户注册

注册后可享受:个性化语言设置、心情档案记忆、定时推送


🛠️ 脚本用法

# 注册用户(解锁定时推送)
node scripts/register.js \x3CuserId> [--lang zh|en] [--mood calm]
node scripts/register.js alice --lang zh --mood anxious
node scripts/register.js bob --lang en --mood happy

# 查看注册信息
node scripts/register.js --show \x3CuserId>

# 早晨推送(cron 调用 / 手动测试)
node scripts/morning-push.js                    # 全量推送所有注册用户
node scripts/morning-push.js --user \x3CuserId>    # 测试单用户
node scripts/morning-push.js --mood tired       # 指定心情(测试用)

# 傍晚推送
node scripts/evening-push.js
node scripts/evening-push.js --user \x3CuserId>

# 心情响应(用户实时触发)
node scripts/mood-response.js \x3Cmood> [--lang zh|en] [--userId \x3Cid>]
node scripts/mood-response.js anxious --lang zh
node scripts/mood-response.js happy --lang en

# 推送管理
node scripts/push-toggle.js on [--userId \x3Cid>]   # 开启(全局或单用户)
node scripts/push-toggle.js off [--userId \x3Cid>]
node scripts/push-toggle.js status

⏰ Cron 配置

openclaw cron add "0 8 * * *"  "cd ~/.openclaw/workspace/skills/daily-mood && node scripts/morning-push.js"
openclaw cron add "0 21 * * *" "cd ~/.openclaw/workspace/skills/daily-mood && node scripts/evening-push.js"
openclaw cron list
openclaw cron delete \x3C任务ID>

📁 数据文件

data/users/\x3CuserId>.json   # 用户档案:language, mood, pushEnabled, registeredAt
scripts/
  morning-push.js          # 早晨全量推送
  evening-push.js          # 傍晚全量推送
  mood-response.js         # 心情即时响应
  register.js              # 用户注册管理
  push-toggle.js           # cron 开关

⚠️ 注意事项

  1. 寄语不是心理治疗——不对用户的情绪下诊断,不说"你一定没问题"
  2. 低落/焦虑/愤怒状态:先共情,后寄语,避免"加油""想开点"等无效安慰
  3. 用户数据仅含语言偏好和心情标签,不存储原始对话内容
  4. 多用户推送时每位用户独立生成寄语,不共用同一段文字
  5. 未注册用户可直接触发心情响应,注册后才启用定时推送

Version: 1.0.0 · Created: 2026-04-04

安全使用建议
This skill appears internally coherent, but note a few practical points before installing: - Delivery mechanism: the scripts only print prompts for message generation; they do NOT actually send push notifications. You (or the OpenClaw Agent) must implement or connect a delivery channel. - Runtime: ensure Node >= 18 is available in the runtime environment where cron will run these scripts. - Data locality & privacy: user profiles are stored as JSON in data/users/*.json containing userId, language, mood, pushEnabled and timestamps. Restrict filesystem permissions for that directory if it will contain real user identifiers. - Safety & scope: prompts are designed to avoid therapeutic claims, but the produced content can still be sensitive — review generated messages and test thoroughly before enabling bulk cron pushes. - Testing: register a test user and run the scripts in --user mode to verify prompts and any delivery plumbing you add behave as expected. If you need the skill to actually deliver notifications, plan how the agent or host will take the printed prompts, call your messaging API, and record delivery status; review that integration for required credentials and security before enabling scheduled runs.
能力评估
Purpose & Capability
Aligned overall: the name and description promise mood-aware, scheduled messages and the repo contains registration, toggle, and push prompt generators. Important caveat: the scripts only generate and print prompt text (to stdout) and read/write local profiles under data/users; they do not implement a push delivery channel (no network/post/send step). The design assumes the Agent/platform will generate final texts from these prompts and deliver them via the host's push mechanism or an external integration.
Instruction Scope
SKILL.md and the JS scripts restrict themselves to the declared domain: reading/writing user profiles in data/users, creating prompts for message generation, and instructing how to add cron entries. There are no references to unrelated system paths, no environment variable access beyond those declared (none), and no instructions to transmit data to external endpoints.
Install Mechanism
No install spec is provided (instruction-only skill with bundled code). The only runtime requirement declared is Node >=18 in SKILL.md. package.json exists but there are no downloads, remote installers, or archives referenced — low install risk.
Credentials
The skill requests no environment variables or external credentials. It stores minimal local profile data (userId, language, mood, pushEnabled, timestamps) under data/users/*.json. UserId values are sanitized before use. There are no secret-like env vars or config paths requested.
Persistence & Privilege
always is false and the skill does not claim or attempt to modify other skills' settings. It persists only its own user profile files under its skill directory (data/users) which is normal for this kind of utility.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install daily-mood
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /daily-mood 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Removed two user data files: data/users/alice.json and data/users/bob.json - No changes to code or documented functionality
v1.0.0
Initial release of Daily Mood — personalized, mood-aware daily messages in Chinese or English. - Sends thoughtful, mood-matched messages to each user every morning (08:00) and night (21:00). - Supports multi-user scheduled push, with messages tailored to each user’s mood and language. - Users report their mood and instantly receive a customized message plus a short quote. - Works entirely offline; no external APIs required. - Provides simple command-line scripts for user registration, mood response, and push management. - Designed with emotional sensitivity: supportive, non-judgmental tone for a range of moods.
元数据
Slug daily-mood
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Daily Mood 是什么?

Daily Mood delivers a warm, deeply thoughtful life message to every registered user each morning and evening — tuned to their emotional state. Unlike static... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 123 次。

如何安装 Daily Mood?

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

Daily Mood 是免费的吗?

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

Daily Mood 支持哪些平台?

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

谁开发了 Daily Mood?

由 Cosmos Fang(@cosmofang)开发并维护,当前版本 v1.0.1。

💬 留言讨论