← Back to Skills Marketplace
terrycarter1985

GOG Stale Game Cleanup

by terrycarter1985 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
44
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install gog-stale-game-cleanup
Description
Find installed GOG games not played in 30+ days, email a report, and add reminders to Apple Reminders Gaming list. Use when user wants to clean up unused GOG...
README (SKILL.md)

GOG Stale Game Cleanup

Automated workflow to identify installed GOG games that haven't been played recently, notify via email, and create Apple Reminders for each stale game.

Prerequisites

  • GOG library JSON file (see gog_library.json in config)
  • himalaya CLI configured for email sending
  • remindctl CLI for Apple Reminders (macOS)
  • python3 for JSON parsing

Workflow

  1. Run scripts/stale_games.sh with required environment variables
  2. Script identifies installed games with last_played older than 30 days (or never played)
  3. Sends an email report to the configured address
  4. Adds a "Consider uninstalling: \x3Cgame>" reminder to the Gaming list

Usage

GOG_LIBRARY=/path/to/gog_library.json \
[email protected] \
EMAIL_ACCOUNT=personal \
REMINDERS_LIST=Gaming \
bash scripts/stale_games.sh

Environment Variables

Variable Required Default Description
GOG_LIBRARY Yes Path to GOG library JSON
EMAIL_TO Yes Recipient email address
EMAIL_ACCOUNT No personal Himalaya account name
REMINDERS_LIST No Gaming Apple Reminders list name
STALE_DAYS No 30 Days threshold for stale
DRY_RUN No false Preview without sending

Scheduling

To run weekly via cron:

# Add to crontab or use OpenClaw cron
0 10 * * 1 GOG_LIBRARY=... EMAIL_TO=... bash /path/to/scripts/stale_games.sh

Output

  • Email: Formatted report listing each stale game with last-played date and install path
  • Reminders: One reminder per stale game titled "Consider uninstalling: \x3Cgame name>" in the Gaming list
  • Console: Summary of findings and action confirmations
Usage Guidance
Review before installing. Do not schedule it until the Python interpolation issue is fixed; run with DRY_RUN=true first, use only trusted values for GOG_LIBRARY and REMINDERS_LIST, and verify the email recipient, email account, and Reminders list.
Capability Analysis
Type: OpenClaw Skill Name: gog-stale-game-cleanup Version: 1.0.0 The script `scripts/stale_games.sh` contains multiple code injection vulnerabilities where environment variables (`GOG_LIBRARY` and `REMINDERS_LIST`) are directly interpolated into Python strings within a `python3 -c` command. This allows for arbitrary Python code execution if these variables contain malicious payloads (e.g., single quotes followed by Python commands). While the tool's stated purpose of managing GOG games and sending reports via `himalaya` is plausible, the lack of input sanitization is a significant security flaw.
Capability Assessment
Purpose & Capability
The SKILL.md and script are coherent: they find stale installed GOG games, email a report, and add Apple Reminders. Those actions are account-affecting, so users should notice them before running it.
Instruction Scope
Running the script with the default DRY_RUN=false sends an email and creates reminders immediately. This is disclosed, but it is not preview-first by default.
Install Mechanism
There is no install spec, and the registry requirements declare no required binaries or environment variables even though the skill text relies on python3, himalaya, remindctl, and runtime environment variables.
Credentials
GOG_LIBRARY and REMINDERS_LIST are shell-expanded directly into python3 -c source rather than passed safely as data, so crafted values could execute unintended Python code.
Persistence & Privilege
Optional cron/OpenClaw cron scheduling and local email/Reminders access are disclosed and purpose-aligned, but they can continue running until the user disables the schedule.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gog-stale-game-cleanup
  3. After installation, invoke the skill by name or use /gog-stale-game-cleanup
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: stale game detection, email report, Apple Reminders integration
Metadata
Slug gog-stale-game-cleanup
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is GOG Stale Game Cleanup?

Find installed GOG games not played in 30+ days, email a report, and add reminders to Apple Reminders Gaming list. Use when user wants to clean up unused GOG... It is an AI Agent Skill for Claude Code / OpenClaw, with 44 downloads so far.

How do I install GOG Stale Game Cleanup?

Run "/install gog-stale-game-cleanup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is GOG Stale Game Cleanup free?

Yes, GOG Stale Game Cleanup is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does GOG Stale Game Cleanup support?

GOG Stale Game Cleanup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created GOG Stale Game Cleanup?

It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v1.0.0.

💬 Comments