← 返回 Skills 市场
terrycarter1985

Workday Music Greeting

作者 terrycarter1985 · GitHub ↗ · v1.0.0 · MIT-0
darwinlinux ✓ 安全检测通过
39
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install workday-music-greeting
功能描述
Auto-switch Spotify music scenes on workdays by time-of-day and send scene-matched greeting emails with inline GIFs. Combines home-music scene logic with SMT...
使用说明 (SKILL.md)

📅🎵 Workday Music Greeting

Music that matches your moment. A greeting that matches your mood.

Auto-switch Spotify playlists throughout the workday and send yourself (or your team) a cheerful greeting email with a scene-matched GIF at every transition.


🎬 Scenes & Schedule

Time Scene Vibe Playlist
06:00–09:00 🌅 Morning Gentle start Peaceful Piano
09:00–12:00 🎯 Focus Deep work Deep Focus
12:00–14:00 ☕ Break Lunch recharge Peaceful Piano (lighter)
14:00–18:00 🎯 Focus Deep work Deep Focus
18:00–21:00 🌇 Wind-down Evening relax Chill Lounge
21:00+ 🔇 Off Silence
Weekend 🏖️ Skip No auto-scene

📦 Dependencies

What Why
🟢 Spotify CLI (spotify or spotify-applescript) Play/pause/volume control
📧 imap-smtp-email skill Send greeting emails via SMTP
🖼️ GIF files (optional) Inline images in greeting emails

🚀 Quick Start

1. Switch scene (auto-detect from time)

./scripts/workday-scene.sh

2. Switch to a specific scene

./scripts/workday-scene.sh morning
./scripts/workday-scene.sh focus
./scripts/workday-scene.sh break
./scripts/workday-scene.sh winddown
./scripts/workday-scene.sh off

3. Send a greeting email

./scripts/send-greeting.sh morning [email protected]

4. Full automation (scene + email)

./scripts/workday-automation.sh --email [email protected] --scene morning

Or let it auto-detect the scene:

./scripts/workday-automation.sh --email [email protected]

⏰ Cron Setup

Set up cron jobs for automatic workday switching. Example (Mon–Fri at 7:00 AM):

# Morning greeting
0 7 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --email [email protected] --scene morning

# Focus mode
0 9 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --scene focus

# Break
0 12 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --email [email protected] --scene break

# Afternoon focus
0 14 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --scene focus

# Wind down
0 18 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --email [email protected] --scene winddown

# Off
0 21 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --scene off

Or use OpenClaw cron for cloud-managed scheduling:

# In your OpenClaw session:
"Remind me to switch to morning music every weekday at 7 AM"

🖼️ Adding GIFs

Place animated GIFs in the gifs/ directory:

gifs/
├── morning.gif    # Sunrise / coffee / stretching
├── focus.gif      # Typing / headphones / laser focus
├── break.gif      # Food / coffee break / walk
└── winddown.gif   # Sunset / couch / relaxation

Tips:

  • Keep GIFs under 2MB for reliable email delivery
  • Use gifs/README.md as reference for naming conventions
  • If a GIF is missing, the email sends without the image (graceful degradation)

⚙️ Configuration

Edit scripts/workday-scene.sh to customize:

# Playlists (Spotify URIs)
PLAYLIST_MORNING="spotify:playlist:37i9dQZF1DX4WYpdgoIcn6"
PLAYLIST_FOCUS="spotify:playlist:37i9dQZF1DWZeKCadgRdKQ"
PLAYLIST_BREAK="spotify:playlist:37i9dQZF1DX4sWSpwq3LiO"
PLAYLIST_WINDOWN="spotify:playlist:37i9dQZF1DWTwnEm1IYyoj"

# Speaker
SPEAKER="Sonos Move"

# Volumes (0-100)
VOL_MORNING=35
VOL_FOCUS=25
VOL_BREAK=40
VOL_WINDOWN=30

Edit scripts/send-greeting.sh to customize email subjects and body HTML.


📁 File Structure

workday-music-greeting/
├── SKILL.md                        # This documentation
├── scripts/
│   ├── workday-scene.sh            # Scene switching logic
│   ├── send-greeting.sh            # Email sending with GIF
│   └── workday-automation.sh       # Master orchestrator
└── gifs/
    ├── README.md                   # GIF naming guide
    ├── morning.gif                 # (user-provided)
    ├── focus.gif                   # (user-provided)
    ├── break.gif                   # (user-provided)
    └── winddown.gif                # (user-provided)

🔧 Advanced: Custom Scenes

Add new scenes in workday-scene.sh:

scene_workout() {
  echo "💪 Workout scene"
  "$SPOTIFY_CMD" play "spotify:playlist:YOUR_URI"
  "$SPOTIFY_CMD" volume 80
}

# Add to case block:
  workout) scene_workout ;;

Then add the matching email case in send-greeting.sh.


🐛 Troubleshooting

Issue Fix
Spotify not playing Ensure Spotify app is running; check $SPOTIFY_CMD path
Email not sending Verify SMTP env vars (SMTP_HOST, SMTP_USER, SMTP_PASS)
GIF not showing Check file exists in gifs/ and name matches scene exactly
Weekend triggering is_weekday() check should skip; verify system timezone

Author: OpenClaw Workspace
Version: 1.0.0
License: MIT

安全使用建议
Before installing, verify that you want this skill to control Spotify and send emails, inspect the referenced imap-smtp-email dependency, configure SMTP credentials carefully, and only create cron schedules for recipients and times you approve.
功能分析
Type: OpenClaw Skill Name: workday-music-greeting Version: 1.0.0 The skill provides automation for Spotify playback and email greetings based on a workday schedule. The shell scripts (workday-scene.sh, send-greeting.sh, and workday-automation.sh) perform logical time-based checks and call external tools (Spotify CLI and a sibling SMTP skill) as described in the documentation. No evidence of data exfiltration, malicious command execution, or prompt injection was found.
能力评估
Purpose & Capability
The scripts do what the description claims: switch Spotify scenes and optionally send greeting emails. These actions are user-facing but purpose-aligned.
Instruction Scope
The documentation provides direct run commands and optional cron schedules; it does not appear to auto-install persistence or force execution without user setup.
Install Mechanism
There is no install spec and registry requirements are empty, but the skill actually depends on Spotify CLI, Node, SMTP configuration, and a sibling imap-smtp-email skill. This is disclosed in documentation but under-declared in metadata.
Credentials
Use of local Spotify control and SMTP credentials is proportionate to the stated music-and-email purpose, but users should understand which accounts and recipients are involved.
Persistence & Privilege
Persistence is limited to user-directed cron examples for weekday scheduling; no artifact shows hidden background installation or self-start behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install workday-music-greeting
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /workday-music-greeting 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: auto-switch Spotify scenes on workdays + send scene-matched GIF greeting emails
元数据
Slug workday-music-greeting
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Workday Music Greeting 是什么?

Auto-switch Spotify music scenes on workdays by time-of-day and send scene-matched greeting emails with inline GIFs. Combines home-music scene logic with SMT... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 39 次。

如何安装 Workday Music Greeting?

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

Workday Music Greeting 是免费的吗?

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

Workday Music Greeting 支持哪些平台?

Workday Music Greeting 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。

谁开发了 Workday Music Greeting?

由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v1.0.0。

💬 留言讨论