360 Secure SkillHub
360 安全技能中心

GOG Dormant Game Cleanup

该 Skill 运行脚本读取 GOG 库 JSON,按截止天数筛选已安装且长期未游玩的游戏,通过 himalaya 发送摘要邮件,并用 remindctl 添加到 Apple Reminders;支持 DRY_RUN 预览和 cron 定时执行。

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

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add terrycarter1985/gog-dormant-cleanup
兼容性
通用兼容
联网要求
不联网
数据出网
可选出网
Metadata
name
gog-dormant-cleanup
description
Find installed GOG games not played in 30+ days, email a summary report, and add each game to Apple Reminders as a cleanup nudge. Use when: user wants to clean up their GOG library, find dormant/unused games, get reminded about unplayed games, or automate a gaming cleanup workflow. Triggers: 'dormant games', 'GOG cleanup', 'unplayed games', 'game cleanup reminder', 'clean up my library'.

GOG Dormant Game Cleanup

Automated workflow to surface idle installed GOG games and nudge the user to consider uninstalling.

Workflow

  1. Scan the GOG library JSON for installed games whose last_played is older than the cutoff (default 30 days).
  2. Email a formatted summary to the user's personal himalaya account.
  3. Remind by adding each dormant game to Apple Reminders under the Gaming list.

Script

Run scripts/gog_dormant_cleanup.sh:

scripts/gog_dormant_cleanup.sh <cutoff_days> <library_json> [himalaya_account] [reminders_list]
Parameter Default Description
cutoff_days 30 Days of inactivity to qualify as dormant
library_json (required) Path to GOG library JSON (see config format below)
himalaya_account personal Himalaya account name for sending email
reminders_list Gaming Apple Reminders list name

Environment Variables

  • DRY_RUN=1 — print actions without sending email or creating reminders.

GOG Library JSON Format

The script expects a JSON file with this structure:

{
  "games": [
    {
      "name": "Game Title",
      "installed": true,
      "last_played": "2026-03-28T19:45:00",
      "install_path": "/path/to/game"
    }
  ]
}

Games with installed: false are skipped. last_played may be null (never played).

Prerequisites

  • jq — JSON parsing
  • himalaya — email delivery (optional; skips email if absent)
  • remindctl — Apple Reminders (optional; skips reminders if absent)

Scheduling

To run weekly via cron:

# Every Monday at 9 AM
0 9 * * 1 /path/to/gog_dormant_cleanup.sh 30 /path/to/gog_library.json

Or use OpenClaw's cron tool for managed scheduling.