← Back to Skills Marketplace
phernandez

Memory Defrag

by Paul Hernandez · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
268
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install memory-defrag
Description
Defragment and reorganize agent memory files: split bloated files, merge duplicates, remove stale information, and restructure the memory hierarchy. Use when...
Usage Guidance
This skill appears to do exactly what it says — reorganize and prune agent memory files — but it performs destructive actions (deleting or archiving content, removing old tasks, deleting nested directories). Before installing or enabling autonomous use: 1) Review the SKILL.md carefully and decide which destructive rules are acceptable. 2) Require explicit user confirmation for any delete/prune actions (disable autonomous invocation or configure the agent to prompt). 3) Take a backup snapshot of your memory directory (or run the skill in a dry-run mode) before applying changes. 4) Limit periodic automation (cron) until you have tested behavior on test data. 5) If the skill's source/maintainer is unknown, prefer a conservative setup (manual invocation + backups) until you trust it. These steps will reduce the chance of accidental data loss.
Capability Analysis
Type: OpenClaw Skill Name: memory-defrag Version: 0.1.0 The memory-defrag skill is a utility designed to help an AI agent organize and maintain its internal memory files (e.g., MEMORY.md and the memory/ directory). The instructions in SKILL.md provide a structured process for auditing, splitting, merging, and pruning files to improve efficiency, including safety guidelines such as preserving audit trails and asking for confirmation before destructive changes. There are no indicators of malicious intent, data exfiltration, or unauthorized system access.
Capability Assessment
Purpose & Capability
Name/description (memory defrag) match the instructions: all steps refer to memory files (MEMORY.md, memory/, memory/tasks/, daily notes) and operations (split, merge, prune, restructure) that are expected for this task.
Instruction Scope
SKILL.md explicitly instructs reading, splitting, merging, pruning, deleting nested directories, and removing completed tasks older than configured thresholds. That scope is consistent with defragmentation, but many steps are destructive (deletions/archives) and rely on agent judgment; the skill does advise 'ask before destructive changes' but the instructions still give broad discretion to modify or remove files.
Install Mechanism
Instruction-only skill with no install spec, no downloads, and no code files — minimal install risk.
Credentials
No environment variables, binaries, credentials, or config paths are requested — the permission scope is limited to manipulating agent memory files, which is proportional to the stated purpose.
Persistence & Privilege
always:false (good), but disable-model-invocation:false (default) means the agent could invoke this skill autonomously. Combined with the skill's destructive operations (deleting/pruning files), that increases risk if you permit autonomous runs without safeguards.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install memory-defrag
  3. After installation, invoke the skill by name or use /memory-defrag
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release of memory-defrag skill for reorganizing agent memory files. - Defragments agent memory by splitting large files, merging duplicates, and pruning stale or irrelevant information. - Provides clear signals and fixes for common memory organization problems. - Recommends periodic or on-demand operation, with concrete thresholds for action. - Establishes a step-by-step process: audit, identify issues, plan, execute, and verify changes. - Includes detailed guidelines to preserve audit trails, avoid over-organization, and maintain scannable file names.
Metadata
Slug memory-defrag
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Memory Defrag?

Defragment and reorganize agent memory files: split bloated files, merge duplicates, remove stale information, and restructure the memory hierarchy. Use when... It is an AI Agent Skill for Claude Code / OpenClaw, with 268 downloads so far.

How do I install Memory Defrag?

Run "/install memory-defrag" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Memory Defrag free?

Yes, Memory Defrag is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Memory Defrag support?

Memory Defrag is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Memory Defrag?

It is built and maintained by Paul Hernandez (@phernandez); the current version is v0.1.0.

💬 Comments