360 Secure SkillHub
360 安全技能中心

GOG Stale Games Cleanup

读取 GOG 游戏库 JSON,筛选已安装且 last_played 超过阈值或为空的游戏,通过 Himalaya 发送 HTML 邮件,并用 remindctl 为每个游戏创建 Apple 提醒;支持 dry-run 与定时执行。依赖 macOS 与外部 CLI。

分类:自动化
terrycarter1985
terrycarter1985
热度 20.51
最近更新 2026-05-12 02:41:47

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add terrycarter1985/gog-stale-games-cleanup
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
gog-stale-games-cleanup
description
Scan your GOG library for installed games not played in 30+ days, email the list, and add Apple Reminders for each. One-command game cleanup workflow.
version
1.0.0
author
john_doe
license
MIT
metadata
{"openclaw":{"emoji":"🧹","requires":{"bins":["jq","himalaya","remindctl"]}}}
prerequisites
["GOG library JSON (see references/gog_library_schema.json)","himalaya configured for SMTP (see references/himalaya.toml.example)","remindctl installed and authorized (macOS)"]

GOG Stale Games Cleanup

Find installed GOG games you haven't played in 30+ days, email yourself a summary, and create Apple Reminders so you can decide whether to uninstall.

When to Use

  • User says "clean up my GOG library", "stale games", "games I haven't played", "uninstall reminder"
  • Running a periodic game-library audit
  • Triggered by cron for monthly cleanup reminders

Quick Start

bash scripts/sweep.sh \
  --library /path/to/gog_library.json \
  --days 30 \
  --email personal \
  --reminders-list Gaming

Parameters

Flag Default Description
--library config/gog_library.json Path to GOG library JSON
--days 30 Stale threshold in days
--email personal Himalaya account name for sending
--reminders-list Gaming Apple Reminders list name
--dry-run off Print actions without sending email or creating reminders

What It Does

  1. Reads your GOG library JSON
  2. Filters for installed: true games whose last_played is older than the threshold (or null)
  3. Sends an HTML email via himalaya with the stale game list
  4. Adds one Apple Reminder per stale game to the specified list

Output Example

🧹 GOG Stale Games Sweep — 2026-05-12
  Found 2 stale games (>30 days since last play):

  • Stardew Valley — last played 2026-03-28
  • Cyberpunk 2077 — never played

  ✉️  Email sent to john.doe@example.com
  📝 2 reminders added to "Gaming" list

Configuration

GOG Library JSON

See references/gog_library_schema.json for the expected format. Each game needs:

  • name (string)
  • installed (boolean)
  • last_played (ISO 8601 datetime or null)

Himalaya

See references/himalaya.toml.example. The script uses himalaya template send on the account specified by --email.

Apple Reminders

The list specified by --reminders-list is created if it doesn't exist (remindctl list <name> --create).

Cron Integration

Run monthly:

# Add via OpenClaw cron — monthly on the 1st at 10:00
openclaw cron add --name "gog-stale-sweep" \
  --schedule "0 10 1 * *" \
  --command "bash /path/to/scripts/sweep.sh --library /path/to/gog_library.json"

Or use the agent's cron tool with a systemEvent payload that triggers this skill.