Memory

Workspace Optimizer

Try it

Audit, optimize, and maintain your OpenClaw agent workspace. Use when workspace needs health check, skill audit, memory cleanup, or performance tuning.

What it does

Audit, optimize, and maintain your OpenClaw agent workspace. Use when workspace needs health check, skill audit, memory cleanup, or performance tuning.

The skill document

Workspace Optimizer

Comprehensive workspace audit and optimization skill for OpenClaw agents. Identifies issues, suggests improvements, and provides actionable remediation steps.

Quick Reference

SituationAction
Workspace health checkRun full audit
Skill auditCheck installed vs available skills
Memory bloatCleanup and prune old files
Performance tuningOptimize cron jobs and heartbeats

Background

Agent workspaces drift over time — stale cron jobs, orphaned memory files, unused skills, bloated context. This skill provides systematic audit and remediation to keep your workspace lean and performant.

Solution

Step-by-Step Audit

  1. Core Files Check
# Verify required files exist
$files = @("AGENTS.md","SOUL.md","IDENTITY.md","USER.md","TOOLS.md","MEMORY.md","HEARTBEAT.md")
foreach($f in $files) {
    $path = Join-Path $env:USERPROFILE ".openclaw\workspace\$f"
    if (Test-Path $path) { Write-Host "✅ $f" -ForegroundColor Green }
    else { Write-Host "❌ $f MISSING" -ForegroundColor Red }
}
  1. Skill Audit
# List installed skills with status
clawhub list
# Check for updates
clawhub outdated
  1. Memory Health
# Check memory directory structure
Get-ChildItem "$env:USERPROFILE\.openclaw\workspace\memory" -Recurse |
    Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-30) } |
    Select-Object FullName, LastWriteTime, Length
  1. Cron Job Audit
# List all cron jobs including disabled
openclaw cron list --include-disabled
# Check for orphaned or failed jobs
openclaw cron list --include-disabled | grep -i "disabled\|failed"

Optimization Recommendations

  • Remove unused skills: clawhub uninstall
  • Prune old memory files: Archive files older than 30 days
  • Disable stale cron jobs: openclaw cron update --enabled false
  • Trim MEMORY.md: Keep only active, relevant entries

Common Variations

  • Quick Check: Just run core files check + cron audit
  • Deep Clean: Full audit + memory pruning + skill cleanup
  • Pre-Flight: Run before major workspace changes

Gotchas

  • Don't delete daily memory files — archive them instead
  • Check cron job run history before disabling
  • Some skills have dependencies — check before uninstalling

Source

  • Author: AgentricAI-Owner
  • Created: 2026-06-23
  • Origin: DarkCluster workspace optimization patterns

Related skills

Create, analyze, and optimize OpenClaw workspace configuration files (SOUL.md, IDENTITY.md, USER.md, MEMORY.md, TOOLS.md, AGENTS.md, STYLE.md, HEARTBEAT.md) with guided workflows and best practices validation. Analyzes existing files for patterns, clarity, injection order, and content placement. All work is done in a sandbox area without modifying originals.

OpenClaw workspace health auditor (read-only inspection): scans an agent workspace for directory-structure compliance, task/PROGRESS.md health, memory-log gaps, knowledge-base index orphans and junk files; outputs a severity-graded report (red/yellow/green) with fix suggestions via a zero-dependency

1 installs

Use when the user wants to inspect, repair, package, or troubleshoot an OpenClaw workspace doctor setup, especially for stale bootstrap state, missing daily...

25 installs

Audit an OpenClaw agent workspace and generate standardized evaluation reports, scores, and patches. Use when asked to review memory quality, retrieval effic...

32 installs

OpenClaw workspace initialization & standardization. Sets up a proper agent home: standard directory structure (projects/tasks/outputs/knowledge/scripts/ memory/tmp) + WORKSPACE.md rules + multi-agent config safety (config.patch, never config.apply) + memory log. Use when an agent enters a new/empty

Engine auto-update & discovery skill OpenClaw: scan, evaluate, update, test, install, verify, rollback — dengan validation gate dan safety agar update tidak merusak workspace.