← 返回
未分类 中文

Claw Janitor

Performs safe, platform-aware system cleanup without dependencies, supports dry-run, targeted groups, and optional elevated cleanup on request.
安全、平台感知的系统清理,无需依赖;支持模拟运行、针对分组以及按需提升权限的清理。
prince-cool prince-cool 来源
未分类 clawhub v1.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 166
下载
💾 0
安装
1
版本
#cleanup#latest#maintenance#system

概述

SKILL: claw-janitor

Description

A safe, zero-dependency, platform-aware system cleanup skill for OpenClaw. Use when disk space is low or cleanup is requested.

Rules & Constraints

  • Prefer --dry-run first when user confidence is low.
  • Never force sudo/root; only do elevated/system cleanup when user explicitly wants it.
  • Respect built-in safety boundaries (blacklists, symlink/mount protections, AI-cache no-auto-delete).

Command

node /root/.openclaw/workspace/skills/claw-janitor/janitor.js [flags]

Flags

  • --dry-run: preview only
  • --deep: aggressive cleanup mode
  • --json: structured output
  • --no-color: disable ANSI color
  • --report-file : write JSON summary to file
  • --only : run only one group (ai-scan|packages|docker|system)
  • --skip : skip one group (ai-scan|packages|docker|system)
  • -h, --help: show usage

Examples

  • “Clean up my disk”
  • node /root/.openclaw/workspace/skills/claw-janitor/janitor.js
  • “Show me first”
  • node /root/.openclaw/workspace/skills/claw-janitor/janitor.js --dry-run
  • “Only clean package caches”
  • node /root/.openclaw/workspace/skills/claw-janitor/janitor.js --dry-run --only packages
  • “Generate audit report”
  • node /root/.openclaw/workspace/skills/claw-janitor/janitor.js --dry-run --json --report-file /tmp/janitor-report.json

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-05-12 06:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,911
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,630
it-ops-security

Tmux

steipete
通过发送按键和抓取窗格输出,远程控制交互式 CLI 的 tmux 会话。
★ 46 📥 29,532