📦 GOG Dormant Game Cleanup — GOG 闲置游戏清理
v1.0.0找到已安装的GOG游戏中30+天未玩的游戏,发送总结报告,并将每个游戏添加到Apple Reminders中作为清理提醒。当用户想要清理...
0· 0·0 当前·0 累计
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install gog-dormant-cleanup
镜像加速npx clawhub@latest install gog-dormant-cleanup --registry https://cn.longxiaskill.com镜像同步中
技能文档
GOG 闲置游戏清理 自动化工作流程,用于查找闲置安装的 GOG 游戏,并提示用户考虑卸载。
工作流程 扫描 GOG 库 JSON 文件,查找安装的游戏,其最后玩耍时间(last_played)超过了截止日期(默认 30 天)。 向用户的个人 himalaya 账户发送格式化的摘要邮件。 通过将每个闲置游戏添加到 Apple Reminders 的 Gaming 列表中进行提醒。
脚本
运行脚本:scripts/gog_dormant_cleanup.sh
脚本参数:scripts/gog_dormant_cleanup.sh [himalaya_account] [reminders_list]
参数 默认值 描述
cutoff_days 30 闲置天数,超过此天数则被视为闲置
library_json (必需)GOG 库 JSON 文件路径(见下面的配置格式)
himalaya_account 个人 himalaya 账户名称,用于发送邮件提醒
reminders_list Gaming Apple Reminders 列表名称
环境变量
DRY_RUN=1 — 打印操作而不发送邮件或创建提醒。
GOG 库 JSON 格式 脚本期望一个 JSON 文件具有以下结构:
{
"games": [
{
"name": "游戏标题",
"installed": true,
"last_played": "2026-03-28T19:45:00",
"install_path": "/path/to/game"
}
]
}
未安装的游戏(installed: false)将被跳过。last_played 可能为 null(从未玩过)。前提条件
jq — JSON 解析
himalaya — 邮件发送(可选;如果缺失则跳过邮件)
remindctl — Apple Reminders(可选;如果缺失则跳过提醒)
定时调度 每周通过 cron 运行:
# 每周一 9 点
0 9 1 /path/to/gog_dormant_cleanup.sh 30 /path/to/gog_library.json
或使用 OpenClaw 的 cron 工具进行托管调度。