Install
openclaw skills install workspace-hygiene-publishAudit and maintain workspace file structure, memory quality, and project documentation. Use when: cleaning up the workspace, running a file audit, checking m...
openclaw skills install workspace-hygiene-publishMaintains clean, RAG-friendly workspaces across all agents. Runs on demand or weekly.
python3 skills/workspace-hygiene/scripts/hygiene.py --workspace ~/.openclaw/workspace
Or for a specific agent:
python3 skills/workspace-hygiene/scripts/hygiene.py --workspace ~/.openclaw/workspace-claire
Reads STRUCTURE.md from the workspace root. Scans for:
Scans memory/ for:
Checks every folder in projects/ for a README.md. Missing READMEs degrade RAG retrieval — memory_search can't find project context without them.
Validates that recent memory entries (last 7 days) use the tagged format:
[DECISION] What was decided and why
[FACT] A durable fact worth retaining
[PROJECT] Project name — status update
[RULE] A rule or preference established
[EVENT] Something that happened
Untagged entries are flagged for manual review, not auto-tagged.
Writes a report to projects/system/hygiene-YYYY-MM-DD.md with:
| Issue | Action |
|---|---|
| Timestamp-format memory files | Auto-consolidate into date file |
| Missing project README | Flag — agent should write it with project context |
| Files in wrong location | Flag with suggested move command |
| MEMORY.md over 150 lines | Flag for manual trimming |
| Root-level junk files | Flag with suggested archive command |
| Untagged memory entries | Flag — don't auto-tag (context needed) |
Install to each agent workspace's skills/ folder, or install to ~/.openclaw/skills/ for global access.
Add to HEARTBEAT.md:
## Weekly Hygiene (Monday)
- Run `python3 skills/workspace-hygiene/scripts/hygiene.py --workspace <path>`
- Review the report at projects/system/hygiene-YYYY-MM-DD.md
- Fix flagged issues or escalate to Steve
| File | Purpose |
|---|---|
memory-format.md | Canonical memory entry format and tagging rules |
rag-index.md | How to write project READMEs for optimal RAG retrieval |
audit.md | Detailed audit rules and canonical structure |