mmxagent-guardian
Installation
SKILL.md
File Protection and Version Management
This Skill uses MiniVCS to track all file operations with version history.
Runtime requirement: Python 3 is required to run scripts/minivcs/minivcs.py.
Script location: scripts/minivcs/minivcs.py in the same directory as this SKILL.md
(Before executing, first determine the directory containing this file. It is referred to as $SKILL_DIR below.)
Core mechanism:
- Modify: Saves an incremental diff plus a full snapshot from before the modification, supporting rollback
- Delete: Moves the full file into
~/.openclaw/minivcs/trash/, supporting restore - All files are indexed, with different retention periods based on importance
- After every operation, the full record table is scanned automatically to find expired records and ask the user for confirmation
Usage limitations:
- Binary files (images, PDFs, audio/video, etc.): Text diffs cannot be generated. For binary-file protection, MiniVCS stores a full local
.bakcopy instead. This applies to binary-file backup/rollback protection, and deletion protection also stores a full local copy in~/.openclaw/minivcs/trash/. The user must be informed before the operation because storage usage may be relatively high. - The first record cannot be rolled back: When a file is recorded for the first time, there is not yet any historical baseline, so that record has no snapshot. After that, each call to
record_modifyfollowing an edit automatically saves a snapshot, allowing rollback to the state before any edit. - Local storage notice: Protection data is stored locally under
~/.openclaw/minivcs/. This Skill does not provide encryption or remote sync.