360 Secure SkillHub
360 安全技能中心

GOG Dormant Game Sweep

该 Skill 通过 Python 脚本读取本地 GOG 库 JSON,筛选已安装且超过指定天数未游玩的游戏,生成清单后经 himalaya 发送邮件,并用 remindctl 为每款游戏向 Apple Reminders 列表逐条添加卸载提醒;支持 dry-run 预览以及跳过邮件或提醒。

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

安装

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