Workspace Review
by @ortegarod
Audit workspace structure and memory files against OpenClaw conventions. Use when asked to "review workspace", "audit files", "check structure", or during periodic self-maintenance. Helps catch drift from standard patterns.
clawhub install workspace-reviewπ About This Skill
name: workspace-review description: Audit workspace structure and memory files against OpenClaw conventions. Use when asked to "review workspace", "audit files", "check structure", or during periodic self-maintenance. Helps catch drift from standard patterns.
Workspace Review
A self-audit process to verify workspace files follow OpenClaw conventions and haven't drifted into non-standard patterns.
When to Run
Review Process
1. Structure Check
Verify expected files exist in correct locations:
~/.openclaw/workspace/
βββ AGENTS.md β Operating instructions (REQUIRED)
βββ SOUL.md β Persona/tone (REQUIRED)
βββ USER.md β User profile (REQUIRED)
βββ IDENTITY.md β Agent name/vibe/emoji (REQUIRED)
βββ TOOLS.md β Local tool notes (REQUIRED)
βββ HEARTBEAT.md β Heartbeat checklist (optional)
βββ MEMORY.md β Curated long-term memory (optional)
βββ BOOT.md β Runs on gateway restart (optional, boot-md hook)
βββ BOOTSTRAP.md β One-time first-run ritual (delete after use)
βββ memory/ β Daily logs + reference docs (vector-indexed)
β βββ YYYY-MM-DD.md
βββ skills/ β Workspace-specific skills (optional)
Note on BOOT.md vs BOOTSTRAP.md:
BOOT.md β Persistent; runs every gateway restart (if boot-md hook enabled)BOOTSTRAP.md β One-time; agent follows it on first run, then deletes itCheck: Run ls -la on workspace root. Flag missing required files.
2. File Purpose Audit
Each file has ONE job. Check for scope creep:
| File | Should Contain | Should NOT Contain | |------|----------------|-------------------| | AGENTS.md | Operating instructions, memory workflow, behavior rules | Personal memories, daily logs, tool configs | | SOUL.md | Persona, tone, boundaries, identity philosophy | Task lists, technical details, credentials | | USER.md | User profile, preferences, how to address them | Agent memories, system config | | IDENTITY.md | Name, emoji, vibe, external identities (wallets, handles) | Instructions, memories | | TOOLS.md | Environment-specific notes (camera names, SSH hosts, voices) | Skill instructions, operating procedures | | HEARTBEAT.md | Short checklist for periodic checks | Long procedures, full documentation | | MEMORY.md | Curated lessons, key context, important people/projects | Daily logs, raw notes | | memory/*.md | Daily logs, raw notes, session summaries | Long-term curated memories |
Check: Skim each file. Flag content in wrong location.
3. Memory Hygiene
YYYY-MM-DD.md or YYYY-MM-DD-slug.md formatsession-memory hook creates YYYY-MM-DD-slug.md) reviewed periodicallyproject-notes.md, api-guide.mdAutomatic Memory Flush: OpenClaw triggers a silent agent turn before session compaction to write durable memories. The agent receives a prompt to flush important context to memory/YYYY-MM-DD.md. This is automatic β no action needed, but be aware your context WILL be compacted after ~180k tokens.
4. Vector Search Alignment
MEMORY.md and memory/**/*.md are indexed by defaultYYYY-MM-DD.md; reference docs use descriptive namesmemory/ can be indexed via memorySearch.extraPaths in configSession Memory (Experimental): If memorySearch.experimental.sessionMemory = true, session transcripts are also indexed and searchable via memory_search.
5. Git Status
β οΈ This workspace is PRIVATE. Never push to GitHub or any public remote.
cd ~/.openclaw/workspace && git status
6. Rogue Files Check
Look for files that don't fit the standard layout:
ls -la ~/.openclaw/workspace/
Flag anything that:
Note: Only MEMORY.md and memory/**/*.md are vector-indexed. Files outside memory/ can be added via memorySearch.extraPaths in config.
7. Size Check
Bootstrap files should be lean (loaded every session):
wc -l AGENTS.md SOUL.md USER.md IDENTITY.md HEARTBEAT.md TOOLS.md MEMORY.md 2>/dev/null
8. Skills Check
If skills/ exists:
Output Format
After review, report:
## Workspace Review β YYYY-MM-DDβ
Passing
[list what's correct] β οΈ Warnings
[list minor issues] β Issues
[list things that need fixing] π Recommendations
[specific actions to take]