# Send Workspace Cleaner to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "workspace-cleaner",
    "name": "Workspace Cleaner",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/brandonwise/workspace-cleaner",
    "canonicalUrl": "https://clawhub.ai/brandonwise/workspace-cleaner",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/workspace-cleaner",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=workspace-cleaner",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "config/patterns.json",
      "references/safe-defaults.md",
      "scripts/cleanup.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "workspace-cleaner",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T16:06:53.269Z",
      "expiresAt": "2026-05-08T16:06:53.269Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=workspace-cleaner",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=workspace-cleaner",
        "contentDisposition": "attachment; filename=\"workspace-cleaner-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "workspace-cleaner"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/workspace-cleaner"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/workspace-cleaner",
    "downloadUrl": "https://openagent3.xyz/downloads/workspace-cleaner",
    "agentUrl": "https://openagent3.xyz/skills/workspace-cleaner/agent",
    "manifestUrl": "https://openagent3.xyz/skills/workspace-cleaner/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/workspace-cleaner/agent.md"
  }
}
```
## Documentation

### Workspace Cleaner

Safe, automated cleanup for OpenClaw workspaces. Finds temp files, duplicates, and cruft while protecting important data.

### Quick Start

# Preview what would be deleted (safe - no changes)
python3 {{SKILL_DIR}}/scripts/cleanup.py

# Actually clean up (uses trash for recovery)
python3 {{SKILL_DIR}}/scripts/cleanup.py --execute

# Custom workspace path
python3 {{SKILL_DIR}}/scripts/cleanup.py --workspace /path/to/workspace

### Features

Dry-run by default — Always previews before deleting
Uses trash — Files go to system trash, recoverable
Size-aware — Shows sizes, can filter by threshold
Age filtering — Target files older than N days
Customizable patterns — Edit config to match your workflow
JSON output — Machine-readable for automation
Safe defaults — Never touches .git, memory/, core configs

### Preview (Default)

python3 {{SKILL_DIR}}/scripts/cleanup.py

Shows what would be deleted with sizes. Makes no changes.

### Execute Cleanup

python3 {{SKILL_DIR}}/scripts/cleanup.py --execute

Moves items to trash. Recoverable via system trash.

### Filter by Size

# Only show items larger than 100MB
python3 {{SKILL_DIR}}/scripts/cleanup.py --min-size 100

### Filter by Age

# Only show items older than 30 days
python3 {{SKILL_DIR}}/scripts/cleanup.py --min-age 30

### JSON Output

# For automation/parsing
python3 {{SKILL_DIR}}/scripts/cleanup.py --json

### Custom Config

# Use custom patterns file
python3 {{SKILL_DIR}}/scripts/cleanup.py --config /path/to/patterns.json

### What Gets Cleaned

Default patterns (customizable via config):

CategoryPatternsSafe?Temp downloads*.skill in root✅Generated images*.png, *.jpg in root✅macOS cruft.DS_Store✅Logs*.log✅Temp files*.tmp, *.bak, *~✅Node modulesnode_modules/ in root✅Python venvs.venv*/, venv/ (except known)⚠️Duplicate reposSame remote as projects/*⚠️

### What's Protected

Never deleted, regardless of patterns:

.git/ directories
memory/ directory
MEMORY.md, SOUL.md, USER.md, AGENTS.md
projects/ directory contents
skills/ directory contents
Files modified in last 24 hours (unless --include-recent)

### Configuration

Edit {{SKILL_DIR}}/config/patterns.json to customize:

{
  "temp_extensions": [".tmp", ".bak", ".log", ".skill"],
  "temp_patterns": ["*~", "#*#"],
  "image_extensions": [".png", ".jpg", ".jpeg", ".gif"],
  "protected_dirs": ["memory", "skills", "projects", ".git"],
  "protected_files": ["MEMORY.md", "SOUL.md", "USER.md", "AGENTS.md"],
  "known_venvs": [".venv-skill-scanner"]
}

### HEARTBEAT Integration

Add to your HEARTBEAT.md for periodic cleanup checks:

## Weekly Cleanup Check
- Run workspace cleaner in preview mode
- Alert if >500MB of cruft found
- Auto-clean items >30 days old and <10MB

### Safety Notes

Always preview first — Run without --execute to see what would be deleted
Check the trash — Files go to system trash, not permanent delete
Exclude patterns — Use --exclude for files that look like cruft but aren't
Backup first — For large cleanups, consider a backup

### Regular Maintenance

# Weekly cleanup of obvious cruft
python3 {{SKILL_DIR}}/scripts/cleanup.py --min-age 7 --execute

### Find Space Hogs

# What's taking up space?
python3 {{SKILL_DIR}}/scripts/cleanup.py --min-size 50 --json | jq '.items | sort_by(.size_mb) | reverse'

### Pre-Commit Cleanup

# Clean before committing
python3 {{SKILL_DIR}}/scripts/cleanup.py --execute && git status

### Requirements

Python 3.8+
trash command (macOS: brew install trash, Linux: trash-cli)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: brandonwise
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T16:06:53.269Z
- Expires at: 2026-05-08T16:06:53.269Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/workspace-cleaner)
- [Send to Agent page](https://openagent3.xyz/skills/workspace-cleaner/agent)
- [JSON manifest](https://openagent3.xyz/skills/workspace-cleaner/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/workspace-cleaner/agent.md)
- [Download page](https://openagent3.xyz/downloads/workspace-cleaner)