Daily Mood

v1.0.1

Daily Mood delivers a warm, deeply thoughtful life message to every registered user each morning and evening — tuned to their emotional state. Unlike static...

0· 117·0 current·0 all-time
byCosmos Fang@cosmofang

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for cosmofang/daily-mood.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Daily Mood" (cosmofang/daily-mood) from ClawHub.
Skill page: https://clawhub.ai/cosmofang/daily-mood
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install daily-mood

ClawHub CLI

Package manager switcher

npx clawhub@latest install daily-mood
Security Scan
VirusTotalVirusTotal
Pending
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk97ap06svcdjwdrxe0ypbes2cs849kf6
117downloads
0stars
2versions
Updated 3w ago
v1.0.1
MIT-0

Daily Mood — 每日心情寄语

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


何时使用

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

🌐 语言规则

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

💬 心情类型与寄语基调

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

📖 功能列表

每日推送(多用户)

时间脚本内容
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 <userId> [--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 <userId>

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

# 傍晚推送
node scripts/evening-push.js
node scripts/evening-push.js --user <userId>

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

# 推送管理
node scripts/push-toggle.js on [--userId <id>]   # 开启(全局或单用户)
node scripts/push-toggle.js off [--userId <id>]
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 <任务ID>

📁 数据文件

data/users/<userId>.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

Comments

Loading comments...