360 Secure SkillHub
360 安全技能中心

GOG Stale Game Cleanup

核心功能:自动识别超过指定天数(默认30天)未玩的已装GOG游戏,发送格式化邮件报告,在苹果提醒指定列表添加卸载提醒。典型场景:清理闲置GOG游戏、定期整理游戏库时使用。输入需GOG库JSON文件,配置相关CLI工具,通过环境变量设置参数,支持定时调度。输出含邮件报告、苹果提醒、控制台操作摘要。

terrycarter1985
terrycarter1985
热度 29.81
最近更新 2026-05-11 17:47:22
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gog-stale-game-cleanup
Metadata
name
gog-stale-game-cleanup
description
Find installed GOG games not played in 30+ days, email a report, and add reminders to Apple Reminders Gaming list. Use when user wants to clean up unused GOG games, review stale game library, get uninstall reminders, or run a periodic game cleanup sweep. Triggers on stale games, game cleanup, unused games, GOG cleanup, game purge review.

GOG Stale Game Cleanup

Automated workflow to identify installed GOG games that haven't been played recently, notify via email, and create Apple Reminders for each stale game.

Prerequisites

  • GOG library JSON file (see gog_library.json in config)
  • himalaya CLI configured for email sending
  • remindctl CLI for Apple Reminders (macOS)
  • python3 for JSON parsing

Workflow

  1. Run scripts/stale_games.sh with required environment variables
  2. Script identifies installed games with last_played older than 30 days (or never played)
  3. Sends an email report to the configured address
  4. Adds a "Consider uninstalling: " reminder to the Gaming list

Usage

GOG_LIBRARY=/path/to/gog_library.json \
EMAIL_TO=user@example.com \
EMAIL_ACCOUNT=personal \
REMINDERS_LIST=Gaming \
bash scripts/stale_games.sh

Environment Variables

Variable Required Default Description
GOG_LIBRARY Yes — Path to GOG library JSON
EMAIL_TO Yes — Recipient email address
EMAIL_ACCOUNT No personal Himalaya account name
REMINDERS_LIST No Gaming Apple Reminders list name
STALE_DAYS No 30 Days threshold for stale
DRY_RUN No false Preview without sending

Scheduling

To run weekly via cron:

# Add to crontab or use OpenClaw cron
0 10 * * 1 GOG_LIBRARY=... EMAIL_TO=... bash /path/to/scripts/stale_games.sh

Output

  • Email: Formatted report listing each stale game with last-played date and install path
  • Reminders: One reminder per stale game titled "Consider uninstalling: " in the Gaming list
  • Console: Summary of findings and action confirmations