workspace-hygiene

Audit and maintain workspace file structure, memory quality, and project documentation. Use when: cleaning up the workspace, running a file audit, checking memory health, ensuring project READMEs exist, or during weekly Monday heartbeat. Triggers: "clean up workspace", "run hygiene", "audit files", "workspace health", "check file structure", or scheduled Monday heartbeat.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "workspace-hygiene" with this command: npx skills add SteveMichael001/workspace-hygiene

Workspace Hygiene

Maintains clean, RAG-friendly workspaces across all agents. Runs on demand or weekly.

Quick Start

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

What It Does

1. Structure Audit

Reads STRUCTURE.md from the workspace root. Scans for:

  • Files at root that aren't agent config (AGENTS.md, SOUL.md, etc.)
  • Folders that don't match the canonical layout
  • Files in wrong locations (e.g. Claire scripts in Maggie's workspace)

2. Memory Health

Scans memory/ for:

  • Files using timestamp format (YYYY-MM-DD-HHMM.md) instead of date or topic
  • Daily logs older than 30 days that haven't been distilled into MEMORY.md
  • Gaps in daily logging (missing dates during active periods)
  • MEMORY.md line count — flag if over 150

3. Project README Audit

Checks every folder in projects/ for a README.md. Missing READMEs degrade RAG retrieval — memory_search can't find project context without them.

4. Memory Format Check

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.

5. Health Report

Writes a report to projects/system/hygiene-YYYY-MM-DD.md with:

  • Structure violations (with suggested fixes)
  • Memory health score
  • Missing project READMEs
  • Untagged memory entries
  • Recommended actions (prioritized)

Auto-Fix vs Flag

IssueAction
Timestamp-format memory filesAuto-consolidate into date file
Missing project READMEFlag — agent should write it with project context
Files in wrong locationFlag with suggested move command
MEMORY.md over 150 linesFlag for manual trimming
Root-level junk filesFlag with suggested archive command
Untagged memory entriesFlag — don't auto-tag (context needed)

Deployment

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

Reference Docs

FilePurpose
memory-format.mdCanonical memory entry format and tagging rules
rag-index.mdHow to write project READMEs for optimal RAG retrieval
audit.mdDetailed audit rules and canonical structure

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

Ring Security

Monitor and manage Ring doorbells and security cameras. Query device status, review motion events, manage modes, and export event history. Use when you need...

Registry SourceRecently Updated
1780Profile unavailable
Security

Moses Governance Single

MO§ES™ Governance — Single-agent constitutional control. Enforces behavioral modes, posture controls, role awareness, and SHA-256 chained audit trail in one...

Registry SourceRecently Updated
830Profile unavailable
Security

Moses Audit

MO§ES™ Audit Trail — SHA-256 chained append-only governance ledger. Every agent appends before final response. Provides moses_log_action and moses_verify_cha...

Registry SourceRecently Updated
870Profile unavailable
Security

Sop Writer

SOP标准操作流程编写工具。创建SOP、流程图、检查清单、审核评估、模板库、培训材料。SOP writer with create, flowchart, checklist, audit, template, and training materials. Use when you need sop write...

Registry SourceRecently Updated
1610Profile unavailable