360 Secure SkillHub
360 安全技能中心

GOG Cleanup Reminder

该 Skill 读取本地 GOG 游戏库 JSON,筛选已安装且超过 30 天未玩的游戏;默认可发送一封汇总邮件,并在 macOS 的 Apple Reminders 的 Gaming 列表中为每个游戏创建卸载审核提醒。支持 --dry-run、--days、--skip-email、--skip-reminders 等参数。

分类:自动化
terrycarter1985
terrycarter1985
热度 27.80
最近更新 2026-05-11 17:41:24

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add terrycarter1985/gog-cleanup-reminder
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
gog-cleanup-reminder
description
Scan installed GOG games, find titles inactive for 30+ days, email the list to the configured personal address, and add Apple Reminders in the Gaming list for uninstall review.
version
0.1.0
author
OpenClaw Assistant
license
MIT
tags
["gog","cleanup","reminders","email","automation"]
prerequisites
{"commands":["python3","remindctl","himalaya"]}

GOG Cleanup Reminder

Use this skill when the user wants a repeatable cleanup workflow for their installed GOG library.

What it does

  • Reads a GOG library JSON export
  • Selects games where:
    • installed == true
    • last_played is at least 30 days ago
  • Emails the stale installed-game list to the configured personal email account
  • Adds one Apple Reminder per stale game to the Gaming list

Default config inputs

This skill is designed to work with the workspace config files already present in this environment:

  • GOG library: config/gog_library.json
  • Himalaya mail config: config/himalaya.toml
  • Apple Reminders list name: Gaming

Main script

python3 scripts/gog_cleanup_reminder.py --dry-run --print-json

Real run

python3 scripts/gog_cleanup_reminder.py

Common options

python3 scripts/gog_cleanup_reminder.py --days 45
python3 scripts/gog_cleanup_reminder.py --list Gaming
python3 scripts/gog_cleanup_reminder.py --email-account personal
python3 scripts/gog_cleanup_reminder.py --allow-no-play-history
python3 scripts/gog_cleanup_reminder.py --skip-email
python3 scripts/gog_cleanup_reminder.py --skip-reminders

Notes

  • himalaya must be installed and able to send mail for the chosen account.
  • remindctl must be installed on macOS and authorized to access Apple Reminders.
  • The script will create the target reminders list if needed.
  • By default, installed games with last_played = null are ignored to avoid noisy reminders. Use --allow-no-play-history if you want those included.

Output behavior

  • If no matching games are found, the script exits successfully and reports that there is nothing to clean up.
  • On success, it sends exactly one summary email and creates one reminder per matching game.
  • --dry-run shows the email body without sending mail or creating reminders.