360 Secure SkillHub
360 安全技能中心

GOG Dormant Game Sweep

核心功能:扫描GOG游戏库中超过设定天数(默认30天)未玩的已装游戏,生成汇总报告,通过himalaya CLI发送邮件,同时用remindctl CLI给每个休眠游戏添加Apple Reminders到指定列表。典型场景:需清理/回顾休眠游戏、获取游戏清理提醒、设置休眠游戏通知自动化。输入为符合格式的GOG库JSON文件,支持命令行参数调整阈值、邮箱等,支持干运行预览;需依赖himalaya和remindctl CLI工具。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add gog-dormant-sweep
Metadata
name
gog-dormant-sweep
description
Scan GOG library for installed games not played in 30+ days, email a summary report via himalaya, and add per-game reminders to Apple Reminders Gaming list. Use when: (1) user wants to clean up or review dormant GOG games, (2) user asks for a game cleanup reminder, (3) user wants dormant game notification automation. Requires: GOG library JSON, himalaya CLI for email, remindctl CLI for Apple Reminders.

GOG Dormant Game Sweep

Automated workflow: find installed GOG games not played recently → email report → add Apple Reminders.

Quick Start

python3 scripts/sweep.py --library config/gog_library.json --email john.doe@example.com

Script: scripts/sweep.py

Arguments

Flag Default Description
--library config/gog_library.json Path to GOG library JSON
--days 30 Dormancy threshold (days)
--email None Recipient email (required unless --no-email)
--himalaya-account personal Himalaya account to send from
--reminders-list Gaming Apple Reminders list name
--no-email false Skip email
--no-reminders false Skip reminders
--dry-run false Print report only, no side effects

Library JSON Format

Expects the same schema as config/gog_library.json: an object with a games array where each game has name, installed (bool), last_played (ISO 8601 or null), and install_path.

Workflow

  1. Parse library JSON → filter installed: true games where last_played is older than --days (or null/never)
  2. Compose email body with game list and send via himalaya message write
  3. For each dormant game, run remindctl add --title "Consider uninstalling: <name>" --list <list>

Example

Full run with all options:

python3 scripts/sweep.py \
  --library config/gog_library.json \
  --days 30 \
  --email john.doe@example.com \
  --himalaya-account personal \
  --reminders-list Gaming

Dry run to preview:

python3 scripts/sweep.py --dry-run --days 60