Skip to content
OpenSmartRoute
Skillv1.0.0

openclaw-memorybox

Memory health CLI that diagnoses bloated MEMORY.md files, splits oversized sections into domain files, archives stale daily logs, and runs continuous health monitoring. Use when MEMORY.md exceeds 10KB

by Ramsbaby(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from Ramsbaby/openclaw-memorybox (SKILL.md). Install upstream with npx skills add Ramsbaby/openclaw-memorybox. Copyright stays with the author (MIT).

OpenClaw MemoryBox

Install with: clawhub install openclaw-memorybox

Memory health CLI for AI agents — diagnoses, splits, archives, and monitors MEMORY.md to prevent context overflow.

Commands

  • memorybox doctor — Full diagnostic: health score, size analysis, duplicates, stale content
  • memorybox split — Interactive: move large sections to memory/domains/
  • memorybox health — Quick health score (0–100)
  • memorybox archive — Move daily logs older than 14 days to memory/archive/
  • memorybox watch — Background daemon: alerts when health drops below threshold

Install

clawhub install openclaw-memorybox

Or manually:

curl -sSL https://raw.githubusercontent.com/Ramsbaby/openclaw-memorybox/main/install.sh | bash

Recommended Workflow

  1. Run memorybox init ~/openclaw to set up the 3-tier directory structure
  2. Run memorybox doctor ~/openclaw to get a full diagnostic
  3. Run memorybox split ~/openclaw for any flagged sections
  4. Verify with memorybox health ~/openclaw — target score above 80
  5. Run memorybox archive ~/openclaw to clean up old daily logs

Optional: Weekly Health Cron

Add to your OpenClaw tasks.json:

{
  "id": "memory-health-weekly",
  "name": "Weekly Memory Health Check",
  "schedule": { "kind": "cron", "expr": "0 23 * * 0", "tz": "Asia/Seoul" },
  "payload": {
    "kind": "agentTurn",
    "message": "Run: memorybox doctor ~/openclaw. If score < 80, run memorybox split and report."
  }
}

Compatibility

  • macOS 12+ / Linux (bash 3.2+)
  • OpenClaw agents, Claude Code, any markdown-based memory system
  • Zero external dependencies — pure bash

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/ramsbaby-openclaw-memorybox-openclaw-memorybox/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

ramsbaby-openclaw-memorybox-openclaw-memorybox.ocm.jsonjson
{
  "ocm": "1",
  "id": "ramsbaby-openclaw-memorybox-openclaw-memorybox",
  "kind": "skill",
  "name": "openclaw-memorybox",
  "description": "Memory health CLI that diagnoses bloated MEMORY.md files, splits oversized sections into domain files, archives stale daily logs, and runs continuous health monitoring. Use when MEMORY.md exceeds 10KB, context windows overflow from memory bloat, or agent sessions slow down from loading large memory files. Pure bash, zero dependencies.",
  "publisher": "Ramsbaby",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "memory",
      "maintenance",
      "cli",
      "devtools",
      "zero-dependency",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Memory health CLI that diagnoses bloated MEMORY.md files, splits oversized sections into domain files, archives stale daily logs, and runs continuous health monitoring. Use when MEMORY.md exceeds 10KB, context windows overflow from memory bloat, or agent sessions slow down from loading large memory files. Pure bash, zero dependencies."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/Ramsbaby/openclaw-memorybox",
      "path": "SKILL.md",
      "ref": "b38d3ed35f9b7dd6e730370e9aeb171911e14b2d",
      "url": "https://github.com/Ramsbaby/openclaw-memorybox/blob/b38d3ed35f9b7dd6e730370e9aeb171911e14b2d/SKILL.md",
      "key": "Ramsbaby/openclaw-memorybox/SKILL.md"
    },
    "license": "MIT"
  },
  "instructions": "# OpenClaw MemoryBox\n\n> Install with: `clawhub install openclaw-memorybox`\n\nMemory health CLI for AI agents — diagnoses, splits, archives, and monitors MEMORY.md to prevent context overflow.\n\n## Commands\n\n- **`memorybox doctor`** — Full diagnostic: health score, size analysis, duplicates, stale content\n- **`memorybox split`** — Interactive: move large sections to `memory/domains/`\n- **`memorybox health`** — Quick health score (0–100)\n- **`memorybox archive`** — Move daily logs older than 14 days to `memory/archive/`\n- **`memorybox watch`** — Background daemon: alerts when health drops below th",
  "cost": {
    "context_tokens": 419
  }
}

Fetch it by URL: GET /api/v1/registry/ramsbaby-openclaw-memorybox-openclaw-memorybox/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.