A safe and automated workspace cleaning skill that inventories, reviews, and archives temporary build files, caches, and logs in coding repositories.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agent-workspace-hygiene
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install agent-workspace-hygiene using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Workspace Hygiene is a specialized tool designed to keep your development environment tidy, efficient, and free of clutter without rewriting or endangering your project code. Operating seamlessly within repository-based workflows, this skill helps developers and AI agents execute safe, non-destructive cleanups of untracked build artifacts, temporary caches, test reports, and log files. By prioritizing safety and keeping operations quiet and cheap, it ensures your project directories remain optimized without interrupting normal coding workflows.
As part of the broader suite of Openclaw Skills, Workspace Hygiene introduces a recovery-first approach. Instead of permanently deleting your data, it default-archives approved items to a local directory with a detailed manifest. This ensures that any accidental cleanups can be immediately restored, giving developers total peace of mind when executing dry runs or automated disk-space cleanups.
.codex-cleanup/archive/ directory and writes an audit manifest.To configure and run the Workspace Hygiene skill, ensure you have Python and Git available in your environment. You can initialize the inventory check or run a dry-run cleanup directly via the command line.
Execute the workspace inventory script to inspect target artifacts safely:
python ./scripts/workspace_inventory.py --root . --summary-json --max-entries 40 --recent-hours 24
To apply automated project-specific skip rules, you can define an optional configuration file named .workspace-hygiene.yml in your repository root with customized keep/skip patterns.
The Workspace Hygiene skill organizes all generated logs, cleanup actions, and archived files inside a standardized local directory structure to ensure transparency and easy recovery.
| Directory/File | Description |
|---|---|
.codex-cleanup/ |
Main directory for all cleanup-related outputs. |
.codex-cleanup/archive/<timestamp>/ |
Contains the raw archived directories and files safely moved out of active workspace roots. |
.codex-cleanup/archive/<timestamp>/manifest.json |
An audit log cataloging files before removal. |
The manifest.json preserves critical metadata for every moved artifact:
archived, skipped)..workspace-hygiene.yml config file to define custom ignore, keep, or automated skip filters for complex repository layouts..env without exposing path names.Loading
A structured corporate curriculum planning assistant that converts employee competency gaps into fully mapped learning paths with Bloom's taxonomy objectives.

An ultra-light automatic handoff manager that preserves critical session state across context-boundary moments and agent restarts.

An AI-powered intake tool that guides HR managers and safety officers through documenting workplace injuries, determining OSHA recordability, and drafting state-specific First Report of Injury (FROI) forms.

An automated reporting assistant that structures raw security findings into industry-compliant penetration test reports.

An interactive, standard-aligned assessment tool designed to help eldercare managers and social workers draft comprehensive care needs reports step by step.

An interactive AI-guided workflow for drafting compliant, structured Model Cards for machine learning models.








































