{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/workspace-cleaner",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=workspace-cleaner",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "config/patterns.json",
      "references/safe-defaults.md",
      "scripts/cleanup.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/workspace-cleaner",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Workspace Cleaner",
        "body": "Safe, automated cleanup for OpenClaw workspaces. Finds temp files, duplicates, and cruft while protecting important data."
      },
      {
        "title": "Quick Start",
        "body": "# Preview what would be deleted (safe - no changes)\npython3 {{SKILL_DIR}}/scripts/cleanup.py\n\n# Actually clean up (uses trash for recovery)\npython3 {{SKILL_DIR}}/scripts/cleanup.py --execute\n\n# Custom workspace path\npython3 {{SKILL_DIR}}/scripts/cleanup.py --workspace /path/to/workspace"
      },
      {
        "title": "Features",
        "body": "Dry-run by default — Always previews before deleting\nUses trash — Files go to system trash, recoverable\nSize-aware — Shows sizes, can filter by threshold\nAge filtering — Target files older than N days\nCustomizable patterns — Edit config to match your workflow\nJSON output — Machine-readable for automation\nSafe defaults — Never touches .git, memory/, core configs"
      },
      {
        "title": "Preview (Default)",
        "body": "python3 {{SKILL_DIR}}/scripts/cleanup.py\n\nShows what would be deleted with sizes. Makes no changes."
      },
      {
        "title": "Execute Cleanup",
        "body": "python3 {{SKILL_DIR}}/scripts/cleanup.py --execute\n\nMoves items to trash. Recoverable via system trash."
      },
      {
        "title": "Filter by Size",
        "body": "# Only show items larger than 100MB\npython3 {{SKILL_DIR}}/scripts/cleanup.py --min-size 100"
      },
      {
        "title": "Filter by Age",
        "body": "# Only show items older than 30 days\npython3 {{SKILL_DIR}}/scripts/cleanup.py --min-age 30"
      },
      {
        "title": "JSON Output",
        "body": "# For automation/parsing\npython3 {{SKILL_DIR}}/scripts/cleanup.py --json"
      },
      {
        "title": "Custom Config",
        "body": "# Use custom patterns file\npython3 {{SKILL_DIR}}/scripts/cleanup.py --config /path/to/patterns.json"
      },
      {
        "title": "What Gets Cleaned",
        "body": "Default patterns (customizable via config):\n\nCategoryPatternsSafe?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/*⚠️"
      },
      {
        "title": "What's Protected",
        "body": "Never deleted, regardless of patterns:\n\n.git/ directories\nmemory/ directory\nMEMORY.md, SOUL.md, USER.md, AGENTS.md\nprojects/ directory contents\nskills/ directory contents\nFiles modified in last 24 hours (unless --include-recent)"
      },
      {
        "title": "Configuration",
        "body": "Edit {{SKILL_DIR}}/config/patterns.json to customize:\n\n{\n  \"temp_extensions\": [\".tmp\", \".bak\", \".log\", \".skill\"],\n  \"temp_patterns\": [\"*~\", \"#*#\"],\n  \"image_extensions\": [\".png\", \".jpg\", \".jpeg\", \".gif\"],\n  \"protected_dirs\": [\"memory\", \"skills\", \"projects\", \".git\"],\n  \"protected_files\": [\"MEMORY.md\", \"SOUL.md\", \"USER.md\", \"AGENTS.md\"],\n  \"known_venvs\": [\".venv-skill-scanner\"]\n}"
      },
      {
        "title": "HEARTBEAT Integration",
        "body": "Add to your HEARTBEAT.md for periodic cleanup checks:\n\n## Weekly Cleanup Check\n- Run workspace cleaner in preview mode\n- Alert if >500MB of cruft found\n- Auto-clean items >30 days old and <10MB"
      },
      {
        "title": "Safety Notes",
        "body": "Always preview first — Run without --execute to see what would be deleted\nCheck the trash — Files go to system trash, not permanent delete\nExclude patterns — Use --exclude for files that look like cruft but aren't\nBackup first — For large cleanups, consider a backup"
      },
      {
        "title": "Regular Maintenance",
        "body": "# Weekly cleanup of obvious cruft\npython3 {{SKILL_DIR}}/scripts/cleanup.py --min-age 7 --execute"
      },
      {
        "title": "Find Space Hogs",
        "body": "# What's taking up space?\npython3 {{SKILL_DIR}}/scripts/cleanup.py --min-size 50 --json | jq '.items | sort_by(.size_mb) | reverse'"
      },
      {
        "title": "Pre-Commit Cleanup",
        "body": "# Clean before committing\npython3 {{SKILL_DIR}}/scripts/cleanup.py --execute && git status"
      },
      {
        "title": "Requirements",
        "body": "Python 3.8+\ntrash command (macOS: brew install trash, Linux: trash-cli)"
      }
    ],
    "body": "Workspace Cleaner\n\nSafe, automated cleanup for OpenClaw workspaces. Finds temp files, duplicates, and cruft while protecting important data.\n\nQuick Start\n# Preview what would be deleted (safe - no changes)\npython3 {{SKILL_DIR}}/scripts/cleanup.py\n\n# Actually clean up (uses trash for recovery)\npython3 {{SKILL_DIR}}/scripts/cleanup.py --execute\n\n# Custom workspace path\npython3 {{SKILL_DIR}}/scripts/cleanup.py --workspace /path/to/workspace\n\nFeatures\nDry-run by default — Always previews before deleting\nUses trash — Files go to system trash, recoverable\nSize-aware — Shows sizes, can filter by threshold\nAge filtering — Target files older than N days\nCustomizable patterns — Edit config to match your workflow\nJSON output — Machine-readable for automation\nSafe defaults — Never touches .git, memory/, core configs\nCommands\nPreview (Default)\npython3 {{SKILL_DIR}}/scripts/cleanup.py\n\n\nShows what would be deleted with sizes. Makes no changes.\n\nExecute Cleanup\npython3 {{SKILL_DIR}}/scripts/cleanup.py --execute\n\n\nMoves items to trash. Recoverable via system trash.\n\nFilter by Size\n# Only show items larger than 100MB\npython3 {{SKILL_DIR}}/scripts/cleanup.py --min-size 100\n\nFilter by Age\n# Only show items older than 30 days\npython3 {{SKILL_DIR}}/scripts/cleanup.py --min-age 30\n\nJSON Output\n# For automation/parsing\npython3 {{SKILL_DIR}}/scripts/cleanup.py --json\n\nCustom Config\n# Use custom patterns file\npython3 {{SKILL_DIR}}/scripts/cleanup.py --config /path/to/patterns.json\n\nWhat Gets Cleaned\n\nDefault patterns (customizable via config):\n\nCategory\tPatterns\tSafe?\nTemp downloads\t*.skill in root\t✅\nGenerated images\t*.png, *.jpg in root\t✅\nmacOS cruft\t.DS_Store\t✅\nLogs\t*.log\t✅\nTemp files\t*.tmp, *.bak, *~\t✅\nNode modules\tnode_modules/ in root\t✅\nPython venvs\t.venv*/, venv/ (except known)\t⚠️\nDuplicate repos\tSame remote as projects/*\t⚠️\nWhat's Protected\n\nNever deleted, regardless of patterns:\n\n.git/ directories\nmemory/ directory\nMEMORY.md, SOUL.md, USER.md, AGENTS.md\nprojects/ directory contents\nskills/ directory contents\nFiles modified in last 24 hours (unless --include-recent)\nConfiguration\n\nEdit {{SKILL_DIR}}/config/patterns.json to customize:\n\n{\n  \"temp_extensions\": [\".tmp\", \".bak\", \".log\", \".skill\"],\n  \"temp_patterns\": [\"*~\", \"#*#\"],\n  \"image_extensions\": [\".png\", \".jpg\", \".jpeg\", \".gif\"],\n  \"protected_dirs\": [\"memory\", \"skills\", \"projects\", \".git\"],\n  \"protected_files\": [\"MEMORY.md\", \"SOUL.md\", \"USER.md\", \"AGENTS.md\"],\n  \"known_venvs\": [\".venv-skill-scanner\"]\n}\n\nHEARTBEAT Integration\n\nAdd to your HEARTBEAT.md for periodic cleanup checks:\n\n## Weekly Cleanup Check\n- Run workspace cleaner in preview mode\n- Alert if >500MB of cruft found\n- Auto-clean items >30 days old and <10MB\n\nSafety Notes\nAlways preview first — Run without --execute to see what would be deleted\nCheck the trash — Files go to system trash, not permanent delete\nExclude patterns — Use --exclude for files that look like cruft but aren't\nBackup first — For large cleanups, consider a backup\nExamples\nRegular Maintenance\n# Weekly cleanup of obvious cruft\npython3 {{SKILL_DIR}}/scripts/cleanup.py --min-age 7 --execute\n\nFind Space Hogs\n# What's taking up space?\npython3 {{SKILL_DIR}}/scripts/cleanup.py --min-size 50 --json | jq '.items | sort_by(.size_mb) | reverse'\n\nPre-Commit Cleanup\n# Clean before committing\npython3 {{SKILL_DIR}}/scripts/cleanup.py --execute && git status\n\nRequirements\nPython 3.8+\ntrash command (macOS: brew install trash, Linux: trash-cli)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/brandonwise/workspace-cleaner",
    "publisherUrl": "https://clawhub.ai/brandonwise/workspace-cleaner",
    "owner": "brandonwise",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}