360 Secure SkillHub
360 安全技能中心

GOG Stale Game Cleanup

读取本地 GOG 库 JSON,筛选已安装且最后游玩时间超过阈值(默认 30 天)或从未游玩的游戏,通过 himalaya 发送邮件报告,并在 macOS Apple Reminders 的指定列表中逐条创建卸载提醒。支持 DRY_RUN 预览和控制台摘要输出。

分类:自动化
terrycarter1985
terrycarter1985
热度 19.69
最近更新 2026-05-11 17:47:22

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add terrycarter1985/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