Memory Defragmenter
v1.0.1Defragment and optimize agent memory files by cleaning duplicates, merging similar entries, archiving stale content, and ensuring proper tiering. Use when: (...
⭐ 0· 78·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description match the included scripts: analyze_memory.py, defragment.py, and verify_memory.py implement analysis, plan creation, execution, backup, and verification of local markdown 'memory' files. The requested artifacts and operations (file reads/writes, backups, archiving, tiering) are proportionate to defragmentation.
Instruction Scope
Runtime instructions are explicit (analyze → plan → review → execute → verify) and tell the operator to review the plan before execution. However the default base path is '~' (home) and the scripts glob broadly for many *.md files and named files (e.g., USER.md, IDENTITY.md, memory/*.md). That means the tool can read and modify arbitrary Markdown files under your home directory unless you supply a narrower --path; the skill explicitly creates backups before changes and recommends review, which mitigates risk if the user follows guidance.
Install Mechanism
No installer; this is instruction- + script-based and runs locally with python3. No external downloads or package installs are performed, which minimizes supply-chain risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. The scripts operate on local files only and do not attempt network access or request secrets.
Persistence & Privilege
always is false and the skill does not request persistent platform privileges. It is user-invocable and may be run autonomously by an agent (default), so exercise the usual caution about autonomous runs, but this is expected behavior for skills.
Assessment
This skill appears to do what it says: analyze, plan, and modify local markdown-based memory files. Before running: (1) run the analyzer and then defragment.py --plan and carefully inspect defragment-plan.md; (2) run defragment.py --dry-run to see what would change; (3) prefer supplying --path to target only the specific memory directory instead of using the default '~' to avoid touching unrelated markdown files in your home; (4) keep and verify the backups created by the tool before committing --execute; (5) review the defragment.py execute logic (the script is included) if you need guarantees about whether files are deleted vs archived. If you don't want any chance of modification, don't run --execute and instead only use the analyzer and plan steps.Like a lobster shell, security has layers — review code before you run it.
latestvk97bvrp1g2nz055dcy0be6n1x983kw7e
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
